From d38665fbb632d2fa6ac9992ac50ff3aa977eccbf Mon Sep 17 00:00:00 2001 From: JackSharebourg <100483529+JackSharebourg@users.noreply.github.com> Date: Tue, 12 Apr 2022 15:53:34 +0200 Subject: [PATCH] docs: update csv parser metadata descriptions (#10750) --- plugins/parsers/csv/README.md | 7 +++---- plugins/parsers/csv/parser.go | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/parsers/csv/README.md b/plugins/parsers/csv/README.md index e320a0471..685f4ac17 100644 --- a/plugins/parsers/csv/README.md +++ b/plugins/parsers/csv/README.md @@ -36,12 +36,11 @@ values. ## Indicates the number of rows to skip before looking for metadata and header information. csv_skip_rows = 0 - ## Indicates the number of rows to parse as metadata before looking for header information. ## By default, the parser assumes there are no metadata rows to parse. ## If set, the parser would use the provided separators in the csv_metadata_separators to look for metadata. - ## Please note that by default, the (key, value) pairs will be added as fields. - ## Use the tag_columns to convert the metadata into tags. + ## Please note that by default, the (key, value) pairs will be added as tags. + ## If fields are required, use the converter processor. csv_metadata_rows = 0 ## A list of metadata separators. If csv_metadata_rows is set, @@ -50,7 +49,7 @@ values. csv_metadata_separators = [":", "="] ## A set of metadata trim characters. - ## If csv_metadata_trim_cutset is not set, no trimming is performed. + ## If csv_metadata_trim_set is not set, no trimming is performed. ## Please note that the trim cutset is case sensitive. csv_metadata_trim_set = "" diff --git a/plugins/parsers/csv/parser.go b/plugins/parsers/csv/parser.go index 20fef8f5e..0c3033a06 100644 --- a/plugins/parsers/csv/parser.go +++ b/plugins/parsers/csv/parser.go @@ -351,7 +351,7 @@ outer: } } - // add metadata fields + // add metadata tags for k, v := range p.metadataTags { tags[k] = v }