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:
h1,h2,h3,h4,h5
a,b,c,d,e

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 tag_exclude modifier to drop those from the metric sent to influxdb.

thanks @glinton for the help

[[inputs.tail]]
files = [“test.csv”]
from_beginning = false
data_format = “csv”
csv_header_row_count = 1
csv_tag_columns = [“a1”]
csv_delimiter = “,”
csv_trim_space = true
csv_column_names=[“a1”,“a2”,“a3”,“a4”,“a5”]
name_override = “test”
fielddrop = [“a4”]

    [inputs.tail.tags]
            a3="x"

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