Tail plugin telegraf

i am using tail plugin to populate data in influxdb from csv files.
i want to skip a few columns/fields.

For example:
test.csv is as below:

i want to upload only h1,h3 and h5 in influxdb.
how can i do that using tail plugin?

You should be able to use the fielddrop and tagexclude modifier to drop those from the metric sent to influxdb.

thanks @glinton for the help

files = [“test.csv”]
from_beginning = false
data_format = “csv”
csv_header_row_count = 1
csv_tag_columns = [“a1”]
csv_delimiter = “,”
csv_trim_space = true
name_override = “test”
fielddrop = [“a4”]


is this inccorectly written?
i was expecting this to remove a4 from the measurement test, but it is not doing so.

Determine whether a4 is a field or a tag, and use fielddrop or tagexclude accordingly.

1 Like