Jul 25 2018
06:45 AM
- last edited on
Apr 07 2022
05:24 PM
by
TechCommunityAP
Jul 25 2018
06:45 AM
- last edited on
Apr 07 2022
05:24 PM
by
TechCommunityAP
Hi,
We're ingesting AKS (kubernetes) logs into an OMS using the built in OMS agent.
The problem with this is that multi-line loggings are handled as multiple LogEntries.
This is for example the case with exceptions being logged including stacktrace.
Do I look into remove the newlines from all log events?
This will improve cleanliness as it will contain one log event per entry but will decrease readability.
I can find the first line of the log event. So it could be an option to get the X next log events after this?
Any advice is welcome.
Thanks
Jan 19 2020 11:39 PM
@Bjorn Vandenbilcke did you manage to find a solution for this issue? I am facing this issue while starting up a azure function inside AKS container.
Jan 20 2020 01:22 AM
@umairsyed using something like Serilog will generate single line logs. Added benefit is that it's beter suited for structured logging.