Csv filter convert


#1

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 ?


(Magnus B├Ąck) #2

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


(system) #3

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