Nodejs App Service unable to stream console log to log analytics
The current way of storing log is using a Logic App to download log files in Kudo Console periodically. However this method has flaws when there is spike in request Kudo Console can only keep a certain number of file and the new file will be overwritten. So in certain cases we will have missing log.
First trial: App Service Logs
I enabled config with these settings. Our expectation is the log file will be save to blob storage automatically without losing any file. However the file I get from the 'App Service Logs' doesnt resemble any console log, it looks more like the web server log
Second Trial: Diagnostic Setting
however there is no container for console logs.
Visiting the 'Logs' under 'Monitoring' I cant get any result for 'AppServiceConsoleLogs'
But 'AppServiceHTTPLogs' works just fine.
Question 1: How can i stream the console logs to work just like httplogs?
The alternative is I tried to send console logs using npm library for application insight to auto collect console logs.
However if involves multiple app service we are unable to differentiate the source of the logs.
Question 2: What are the best practice if we setup the logs through app insight sdk? 1 app 1 app insight?