Azure function integration with log analytic workspace

Pankaj Joshi 331 Reputation points
2024-08-31T16:11:35.2833333+00:00

I am writing function app in python, I need to add custom log in log analytic workspace through function app. Please advise how to integrate log analytic workspace with azure function app

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

1 answer

Sort by: Most helpful
  1. David Broggy 5,906 Reputation points MVP
    2024-09-01T16:48:47.1366667+00:00

    Hi Pankaj,

    Bit of a long shot maybe, but have you looked at the MSTICPy module?

    That python module has been used for years to integrate Microsoft Sentinel with log analytics and jupyter notebooks.

    Try using chatgpt or github codespaces with copilot to try something like:
    "give me a python script example using MSTICPy connecting to an azure log analytics workspace."

    https://learn.microsoft.com/en-us/azure/sentinel/notebook-get-started

    0 comments No comments

Your answer

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