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

Suppor for referencing nested record fields in Fluent plugin #1107

Closed
Horkyze opened this issue Oct 2, 2019 · 2 comments
Closed

Suppor for referencing nested record fields in Fluent plugin #1107

Horkyze opened this issue Oct 2, 2019 · 2 comments
Labels
component/agent component/integrations keepalive An issue or PR that will be kept alive and never marked as stale.

Comments

@Horkyze
Copy link
Contributor

Horkyze commented Oct 2, 2019

Currently, there is no way (that I know of) to reference nested JSON items in fluents plugin.

Somthing like this:

label_keys container_tag, hostname, message['path'], massage.path

It would be awesome to have the ability to use Fluent's RecordAccessor module.

So the nested items will be accessible like this:

label_keys container_tag, hostname, $.message.method,  $.message.anyting

The whole problem can be avoided I one does not uses nested JSONs in their record data model. But on the other hand, nesting provides better readability.

@cyriltovena
Copy link
Contributor

This is only true for fluentd, for fluent-bit we have nested mapping via json config.

This is very interesting, thank you !

@cyriltovena cyriltovena added keepalive An issue or PR that will be kept alive and never marked as stale. component/agent component/integrations labels Oct 2, 2019
@slim-bean
Copy link
Collaborator

This looks like it's supported now as of #1186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/agent component/integrations keepalive An issue or PR that will be kept alive and never marked as stale.
Projects
None yet
Development

No branches or pull requests

3 participants