We need to stop the logs in the Application insights except traces table

Raguram Manokaran 80 Reputation points
2023-07-27T05:50:06.0033333+00:00

"We have different types of tables in Azure Application Insights. We need to stop the execution of all the tables except the traces table. Please suggest a way to accomplish this.

Reason: We are incurring a significant cost."

User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,687 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,016 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,529 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Gimblett 2,980 Reputation points Microsoft Employee
    2023-07-27T14:05:12.9833333+00:00

    Hi @Raguram Manokaran - thanks for the question...

    I will start by giving you a generic answer, let me explain why: App Insights does differ between runtime and to a much lesser extent where you host. For example, App Insights for Java is a different implementation from App Insights for dotnet and therefore what is available to configure and how you configure it differs as well.

    You tagged the question with "Functions" - there's a really important document that you should read that helps you understand how App Insights works with functions and how to manage an increase in costs https://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#solutions-with-high-volume-of-telemetry (I've linked the high volume section, but the whole document is well worth reading)

    Generically the answer is to configure sampling. Sampling works to ensure you are emitting enough data to get value but at the same time omitting data (which can help with costs).

    However, that isn't what you asked.

    It is also possible to directly amend the configuration in most cases. As an example, the way to do this for customers using the asp net SDK is documented here https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core?tabs=netcorenew%2Cnetcore6#configure-or-remove-default-telemetrymodules Along with sampling you can also disable modules through the service configuration. For the same sdk you can then alter the log level (for traces collected).

    Hope this helps, if so please mark the answer as accepted as it helps others

    0 comments No comments