> For the complete documentation index, see [llms.txt](https://docs.radiusaas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.radiusaas.com/es/portal-de-administracion/settings/log-exporter/examples.md).

# Ejemplos

Esta página ofrece algunos escenarios del mundo real que le orientan sobre cómo configurar el Exportador de registros para su escenario.

## Ejemplo 1: Información general de autenticación

### Alcance y supuestos

El alcance de la consulta que se muestra a continuación es el siguiente:

* el administrador está interesado en comprender qué usuarios/dispositivos se autentican (aceptados o rechazados) y en construir estadísticas de frecuencia basadas en ello
* no se utiliza etiquetado VLAN
* solo se utiliza autenticación basada en certificados (sin autenticación basada en nombre de usuario y contraseña)

### Objetivo

[Analítica de registros](/es/portal-de-administracion/settings/log-exporter/log-analytics.md) o [Webhook general](/es/portal-de-administracion/settings/log-exporter/generic-webhook.md)

### Configuración del filtro de mensajes

#### Motor de reglas

| Nivel de registro | Habilitado                             |
| ----------------- | -------------------------------------- |
| Éxito             | <mark style="color:rojo;">Falso</mark> |
| Fallido           | <mark style="color:rojo;">Falso</mark> |
| Error             | <mark style="color:rojo;">Falso</mark> |

#### Sistema de autorización

| Nivel de registro | Habilitado                                  |
| ----------------- | ------------------------------------------- |
| Solicitudes       | <mark style="color:rojo;">Falso</mark>      |
| Éxito             | <mark style="color:verde;">Verdadero</mark> |
| Fallido           | <mark style="color:verde;">Verdadero</mark> |
| Error             | <mark style="color:rojo;">Falso</mark>      |

#### Autenticación del proxy

| Nivel de registro | Habilitado                             |
| ----------------- | -------------------------------------- |
| Conexiones        | <mark style="color:rojo;">Falso</mark> |
| Éxito             | <mark style="color:rojo;">Falso</mark> |
| Fallido           | <mark style="color:rojo;">Falso</mark> |
| Error             | <mark style="color:rojo;">Falso</mark> |

### Configuración de datos

{% code lineNumbers="true" %}

```json
{
    "Decisión": {{ data.get("Packet-Type") }},
    "Nivel": {{ data.level }},
    "IP": {{ data.get("Packet-Dst-Address") }},
    "Nombre de usuario": {{ data.get("User-Name") }},
    {% if data.get("TLS-OCSP-Cert-Valid") != None %}
        "Estado OCSP": {{ data.get("TLS-OCSP-Cert-Valid") }},
    {% endif %}
    {% if data.level == "warning" %}
      "Motivo del fallo": {{ data.get("Module-Failure-Message") }},
    {% endif %}
    "Fecha y hora" : {{ data.Datetime }}
}
```

{% endcode %}

## Ejemplo 2: Información detallada de autenticación&#x20;

### Alcance y supuestos

El alcance de la consulta que se muestra a continuación es el siguiente:

* el administrador está interesado en comprender qué usuarios/dispositivos se autentican mediante certificado o nombre de usuario y contraseña (aceptados o rechazados)
* detalles de nombre de usuario y certificado con respuesta OCSP
* SSID y punto de acceso utilizado (dirección MAC)
* RADIUSaaS [Regla](/es/portal-de-administracion/acceso-y-reglas/rules.md) que se activó, si corresponde: VLAN asignada
* ID de correlación para una investigación adicional

### Objetivo

[Analítica de registros](/es/portal-de-administracion/settings/log-exporter/log-analytics.md) o [Webhook general](/es/portal-de-administracion/settings/log-exporter/generic-webhook.md)

### Configuración del filtro de mensajes

#### Motor de reglas

| Nivel de registro | Habilitado                                  |
| ----------------- | ------------------------------------------- |
| Éxito             | <mark style="color:verde;">Verdadero</mark> |
| Fallido           | <mark style="color:verde;">Verdadero</mark> |
| Error             | <mark style="color:rojo;">Falso</mark>      |

#### Sistema de autorización

| Nivel de registro | Habilitado                             |
| ----------------- | -------------------------------------- |
| Solicitudes       | <mark style="color:rojo;">Falso</mark> |
| Éxito             | <mark style="color:rojo;">Falso</mark> |
| Fallido           | <mark style="color:rojo;">Falso</mark> |
| Error             | <mark style="color:rojo;">Falso</mark> |

#### Autenticación del proxy

| Nivel de registro | Habilitado                             |
| ----------------- | -------------------------------------- |
| Conexiones        | <mark style="color:rojo;">Falso</mark> |
| Éxito             | <mark style="color:rojo;">Falso</mark> |
| Fallido           | <mark style="color:rojo;">Falso</mark> |
| Error             | <mark style="color:rojo;">Falso</mark> |

### Configuración de datos

{% code lineNumbers="true" %}

```json
{
    "Decisión": {{ data.get("Engine-Decision") }},
    "Fecha y hora" : {{ data.Datetime }},
    "Nivel": {{ data.level }},
    "Tipo de autenticación": {{ data.get("Authtype") }},
    "MAC del cliente": {{ data.get("Client-MAC") }},
    "Nombre de usuario": {{ data.get("User-Name") }},
    "Regla aplicada": {{ data.get("Applied-Rule") }},
    "VLAN": {{ data.get("Assigned-VLAN", "No hay VLAN asignada") }},
    "Tipo de origen de autenticación": {{ data.get("Auth-Source-Type") }},
    {% if data.get("Auth-Source-Type") == "WiFi" %}
        "SSID": {{ data.get("SSID") }},
        "MAC del AP": {{ data.get("AP-MAC") }},
    {% endif %}
    {% if data.get("Authtype") == "Certificate" %}
        "Nombre común del certificado": {{ data.get("Certificate-Details", {}).get("TLS-Cert-Common-Name") }},
        "Número de serie del certificado": {{ data.get("Certificate-Details", {}).get("TLS-Client-Cert-Serial") }},
    {% endif %}
    {% if data.get("Verify-Result") != None %}
        "Resultado de verificación": {{ data.get("Verify-Result") }},
        "Estado de verificación": {{ data.get("Verify-Status") }},
        "Tipo de verificación": {{ data.get("Verify-Type") }},
        "Descripción de verificación": {{ data.get("Verify-Description") }},
    {% endif %}
    {% if data.get("Reject-Description") != None %}
        "Descripción del rechazo": {{ data.get("Reject-Description") }},
    {% endif %}
    "ID de correlación GKG": {{ data.get("GKG-Correlation-Id") }}
}
```

{% endcode %}

## Ejemplo 3: Notificaciones generales de errores

### Alcance y supuestos

El alcance de la consulta que se muestra a continuación es el siguiente:

* el administrador está interesado en recibir notificaciones proactivas sobre errores en la plataforma RADIUSaaS para el equipo de operaciones.

### Objetivo

[Teams](/es/portal-de-administracion/settings/log-exporter/teams.md), o [Analítica de registros](/es/portal-de-administracion/settings/log-exporter/log-analytics.md) o [Webhook general](/es/portal-de-administracion/settings/log-exporter/generic-webhook.md)

### Configuración del filtro de mensajes

#### Motor de reglas

| Nivel de registro | Habilitado                             |
| ----------------- | -------------------------------------- |
| Éxito             | <mark style="color:rojo;">Falso</mark> |
| Fallido           | <mark style="color:rojo;">Falso</mark> |
| Error             | <mark style="color:rojo;">Falso</mark> |

#### Sistema de autorización

| Nivel de registro | Habilitado                                  |
| ----------------- | ------------------------------------------- |
| Solicitudes       | <mark style="color:rojo;">Falso</mark>      |
| Éxito             | <mark style="color:rojo;">Falso</mark>      |
| Fallido           | <mark style="color:rojo;">Falso</mark>      |
| Error             | <mark style="color:verde;">Verdadero</mark> |

#### Autenticación del proxy

| Nivel de registro | Habilitado                                  |
| ----------------- | ------------------------------------------- |
| Conexiones        | <mark style="color:rojo;">Falso</mark>      |
| Éxito             | <mark style="color:rojo;">Falso</mark>      |
| Fallido           | <mark style="color:rojo;">Falso</mark>      |
| Error             | <mark style="color:verde;">Verdadero</mark> |

### Configuración de datos

#### Teams

{% code lineNumbers="true" %}

```
¡El sistema RADIUS tiene problemas!
Mensaje: {{ data.get('message') }}

Datos sin procesar:
{{ data }}
```

{% endcode %}

#### Analítica de registros o Webhook general

{% code lineNumbers="true" %}

```
{
    "Mensaje": {{ data.get("message") }},
    "Fecha y hora" : {{ data.get("Datetime") }},
    "Nivel": {{ data.get("level") }},
    "Tipo": {{ data.get("type", "no aplicable") }}
}
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.radiusaas.com/es/portal-de-administracion/settings/log-exporter/examples.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
