K
K
ksimmi2020-09-16 15:09:30
graylog
ksimmi, 2020-09-16 15:09:30

How to stop outputting each line in the stacktrace to the log as a separate message?

Hello!

Already on the second project, I encounter the problem of reading logs on the production. There are several microservices raised in Kubernetis on sale. On the first project, the logs were written in graylog, in the current project, they first used Kibana, then went to Google Cloud. In all cases, the problem is the same: if there is a logged exception, then its stacktrace, consisting of several lines, is published to the logs line by line, i.e. one line - one single message. It is very difficult to read such logs. On both projects, devops say that this is NORMAL, that these are docker features. I myself am a developer and when I am involved in the analysis of incidents, it becomes a pain for me. I do not agree with devops that this is normal.

5f620057ad182619032307.png
Help solve the problem.

Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2020-09-16
@ksimmi

On both projects, devops say that this is NORMAL

This not normal.
There are different options for processing Multi line log events - from processing logstash in ELK to using the JSON format. In general, let them work!

I
Ivan Shumov, 2020-09-16
@inoise

This problem is not solved by these tools. Collection of logs in this form should be, and tools like Sentry are used to analyze the logs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question