Unable to convert field from string to integer

I am unable to convert a field, that I am generating using 'kv' plugin, from string to integer. Here is the snippet of the config:

filter {
kv {
allow_duplicate_values => false
value_split => "="
mutate { convert => { "elapsed" => "integer" }}

Any insight is much appreciated.


Have you tried using the mutate filter to convert to a string to an integer:


That's exactly what I am trying to use (see the code snippet), however to no success.

Is this an LSF or an LS question?

warkolm, should probably be a LS questions. I'll reopen the request or move it.

Moved to LS section.


same issue here. How did you fix that ?