# Diagnostic Settings

Diagnostic settings lets you export platform logs and metrics to other services. Each Azure resource requires its own diagnostic settings where we define the following:

* The type of metric and log data to be sent
* One or more destinations to send to.

Let us see the configuration of diagnostic settings for the Inforiver resource.

### Configuration Steps

1. Select the resource for which you want to configure the Diagnostic Settings. Here, choose Inforiver from the resource groups.
2. From the menu on the left side of the window, go to **Monitoring** section and choose **Diagnostic settings.**
3. On the right, click on **+ Add diagnostic setting.**

<figure><img src="/files/A1JIC1kgHvCB7c4H6xkB" alt="This page shows the diagnostic settings tab."><figcaption><p><strong>Diagnostic Settings</strong></p></figcaption></figure>

4. Now, you can specify the following settings:

* **Name:** Name your diagnostic setting here.
* **Logs:** Select the types of logs you want to collect through the check boxes available. You can choose from options such as App Service Application logs, HTTP logs, Platform logs, etc. The list of logs varies depending upon the Azure service.&#x20;
* **Metrics:** Select the metrics you want to collect by ticking on the checkboxes available. Metrics provide performance and usage data for the resource. Select **AllMetrics** if you want to store metrics in Azure Monitor Logs too.

<figure><img src="/files/h9dRI7sg1QbZTVJaU83Y" alt="This page shows the logs and metrics available in the diagnostic settings tab."><figcaption><p><strong>Logs and Metrics in Diagnostic Settings</strong></p></figcaption></figure>

* **Destination:** Choose the destination where you want to send the logs and metrics. You can select options like Azure Storage, Event Hubs, Log Analytics workspace, or a combination of these.
* **Retention(days):** Specify the number of days you want to retain the logs and metrics data.

Once you have configured the settings, click on **Save** to apply the diagnostic settings.

You can refer this [page](https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings?tabs=portal) to learn more on Diagnostic Settings in Azure.


---

# 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.inforiver.com/inforiver-enterprise-on-prem/how-to-guides/diagnostic-settings.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.
