[pkg/stanza] csv_input operator should support auto detection of header #10275
Labels
enhancement
New feature or request
never stale
Issues marked with this label will be never staled and automatically removed
priority:p3
Lowest
CSV format allows headers to be specified as the first line in a file. Ideally, this library should support parsing of such files.
The
csv_parser
is only responsible for parsing one line of a file at a time, meaning that it cannot handle this basic use case on its own.A
csv_input
operator could follow the example of thesyslog_input
operator, in that is wraps multiple operators together into a more useful form. In this case, it would wrapfile_input
andcsv_parser
. It should also provide a config flag such asfirst_line_headers
to indicate whether or not the first line should be interpreted as headers.The text was updated successfully, but these errors were encountered: