logstash-plugins / logstash-output-influxdb

Apache License 2.0
58 stars 77 forks source link

Update influxdb.rb #50

Closed berghauz closed 8 years ago

berghauz commented 8 years ago

To add ability use event fields as tags and @measurement and remove them after, not before extract_tags call. For efficective DB space management.

For example:

influxdb{ send_as_tags => ["host","name","startaddr","state","vpnname"] measurement => "%{schema}" retention_policy => autogen use_event_fields_for_data_points => true host => "localhost" db => "ggsn" time_precision => "s" exclude_fields => ["@version","@timestamp","type","sequence","schema","host","name","startaddr","state","vpnname"] }