I have a Python script that I want to run daily that produces a Pandas dataframe.
I want this dataframe to be added daily to my log analytics workspace.
I have a Windows server that I can use to run my Python script.
What do I need to do to make this work? Is there a way to go from DataFrames to push to a Syslog server?
I have reproduced in my environment and below are my expected results:
I have taken below code from Microsoft-Document and modified a little:
Output:After running the python code, it takes some time for the logs to be generated in Log Analytics(Wait for around 5-10 min).
Note:In calling of function:
You can get above values by following below: