I've come across Version field type | Elasticsearch Guide [8.12] | Elastic which describes exactly what I want to do with a semver text field I'm ingesting via Logstash.
However, is it possible in the Logstash filter pipeline to convert the semver string into a version field type? If so, what does the syntax look like?
I am currently letting Logstash set up the mapping for incoming logs and do not manipulate the index mapping.
When I try this under 8.12 ELK stack:
mutate {
add_field => { "semver_version" => "%{version}" }
convert => { "semver_version" => "version" }
}
}
I get...
Invalid conversion type 'version', expected one of 'string,integer,float,boolean,integer_eu,float_eu'