Skip to content

CSV Processor

Yotam Bernaz edited this page Aug 28, 2020 · 11 revisions

CSV [csv]

This processor allows you to extract fields from a string that is in a CSV format. The CSV can have any separator and works only if the columns are in the same order. This processor also allows you to convert the fields after they are extracted to different formats.

  • field
  • targetField (optional)
  • separator (optional)
  • quoteChar (optional)
  • columns [array] (optional)
  • autoGenerateColumnNames [boolean - default = true]
  • skipEmptyColumns [boolean - default = false]
  • convert [this is a json object with key:values where the key is the field and the value is the type as specified in the Convert processor] (optional) EG

Example

{  
  csv: {  
    config: {  
      field: "message"
      separator: "\t"
      columns: ["Shipment", "OrderDT", "PrintDT", "ShipDT", "Commitment", "DelvDate"]
      skipEmptyColumns: false
      autoGenerateColumnNames: false
    }
  }
}
Clone this wiki locally