Hello @Vijayasundhar Nanjundan
To control which logs are sent to Datadog, you can use Azure resource tags to configure the inclusion or exclusion of specific logs.
Here are the steps you can follow to manage the logs being sent to Datadog:
- Tag Rules for Sending Logs:
- By default, logs are collected for all resources.
- Azure resources with Include tags send logs to Datadog.
- Azure resources with Exclude tags don't send logs to Datadog.
- If there's a conflict between inclusion and exclusion rules, exclusion takes priority.
- Configuration:
- You can configure the Azure resources to include or exclude specific logs based on tags.
- Ensure that the resources associated with the logs you want to control are tagged appropriately.
- Example: If you want to exclude logs from
Microsoft.Azure.WebJobs.Script.WebHost.Middleware.SystemTraceMiddleware
from being sent to Datadog, you can set up exclusion rules using tags.
Unfortunately, without specific details on your Azure Function configuration and the exact methods you have tried, it's challenging to provide a precise solution. However, by utilizing Azure resource tags effectively, you should be able to control which logs are sent to Datadog. If you need further assistance or have more specific details to share, please provide additional information so that I can offer more tailored guidance.
I hope this helps.