I have a problem on Kibana, I converted a field from string to integer on the logstash configuration file using mutate { convert ..
....
if [exportedRecords]{
mutate{
convert => { "exportedRecords" => "integer" }
}
....
But when i get the field on kibana, i get it as a string.
Hi,
The type of field is configured in Elasticsearch.
If you didn't specify mapping for your index a default dynamic mapping probably set the field type to text. Once something is written into the index the mapping won't change.
You should create a template for the logstash index and specify a mapping. Then recreate the index.
Just recreating the index can also help. If the first item you write to index to the field is a number, the mapping may be automatically set to number, but this is not the correct way.
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.