Error parsing mappings: Unexpected token f in JSON at position 81

I am trying to import one CSV file in Data Visualizer in Kibana.

Mappings :

{
  "@timestamp": {
    "type": "date"
  },  
  "Date": {
    "type": "date"
    format : "dd-MM-yyyy"
  },
  "Order_Demand": {
    "type": "long"
  },
  "Product_Category": {
    "type": "keyword"
  },
  "Product_Code": {
    "type": "keyword"
  },
  "Warehouse": {
    "type": "keyword"
  }
}

Ingest Pipeline :

{
  "description": "Ingest pipeline created by file structure finder",
  "processors": [
    {
      "date": {
        "field": "Date",
        "timezone": "{{ beat.timezone }}",
        "formats": [
          "dd-MM-yyyy"
        ]
      }
    }
  ]
}

While importing it, it displays this error :
Error parsing JSON

Error parsing mappings: Unexpected token f in JSON at position 81

Yep, looks like your json is not formatted correctly, specifically that format is not in quotes, and that there isn't a comma at the end of the previous line.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.