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

Missing docs for add_fields, add_labels, add_tags processors #10879

Closed
andrewkroh opened this issue Feb 21, 2019 · 1 comment
Closed

Missing docs for add_fields, add_labels, add_tags processors #10879

andrewkroh opened this issue Feb 21, 2019 · 1 comment

Comments

@andrewkroh
Copy link
Member

We recently added some new processors but we don't have documentation for them.

And once we add documentation I think we can close out:

@andrewkroh
Copy link
Member Author

Here's something to get us started.

add_fields

Parameters

  • fields - Required.
  • target - Optional. Defines where to add the fields. Default is fields. Use empty string to write to the root of the event.
processors:
- add_fields:
    fields:
      hello: world

This would create.

{
  "fields": {"hello": "world"}
}

This add fields to the root.

processors:
- add_fields:
    fields:
      hello: world
    target: ""

And creates:

{"hello": "world"}

add_labels

Parameters

  • labels: Required. Labels to add to the event.
processors:
- add_labels:
    labels:
      co.elastic.application: webserver

add_tags

Parameters

  • tags: Required. List of tags to append. The processor does not deduplicate tags.
  • target: Optional. Default value is tags
processors:
- add_tags:
    tags: ["foo", "bar"]

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