> 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/fr/portail-dadministration/settings/log-exporter/examples.md).

# Exemples

Cette page fournit quelques scénarios réels pour vous guider dans la configuration de l'exportateur de journaux pour votre scénario.

## Exemple 1 : Informations générales sur l'authentification

### Périmètre et hypothèses

Le périmètre de la requête ci-dessous est le suivant :

* l'administrateur souhaite comprendre quels utilisateurs/appareils s'authentifient (acceptés ou rejetés) et établir des statistiques de fréquence sur cette base
* aucun marquage VLAN n'est utilisé
* seule l'authentification par certificat est utilisée (aucune authentification par nom d'utilisateur et mot de passe)

### Cible

[Log Analytics](/fr/portail-dadministration/settings/log-exporter/log-analytics.md) ou [Webhook général](/fr/portail-dadministration/settings/log-exporter/generic-webhook.md)

### Configuration du filtre de messages

#### Moteur de règles

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Succès                   | <mark style="color:rouge;">Faux</mark> |
| Échec                    | <mark style="color:rouge;">Faux</mark> |
| Erreur                   | <mark style="color:rouge;">Faux</mark> |

#### Système d'autorisation

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Requêtes                 | <mark style="color:rouge;">Faux</mark> |
| Succès                   | <mark style="color:vert;">Vrai</mark>  |
| Échec                    | <mark style="color:vert;">Vrai</mark>  |
| Erreur                   | <mark style="color:rouge;">Faux</mark> |

#### Authentification du proxy

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Connexions               | <mark style="color:rouge;">Faux</mark> |
| Succès                   | <mark style="color:rouge;">Faux</mark> |
| Échec                    | <mark style="color:rouge;">Faux</mark> |
| Erreur                   | <mark style="color:rouge;">Faux</mark> |

### Configuration des données

{% code lineNumbers="true" %}

```json
{
    "Décision": {{ data.get("Packet-Type") }},
    "Niveau": {{ data.level }},
    "IP": {{ data.get("Packet-Dst-Address") }},
    "Nom d'utilisateur": {{ data.get("User-Name") }},
    {% if data.get("TLS-OCSP-Cert-Valid") != None %}
        "Statut OCSP": {{ data.get("TLS-OCSP-Cert-Valid") }},
    {% endif %}
    {% if data.level == "warning" %}
      "Raison de l'échec": {{ data.get("Module-Failure-Message") }},
    {% endif %}
    "Date et heure" : {{ data.Datetime }}
}
```

{% endcode %}

## Exemple 2 : Informations détaillées sur l'authentification&#x20;

### Périmètre et hypothèses

Le périmètre de la requête ci-dessous est le suivant :

* l'administrateur souhaite comprendre quels utilisateurs/appareils s'authentifient via un certificat ou un nom d'utilisateur et mot de passe (acceptés ou rejetés)
* détails du nom d'utilisateur et du certificat avec réponse OCSP
* SSID et point d'accès utilisé (adresse MAC)
* RADIUSaaS [Règle](/fr/portail-dadministration/acces-et-regles/rules.md) qui a été déclenchée, le cas échéant : VLAN attribué
* ID de corrélation pour une enquête plus approfondie

### Cible

[Log Analytics](/fr/portail-dadministration/settings/log-exporter/log-analytics.md) ou [Webhook général](/fr/portail-dadministration/settings/log-exporter/generic-webhook.md)

### Configuration du filtre de messages

#### Moteur de règles

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Succès                   | <mark style="color:vert;">Vrai</mark>  |
| Échec                    | <mark style="color:vert;">Vrai</mark>  |
| Erreur                   | <mark style="color:rouge;">Faux</mark> |

#### Système d'autorisation

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Requêtes                 | <mark style="color:rouge;">Faux</mark> |
| Succès                   | <mark style="color:rouge;">Faux</mark> |
| Échec                    | <mark style="color:rouge;">Faux</mark> |
| Erreur                   | <mark style="color:rouge;">Faux</mark> |

#### Authentification du proxy

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Connexions               | <mark style="color:rouge;">Faux</mark> |
| Succès                   | <mark style="color:rouge;">Faux</mark> |
| Échec                    | <mark style="color:rouge;">Faux</mark> |
| Erreur                   | <mark style="color:rouge;">Faux</mark> |

### Configuration des données

{% code lineNumbers="true" %}

```json
{
    "Décision": {{ data.get("Engine-Decision") }},
    "Date et heure" : {{ data.Datetime }},
    "Niveau": {{ data.level }},
    "Type d'authentification": {{ data.get("Authtype") }},
    "MAC du client": {{ data.get("Client-MAC") }},
    "Nom d'utilisateur": {{ data.get("User-Name") }},
    "Règle appliquée": {{ data.get("Applied-Rule") }},
    "VLAN": {{ data.get("Assigned-VLAN", "Aucun VLAN attribué") }},
    "Type de source d'authentification": {{ data.get("Auth-Source-Type") }},
    {% if data.get("Auth-Source-Type") == "WiFi" %}
        "SSID": {{ data.get("SSID") }},
        "MAC du point d'accès": {{ data.get("AP-MAC") }},
    {% endif %}
    {% if data.get("Authtype") == "Certificate" %}
        "Nom commun du certificat": {{ data.get("Certificate-Details", {}).get("TLS-Cert-Common-Name") }},
        "Numéro de série du certificat": {{ data.get("Certificate-Details", {}).get("TLS-Client-Cert-Serial") }},
    {% endif %}
    {% if data.get("Verify-Result") != None %}
        "Résultat de vérification": {{ data.get("Verify-Result") }},
        "Statut de vérification": {{ data.get("Verify-Status") }},
        "Type de vérification": {{ data.get("Verify-Type") }},
        "Description de vérification": {{ data.get("Verify-Description") }},
    {% endif %}
    {% if data.get("Reject-Description") != None %}
        "Description du rejet": {{ data.get("Reject-Description") }},
    {% endif %}
    "ID de corrélation GKG": {{ data.get("GKG-Correlation-Id") }}
}
```

{% endcode %}

## Exemple 3 : Notifications générales d'erreur

### Périmètre et hypothèses

Le périmètre de la requête ci-dessous est le suivant :

* l'administrateur souhaite recevoir des notifications proactives concernant les erreurs sur la plateforme RADIUSaaS pour l'équipe d'exploitation.

### Cible

[Teams](/fr/portail-dadministration/settings/log-exporter/teams.md), ou [Log Analytics](/fr/portail-dadministration/settings/log-exporter/log-analytics.md) ou [Webhook général](/fr/portail-dadministration/settings/log-exporter/generic-webhook.md)

### Configuration du filtre de messages

#### Moteur de règles

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Succès                   | <mark style="color:rouge;">Faux</mark> |
| Échec                    | <mark style="color:rouge;">Faux</mark> |
| Erreur                   | <mark style="color:rouge;">Faux</mark> |

#### Système d'autorisation

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Requêtes                 | <mark style="color:rouge;">Faux</mark> |
| Succès                   | <mark style="color:rouge;">Faux</mark> |
| Échec                    | <mark style="color:rouge;">Faux</mark> |
| Erreur                   | <mark style="color:vert;">Vrai</mark>  |

#### Authentification du proxy

| Niveau de journalisation | Activé                                 |
| ------------------------ | -------------------------------------- |
| Connexions               | <mark style="color:rouge;">Faux</mark> |
| Succès                   | <mark style="color:rouge;">Faux</mark> |
| Échec                    | <mark style="color:rouge;">Faux</mark> |
| Erreur                   | <mark style="color:vert;">Vrai</mark>  |

### Configuration des données

#### Teams

{% code lineNumbers="true" %}

```
Le système RADIUS rencontre des problèmes !
Message : {{ data.get('message') }}

Données brutes :
{{ data }}
```

{% endcode %}

#### Log Analytics ou Webhook général

{% code lineNumbers="true" %}

```
{
    "Message": {{ data.get("message") }},
    "Date et heure" : {{ data.get("Datetime") }},
    "Niveau": {{ data.get("level") }},
    "Type": {{ data.get("type", "non applicable") }}
}
```

{% 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/fr/portail-dadministration/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.
