Skip to content

Document usage #9

Description

@lukeplausin

Hi, I'm trying to find a complete example of how to configure this codec for input.

All the examples I have found only show basic usage

e.g.

input {
  file {
    path => "/mnt/data/file.csv"
    mode => "read"
    codec => "csv"
  }
}

What if I want to set the options, like autodetect_column_names?

I've tried this

input {
  file {
    path => "/mnt/data/file.csv"
    mode => "read"
    codec {
      csv {
        autodetect_column_names => true
        skip_empty_columns => true
      }
    }
  }
}

Which just results in a logstash syntax error.

No full examples anywhere in the logstash documentation or in the repo..

How would I do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions