Csv filter convert

Hi,

When I use logstash csv filter convert option it fails to convert integer, I am getting 'long ' instead of integer .

Example:

csv {
separator => ";"
columns => ["Queue","closed_duplicate","closed_successful","closed_unsuccessful","merged","new","open","pending_auto_close+","pending_auto_close-","pending_reminder","removed","Sum"]
convert => {
"closed_duplicate" => "integer"
"closed_successful" => "integer"
"closed_unsuccessful" => "integer"
"merged" => "integer"
"new" => "integer"
"open" => "integer"
"pending_auto_close+" => "integer"
"pending_reminder" => "integer"
"removed" => "integer"
"Sum" => "integer"
}
}

mapping

     "new": {
        "type": "long"
      },
      "offset": {
        "type": "long"
      },
      "open": {
        "type": "long"
      },
      "pending_auto_close+": {
        "type": "long"
      },
      "pending_reminder": {
        "type": "long"
      },

How do I fix this ?

You'll have to use an Elasticsearch index template for that.

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