I want save data to elasticsearch by a json input, but when I created it I found that all my field type is string...
I try to format my data and it can achieve number and string two types' indices like this:
But c is an IP type here it is classified as string too... And I try to use mutate but find mutate can only support integer, float, string, and boolean convertion.
It's Elasticsearch that controls the mappings of the index, although actions taken in Logstash can affect the choices ES makes. Have a look at mappings and index templates in the ES documentation.
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.