Answered by:
How to get logs in app service plan and show it in Log Analytics?

Question
-
Hi.
I have a question about log analytics.
I have some log files in app service plan(VM, OS:windows) .
The directory is D:\home\site\wwwroot\App_Data\jobs\triggered\<app name>\webjob\logs
Does anyone know how to collect log files from this directory and send it to log analytics?
We need to see these log files on log analytics screen and analyze it.
Thank you.Friday, September 21, 2018 11:38 AM
Answers
-
In that case you might want to look into Azure Application Insights
- Marked as answer by i-matsunaga Wednesday, October 3, 2018 11:48 PM
Monday, October 1, 2018 6:56 PM -
Hello,
You can also try querying Application Insights apps with cross-resource queries from Log Analytics:
https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-cross-workspace-search
- Proposed as answer by Jason_J (Azure) Tuesday, October 2, 2018 5:54 PM
- Marked as answer by i-matsunaga Wednesday, October 3, 2018 11:48 PM
Tuesday, October 2, 2018 5:54 PM
All replies
-
Hi,
You might want to read Data sources in Log Analytics also this is not what you asked but its just a suggestion: App Service Plan gives you built in diagnostics if you are interested you can read Enable diagnostics logging for web apps in Azure App Service
Regards,
Alberto Vega
- Edited by Alberto Vega (Azure) Monday, September 24, 2018 9:10 PM
- Marked as answer by i-matsunaga Tuesday, September 25, 2018 9:36 AM
- Unmarked as answer by i-matsunaga Thursday, September 27, 2018 1:00 AM
Monday, September 24, 2018 9:02 PM -
Thank you.
I know that probably I am unable to integrate my webjob app with log analytics because log analytics collect data from data sources where agent was installed.
I think that Webapp is a PaaS service and Log Analytics collect data from IaaS datasource, but is it correct?
Tuesday, September 25, 2018 9:36 AM -
In that case you might want to look into Azure Application Insights
- Marked as answer by i-matsunaga Wednesday, October 3, 2018 11:48 PM
Monday, October 1, 2018 6:56 PM -
Hello,
You can also try querying Application Insights apps with cross-resource queries from Log Analytics:
https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-cross-workspace-search
- Proposed as answer by Jason_J (Azure) Tuesday, October 2, 2018 5:54 PM
- Marked as answer by i-matsunaga Wednesday, October 3, 2018 11:48 PM
Tuesday, October 2, 2018 5:54 PM