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

LOGS[pipelines]: Docs on parsing dataType from grok and naming variables with dot #6955

Open
nityanandagohain opened this issue Jan 28, 2025 · 1 comment
Assignees

Comments

@nityanandagohain
Copy link
Member

  • for parsing with dataType it should be something like {int:name:int}
  • for naming variables with dot we should use a format like attributes["code.name"] otherwise it will be a nested one if we use attributes.code.name

faced by our own user @grandwizard28

@grandwizard28
Copy link
Collaborator

grandwizard28 commented Jan 28, 2025

It would also be great if we could add support in grok to directly read dotted entries as attributes. For example:

%{IPORHOST:client.address} %{DATA} \[%{HTTPDATE:timestamp}\] \"%{WORD:http.request.method} %{GREEDYDATA:url.path} ...

should be converted to

{"attributes":{"client.address":"<some-value>".....

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

2 participants