-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate logs #1627
Comments
@rndthoughts -- when you say you were viewing "Streaming logs" and saw duplicates, did you mean this view (1): Also, what file did you download via FTP where you said you saw duplicate logs? |
I was looking at view (2) - the portal streaming logs view. The file via FTP was located in LogFiles\Application\Functions\Function\ClientApiUpdates. |
@ahmelsayed -- Is this a known issue? It looks like several people are seeing dupe logs in the Streaming logs view. |
that would be expected for the (2) view above. The runtime double logs stuff into the function specific logs (under |
The reports are a bit unclear to me. I can't tell where exactly are people seeing these duplicate logs. As I mentioned they are expected for view (2) above, but not view (1) and not in the CLI. are any reports saying that about (1) or the cli? |
I am not sure this is the same issue, but it's similar enough. |
I just reproduced on 1.0.0-beta.100, here's the output from a single failed queue trigger execution:
|
I am experiencing this in Visual Studio 15.5 when viewing the Streaming Logs. The logs of a basic function generate duplicate messages.
Repro:
If this is because the Streaming Log viewer is collating messages from various sources (as mentioned above), perhaps we could introduce a filter so I can choose which logs to see. |
I saw this issue after renaming the functions class e.g. "public static class BlobTrigger" |
Well, I am facing the same issue at vscode when streaming the whole Function App. Any progress on that? |
I am facing the same issue when checking the logs in Application Insights. I know that 901 actual requests were sent to the Function HTTP endpoint. The Kusto query in Application Insights Even worse, under Home > App Services > MyFunction - MyHttpTriggerFunction, under the "Monitor" tab, I see 961 executions. I'm worried that we'll have to pay for the higher amount of shown executions which would be a 7% extra cost compared to reality. (The names of the app and function are fictitious) |
To figure out exactly what you're charged for, see: |
@TobiasBengtsson -- since this issue about the streaming logs, I've created a new issue to track this and figure out what's going on: #4268 |
@brettsam: For view 2, the log stream from the app level portal is using the url https:/.scm.azurewebsites.net/api/logstream. As we have some logs the same in the host file and the function they both will propagate. Thank you! |
This is still a thing, I see. Any chance of a fix? I have some debugging log entries that are quite verbose, and scrolling through them is a major pain. |
Still seeing this issue. Any updates on this? |
We're also having this problem at work it's a problem since other services we have that use logs for processing also get's the double because of this. |
@weng271190436 (and everyone for that matter) -- are you doing anything custom with your logging (like using FunctionsStartup to register additional logging?). The fact that it's only your logs being written twice is interesting. Including the host version (v1, 2, 3) is helpful -- as well as a screenshot of where you're seeing these dupes, and what the log messages are. |
@ClaytonBrawley I had the same issue, and @brettsam is right, i used |
when using Serilog with a sink to AI, we also get duplicate logs. serilog-contrib/serilog-sinks-applicationinsights#157 there is no way to remove the default LoggerProviders as the Azure function runtime validates these are required services in order to start up. can validation of loggers be removed? |
I've seen several people report that they're seeing duplicate logs:
The text was updated successfully, but these errors were encountered: