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

[Critical] HOW TO PARSE JSON LOGS USING LOGGIE #660

Open
Praveen2099 opened this issue Jan 11, 2024 · 2 comments
Open

[Critical] HOW TO PARSE JSON LOGS USING LOGGIE #660

Praveen2099 opened this issue Jan 11, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Praveen2099
Copy link

@Praveen2099 Praveen2099 added the question Further information is requested label Jan 11, 2024
@Praveen2099
Copy link
Author

Source logs is

{"log":"{"myfield1": "hello world", "myfield2": "ok", "app": "my-app" }\n","stream":"stdout","time":"2024-01-11T06:58:56.042165722Z"}

I want all fields extracted in key value to store in opensearch

@Praveen2099 Praveen2099 changed the title HOW TO PARSE JSON LOGS USING LOGGIE [Critical] HOW TO PARSE JSON LOGS USING LOGGIE Jan 11, 2024
@sentoz
Copy link

sentoz commented Jan 15, 2024

Source logs is

{"log":"{"myfield1": "hello world", "myfield2": "ok", "app": "my-app" }\n","stream":"stdout","time":"2024-01-11T06:58:56.042165722Z"}

I want all fields extracted in key value to store in opensearch

Hi, you need use Interceptors transformer jsonDecode - https://loggie-io.github.io/docs-en/reference/pipelines/interceptor/transformer/#jsondecodekey

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

No branches or pull requests

2 participants