242 questions
0
votes
0
answers
40
views
Intermittent Issue with App Insights not logging Custom Dimensions
We have some wrappers written around the ILogger that translate name-value pairs into custom dimensions. We've been using this code for years and have struggled with intermittent issues where ...
0
votes
1
answer
100
views
Application insights logs go missing during certain time of day
I have around 10 function app deployed to Azure App Service. These functions gets triggered on a schedule using a timer trigger. Some of the function apps run every 5 mins while others run once per ...
0
votes
1
answer
136
views
Azure App insights daily cap reached without data?
We have Azure App insights with 4 GB set as a daily cap. And it started to report that the daily cap is reached regularly.
At the same time, based on a query for ingestion we see that only 2.5 GB of ...
0
votes
1
answer
620
views
Azure Flex Consumption Apps not logging to App Insights
Our Flex Function Apps are no longer logging to App Insights since around 20th February - rather oddly it seems to have coincided with all our Logic Apps failing to log, which was due to the App ...
0
votes
0
answers
34
views
How to authenticate a user when reporting a custom_event using python in appinsight
I am trying to trigger a custom event in a python application to record a system action linked to a specific user.
Our front end application provides a user_Id and user_AuthenticatedId to app insight ...
1
vote
0
answers
156
views
Serilog does not log Exceptions despite setting MinimumLevel to Information
I'm working on a ASP.NET Core MVC application and would like to use Serilog both for logging trace messages (Information) and Exceptions to Application Insight. The configuration code (from Program....
0
votes
2
answers
338
views
How to find failed workflow in standard logic app with KQL
I have a standard Logic app and multiple workflows (various system integrations, SI1, SI2 & etc.). I would like to create a dashboard according to SI1, SI2 and so on, and can leverage it to ...
0
votes
1
answer
101
views
Application Insights usage reports summarising by "OTHER"
Hi I am new to using App Insights. I need help identifying why my query is summarising some users into "OTHER" (upper case)
It looks like there is a limit to the number of items that can be ...
0
votes
1
answer
100
views
AppInsight not showing details for 408 response code
I have an AppInsights that works perfectly, but this morning I see a 408 response code in the Failures section. My problem is that I'm not able to see the details or why this is happening.
If I click ...
0
votes
1
answer
30
views
How libraries logs depenencies when then don't directly reference Application Insights?
In Application Insights, I can see dependencies like SQL, Http, etc being logged and associated with http request.
I wonder how are these logs produced, when those libraries does not reference ...
0
votes
1
answer
81
views
Logs Not Flowing from Function App deployed under ASE to its own Application Insights
We are experiencing an issue where logs are not flowing from our Azure Function App to Application Insights. The Function App has been deployed under an App Service Environment (ASE), and the ...
0
votes
2
answers
512
views
Why doesn't the azure-openai-emit-token-metric policy capture token usage for GPT4o stream responses?
I am working on a Retrieval-Augmented Generation (RAG) application that uses Azure OpenAI GPT4o for two types of API calls:
Rephrasing the question (non-streaming call)
Generating a response (...
0
votes
1
answer
173
views
Azure function app logs stop outputting to app insights inside new thread
I have a C# function app which runs a very long operation, and a pipeline which invokes it with the AzureFunction@1 task. The way to use this task is to start the function actual work in a new thread, ...
0
votes
1
answer
47
views
Microsoft Logging not found in App Insights Logs
I have a .net core app and configured app insights like this
Program.cs:
return WebHost.CreateDefaultBuilder(args)
.UseApplicationInsights()
.ConfigureLogging(logging =>
{
logging....
0
votes
2
answers
532
views
KQL question - Creating an azure alert when the exception count is higher than usual
I'm new to Azure App insights and I'm creating an azure alert based on app insights logs. I have a simple KQL query here which returns a result when the exception count is above 10. I'm looking for ...
0
votes
1
answer
679
views
Azure Application Insights with NestJS not logging requests
I'm trying to get Azure AppInsights to log incoming requests when using NestJS. Currently using package: "applicationinsights": "2.7.3" and node 16, deployed via App Service on a ...
0
votes
1
answer
319
views
Azure AppInsights ignores LogLevel other namespaces
I'm trying to setup Logging in my Azure Function App so that Azure App Insights only displays Information Level logs for a specific namespace, "TestNamespace" and its sub-namespaces, like &...
0
votes
1
answer
60
views
Strange .jsp file being created in one of dll folders in a legacy ASP.NET application
We have an very old ASP.NET web application deployed in IIS. It's written in VB.NET and has ApplicationInsight reference. We have been informed of a strange file being created in one of the folders ...
0
votes
2
answers
209
views
Some logs don't reach appinsights with isolated function app
I got a C# Azure function app and it uses an ILogger to log to app insight.
Until recently, the function app was implemented using .NET 6 and everything was fine. I then converted it to use .NET 8 and ...
0
votes
2
answers
403
views
Disable logging in APIM for certain endpoints in APIM
Their are some sensitive APIs that are onboarded on APIM and i want no logging to be done for them due to security concerns.
Was able to get many things but none of them work and was not in the will ...
0
votes
1
answer
72
views
Logs for Retry of DataLakeClienteOptions
I'm using Data Lake Storage with retry options.
My service is connected to appinsights and it uses a Azure Function.
Is there a way to query for retries of Data Lake Storage? Does it log automatically?...
0
votes
1
answer
101
views
Cannot read request body in HttpRequestTelemetryInitializer
I want to read the Body of incoming requests with the help of my HttpRequestTelemetryInitializer class. Although my GetRequestHeader method works successfully, I get the following error on the
var ...
0
votes
1
answer
140
views
Add-AzMetricAlertRuleV2 - Getting Not found error
I am trying to create alerts for databases in Azure using Add-AzMetricAlertRuleV2 command , but approach is working for other resources types like ASP , app services. not working with databases . can ...
0
votes
1
answer
496
views
Why is it not all azure app-insights metric appear in Grafana
I am setting up some Grafana dashboards which retrieve data from Azure. I have managed to setup most of the required panels but one that is eluding me is Authenticated Users.
So in azure we have app-...
2
votes
1
answer
233
views
Polly based retry logs intermittently not showing up in App Insights for Windows Azure Function
We have a Windows Azure function where we have Polly implemented as -
public async Task<T> ExecuteTaskWithRetryAsync<T>(int maxRetryAttempts, int delayBetweenFirstRetryInSeconds, string ...
0
votes
1
answer
638
views
Azure ApplicationInsights sampling overrides with multiple telemetry types, with different default sampling rates
I'm using sampling overrides (java sdk) to apply sampling on different telemetry types. I'd like to know if I can use different default percentages for different telemetry types, along with their own ...
0
votes
1
answer
94
views
Trace/Event Telemetry not Correlate to Request/Dependency Telemetry
I followed the instructions hereApp Insights to write custom telemetry
But I see that the trace does not work as the document said that they share the same operation ID
Along with setting an ...
0
votes
1
answer
232
views
Azure App Insights - is there a way to configure it to ignore specific URLs across entire tenant
For context: Say for example I work in Healthcare IT and we have applications that pass PHI/PII that we do not want anything recorded (it just creates headaches).
Is there a way to tell App Insights ...
2
votes
1
answer
371
views
Kusto query for time between records by group in one result list
I have a Debezium instance reading CDC events from a database for several different tables and publishing those messages to the same Kafka/Azure Event Hubs topic. A scaled-out service consumes these ...
1
vote
2
answers
1k
views
In Azure Application Insights how do I unmask client IP address
I noticed all the exception loggings in the 'Failures' come client Ip zeroed. How do I turn this one or unmask so the client IP is visible on every logging?
1
vote
0
answers
240
views
Azure Service Bus: Time Spent in Queue is Large
We have a .NET process where the process is subscribing to the Topic. One of the common observations is that the Time Spent in Queue is large.
Azure Service Bus is running with 2 Messaging Units. The ...
0
votes
1
answer
438
views
How to check tag of spans of opentelemetry in azure app insight
I am using aspnet core with opentelemetry. When I try to set tag in activityEvent. It appears in customdeminsion field in trace log in azure app insight. However. When I try to setTag in activity. I ...
0
votes
1
answer
123
views
AppInsights - Summarize by count() show result in grid even if 0
Hello I have a query like this:
customEvents
| where name in ("event1", "event2")
| summarize count() by name
And the thing is that when event2 has no results in the timerange it ...
0
votes
2
answers
115
views
Azure Function App doesn't forward logs to AppInsight
I'm encountering an issue where Azure Function App isn't forwarding logs to AppInsight. I've checked the file system logs on the function app, and they're working fine and complete. Also, I'm sure ...
0
votes
1
answer
405
views
App Insights ITelemetryInitializer / ITelemetryProcessor Not Working When Application Deployed to App Service
I'm attempting to include our application user ID in the app insights events that we send. This is a .Net Core web application. I've tried using both ITelemetryInitializer and ITelemetryProcessor.
...
0
votes
0
answers
94
views
Powershell query to Azure app insights looking for exceptions
$query = @{
"timespan"="P7D"
"Query" = "exceptions"
} | ConvertTo-Json
$component = Get-AzApplicationInsights -ResourceGroupName $...
1
vote
1
answer
198
views
How to disable adaptive sampling while passing instrumentationKey in AddApplicationInsightsTelemetryWorkerService()
Currently what I did in startup class is:
services.AddApplicationInsightsTelemetryWorkerService(<MyAppInsightsInstrumentationKey>);
According to official example, to disable adaptive sampling ...
0
votes
1
answer
860
views
Using Kusto Query compare a time offset to current data set and calculate the difference
I'm trying to figure out how to compare a current data set for the previous 24 hours to a -7d offset and then display the difference in a percentage. I currently have the following :
let currentB =
...
1
vote
1
answer
86
views
azure logging wrapper import from another file - not working
i'm having some issues with a logging wrapper i createed. the repo structure is this one:
├───auth
│ └───auth_handler.py
└───logger.py
inside the auth_handler i have some functions that are used by ...
0
votes
1
answer
829
views
Configuring Adaptive Sampling not reflected in Azure Portal
I am configuring Azure App Insight's adaptive sampling in my appsettings.json file based on this article. https://learn.microsoft.com/en-us/azure/azure-monitor/app/sampling-classic-api#configuring-...
2
votes
3
answers
1k
views
Change the default Application Insights log level in a Spring Boot app
By default, Azure's Application Insights only captures events at the INFO level and above. I want to change the default level to INFO in a Spring Boot app. I tried to achieve this by adding the ...
0
votes
1
answer
1k
views
Azure Functions isolated worker model - no information logging when executed from Azure
I have several Azure Functions which I recently migrated from in-process model .NET 6 to isolated worker model .NET 8.
Everything seems to be working just fine, except I'm not seeing information logs ...
0
votes
1
answer
48
views
How to get values for session_isFirst using application insights query
Azure Application Insights continues export data json contains following fields,
"context": {
"session": {
"id": "5JMv4",
"isFirst"...
0
votes
1
answer
168
views
ApplicationInsights > loglevel coming from env variables
Can we use environment variables (or even key vault, api management, ...) for saving the log level? If so, how?
I can't seem to find it anywhere.
End goal is to be able to change it during runtime ...
1
vote
0
answers
93
views
Otel PropagatedSpan(NoOp) is created for HTTP requests with sampled traceflag
I have a spring boot application using otel sdk 1.23.1, and using the AppInsight agent (v3.4.16). When a HTTP request with a traceparent with sampled flag (e.g. 00-155346606a87c80bab0c375534b1155e-...
0
votes
1
answer
451
views
Override app insights client config for containerised node js azure web app
When we used package deployment mode for our node.js app running on azure web app resource, we used the code-based way to override the default appInsights client configuration. Like that:
import {...
0
votes
1
answer
2k
views
How to use Azure application insight in Typescript
How to use Azure application insight in Typescript .The already available solutions are for Angular which isn't working for me.
I tried the solution for angular , it didn't work. i used a 3rd party ...
1
vote
1
answer
401
views
Telemetry Initializer increases drastically number of calls to Application Inisghts
I didn't find a similar problem on Stack or on Google so I am asking here. I am a very Junior Developer and I work with Azure AppInsights. I added a telemetry Initializer to be able to check the user ...
1
vote
0
answers
435
views
Azure AppInsight - Where is my custom attributes?
I am using OpenTelemetry, and trying to add a custom attribute to the current Span, and I can see the attribute (user.name, user.role) is showing as part of the trace:
// This is a sample trace coming ...
0
votes
1
answer
1k
views
How to log request count, pageviews in azure app insight using js sdk
I have nextJs application.
Telemetry.ts
import { ApplicationInsights } from '@microsoft/applicationinsights-web';
const appInsights = new ApplicationInsights({
config: {
connectionString:
...