You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define whether the header should be skipped. Defaults to false.
If set to true, the header will be skipped. Assumes that header is not repeated within further rows as such rows will also be skipped.
If skip_header is set without autodetect_column_names being set then columns should be set which will result in the skipping of any row that exactly matches the specified column values.
If skip_header and autodetect_column_names are specified then columns should not be specified,
in this case autodetect_column_names will fill the columns setting in the background, from the first event seen, and any subsequent values that match what was autodetected will be skipped.
As current official document says, we can confirm below behavior.
product behavior
When both skip_header and autodetect_column_names are specified as true, autodetect_column_names uses the first event for auto-generate the column names, and first event is skipped by skip_header(true). so csv filtering process is taken from second event which doesn't match first event.
a suggestion
How about adding above product behavior as a clear example ? (if this make documents more understandable.)
The text was updated successfully, but these errors were encountered:
This is not feature request, but Docs improvement request by a user.
https://www.elastic.co/guide/en/logstash/current/plugins-filters-csv.html#plugins-filters-csv-skip_header
As current official document says, we can confirm below behavior.
product behavior
When both
skip_header
andautodetect_column_names
are specified as true, autodetect_column_names uses the first event for auto-generate the column names, and first event is skipped by skip_header(true). so csv filtering process is taken from second event which doesn't match first event.a suggestion
How about adding above product behavior as a clear example ? (if this make documents more understandable.)The text was updated successfully, but these errors were encountered: