logstash-plugins / logstash-output-influxdb

Apache License 2.0
58 stars 79 forks source link

Set extract_tags call prior exclude_fields #51

Open berghauz opened 8 years ago

berghauz commented 8 years ago

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:

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"] }