Movatterモバイル変換


[0]ホーム

URL:


Loading
  1. Elastic Docs/
  2. Reference/
  3. Ingestion tools/
  4. Fleet and Elastic Agent/
  5. Agent processors

Decode CSV fields

Thedecode_csv_fields processor decodes fields containing records in comma-separated format (CSV). It will output the values as an array of strings.

- decode_csv_fields:    fields:      message: decoded.csv    separator: ","    ignore_missing: false    overwrite_keys: true    trim_leading_space: false    fail_on_error: true
Note

Elastic Agent processors executebefore ingest pipelines, which means that your processor configurations cannot refer to fields that are created by ingest pipelines or Logstash. For more limitations, refer toWhat are some limitations of using processors?

NameRequiredDefaultDescription
fieldsYesA mapping from the source field containing the CSV data to the destination field to which the decoded array will be written.
separatorNocomma character (,)Character to use as a column separator. To use a TAB character, set this value to "\t".
ignore_missingNofalseWhether to ignore events that lack the source field. Iffalse, events missing the source field will fail processing.
overwrite_keysNofalseWhether the target field is overwritten if it already exists. Iffalse, processing of an event fails if the target field already exists.
trim_leading_spaceNofalseWhether extra space after the separator is trimmed from values. This works even if the separator is also a space.
fail_on_errorNotrueWhether to fail if an error occurs. Iftrue and an error occurs, any changes to the event are reverted, and the original event is returned. Iffalse, processing continues even if an error occurs.

[8]ページ先頭

©2009-2026 Movatter.jp