Hi,
i simply want to create a new numeric field.
But when using "add-field" command i get systematically a string !
My logstash filter code like :
....
mutate { add_field => { "launcher.%{company}" => "%{count_comp}"} }
mutate { convert => ["launcher.%{company}","float_eu"] }
....
I tried with type "integer" but it's the same result.
add_field always adds strings. You can use mutate+convert to change it to a number. Note that convert gets executed before add_field, so it has to be a separate mutate filter.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.