How to convert a field string to long in logstash

HI,
How to convert string field to long in logstash.

When i configured data type as long like below logstash not running.
mutate {
convert => { "clientid" => "long" }
convert => { "groupid" => "long" }
convert => { "teamid" => "long" }
convert => { "userid" => "long" }
convert => { "serviceid" => "long" }
convert => { "eventid" => "long" }
convert => { "pulsecount" => "long" }
convert => { "statusid" => "long" }
convert => { "ostype" => "long" }
convert => { "dvpdropstate" => "long" }
convert => { "dvpdropcode" => "long" }
convert => { "creditsconsumed" => "long" }
convert => { "callduration" => "long" }
convert => { "voiceflowid" => "long" }
}
Thanks in advance.

Valid conversion targets are: integer, float, string, and boolean.

So it won't do float, you would need to map that in ES.

Thank for the reply.Can you please share how to map in elasticsearch

For information, if you convert to "integer" in logstash, and then send the document to elasticsearch, elasticsearch will automatically use "long" mapping for this field.