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

Semi structured json log parsing example #1632

Open
pepov opened this issue Jan 6, 2024 · 1 comment
Open

Semi structured json log parsing example #1632

pepov opened this issue Jan 6, 2024 · 1 comment

Comments

@pepov
Copy link
Member

pepov commented Jan 6, 2024

It would be nice to have an example to demonstrate how to parse semi-structured logs.

Let's consider the following log record:

  "message": [
    "I0104 15:47:24.388872   118 SyslogReporter.cpp:10] APP-METRIC {\"fields\":{\"drop\":0},\"measurement\":\"core.datafield\",\"tags\":{\"host\":\"blahblah-testing-9rtvp\",\"instance\":\"0\",\"source\":\"core.datafield\",\"type\":\"data\",\"worker\":\"0\"},\"time\":\"2024-01-04T15:47:24.000000000Z\"}"
],

We want to be able to parse this log message into a fully structured representation, typically into json. Let's create a test setup with a flow that solves this as a blog post or simply as an example in the docs:

Ideally the example should represent both the fluentd and syslog-ng solution.

Copy link

stale bot commented Mar 6, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the wontfix This will not be worked on label Mar 6, 2024
@stale stale bot closed this as completed Mar 13, 2024
@pepov pepov reopened this Mar 13, 2024
@pepov pepov pinned this issue Mar 13, 2024
@stale stale bot removed the wontfix This will not be worked on label Mar 13, 2024
@pepov pepov unpinned this issue Mar 13, 2024
@pepov pepov added the pinned label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant