Viewing logs of Azure functions

Mohamed Hussein 715 Reputation points
2024-12-11T02:22:19.9366667+00:00

Good Day,

How shall i view old logs like the one Log Stream section, (attached)

Is there anyway to open historical logs, given that Application insights is enabled

Azure Functions Consumption Plan HTTP trigger based

Image 4

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

Answer accepted by question author
  1. VenkateshDodda-MSFT 25,241 Reputation points Microsoft Employee Moderator
    2024-12-11T04:37:40.2766667+00:00

    @Mohamed Hussein Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    As you have enabled the application insights on the function app you can query the historical logs of the functions by query the request/traces tables using KQL queries.

    If you want to see the complete execution logs of the function, I suggest you enable the diagnostic settings and thereby querying the FunctionAppsLogs table you can query the required data.

    Refer to this documentation on how to analyze the functions telemetry using application insights.

    Hope this helps, let me know if you have any further questions on this.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.