How to create dynamic columns for a CSV plugin


We are trying to get the columns of a CSV file dynamically into elasticsearch using logstash csv plugin.

Here we observed is everytime we need to manually specify the field names in csv filter plugin.

Let us assume, if we know the only path of that particular csv file and we don't know the field names, how can we retrieve those field names?

But if we have hundreds of field names in a particular csv file (OR) if we want to get those field names without specifying it in plugin, how can we get those all fields?

Thanks in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.