Forum Discussion
Container logs
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
2 Replies
- umairsyedCopper Contributor
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.
- Bjorn VandenbilckeCopper Contributor
umairsyed using something like Serilog will generate single line logs. Added benefit is that it's beter suited for structured logging.