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

Set extract_tags call prior exclude_fields #51

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

berghauz
Copy link

@berghauz berghauz commented Sep 17, 2016

Hi!
Propose to set extract_tags call prior exclude_fields, coz in case of needs to pull tags from already existent filelds its deleted before plugin can store it in tags. If not to change it this tags will store in influxdb twice: as tags and as extra fields.
What to commit:

  • set extract_tags call prior exclude_fields (also @measurement)
  • add mutate clause to be able remove "host" from exclude_fields in test pipeline, coz it somewhat a workaround near host=testing-worker-linux-docker-85c5f992-3430-linux-14
  • add mutate to development dependencies

Example below i have use in production:
influxdb{
send_as_tags => ["host","cc-group","acs-service"]
measurement => "%{schema}"
use_event_fields_for_data_points => true
exclude_fields => ["@Version","@timestamp","type","sequence","schema","host","cc-group","acs-service"]
}

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

Successfully merging this pull request may close these issues.

1 participant