How to convert datatype field from "string" to "integer" with mutate filter?

hello ,
i'm using mutate filter to convert datatype filed from string to integer in logstash config file but no result it still showing string as type to "bytes_sent" field ,

this is the filter ;

mutate {
convert => { "bytes_sent" => "integer" }
}

else if you have any suggestion to set grok pattern ,feel free to give me information !

please help me !

Have you refreshed the field list in Kibana? Also, Logstash can never change the mappings in an existing index so adding the mutate filter above will only affect what happens when a new index is created. Have you tried changing the index name to force the creation of a new index?

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