Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to work with structured logs? #93

Open
diegobernardes opened this issue Jun 18, 2020 · 2 comments
Open

How to work with structured logs? #93

diegobernardes opened this issue Jun 18, 2020 · 2 comments

Comments

@diegobernardes
Copy link

I'm a SumoLogic user and my app is generating structured JSON logs. Using this collector the logs are ingested as plain text lines.
There is any way to enable JSON processing?

@maimaisie
Copy link
Collaborator

I believe the Docker API we are using for our Docker sources emits logs line by line, and currently Sumo does not support stitching log lines back once we receive the data from Docker.

An alternative is to use file based Docker logging driver for your containers and configure a Local File source in the collector to ingest data from it. This way, you can take advantage of automatic boundary detection or specify your own boundary detection rule with regex for multiline messages.

@himanshub16
Copy link

himanshub16 commented Jun 29, 2020

moby/moby#22920 (comment)

Agreed. We decided to make all our services log in json format and it works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants