# Log Analytics

## Prerequisites

To ingest RADIUSaaS logs into an **Azure Log Analytics Workspace**, please make sure that a workspace was already created and that you have the following **required values** available:

* Customer ID
* Shared Key
* Event Name

## Configuration steps

Follow these steps to add a **Log Analytics** export target:

* Navigate to your **RADIUSaaS Admin Portal**
* Click **+ Export Target**
* Select **Azure Loganalytics Exporter**
* Provide a **Name** and **Description**
* Configure the **Message Filters** to your needs
* Structure the **Data** to be ingested into your Log Analytics Workspace

{% hint style="warning" %}
Some data which you might send to your Log Analytics workspace will include new line characters. \
To get a valid JSON for every entry, the template engine has a global **tojson** **parser** which will apply for all variables you access.&#x20;

Therefore, **do not quote any jinja variable**.
{% endhint %}

**Correct**

![](/files/DRzl8kQIR43cGHYebsok)

**Wrong**

![](/files/LrspTtkHjLhR88lTXPXq)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.radiusaas.com/admin-portal/settings/log-exporter/log-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
