To be clear, your fields will still be analyzed. However elasticsearch will create sub fields that are NOT analyzed and can be used for sorting or aggregations. For instance if one of your string fields is "foo", then you will have a "foo.raw" field that is not analyzed.
I have all the new fields
if [type] == "disk_space" {
grok {
match => [ "message", "%{DATESTAMP:date} %{NUMBER:used:int} %{GREEDYDATA:disk_part}" ]
}
}
even it is showing as analyzed. not sure where I am making mistake
Could you delete the index and try again? I suspect the source of the problem is that you are indexing into an existing index, so dynamic templates won't be applied.
are my template and output good? I tried to reindex and also with different index but no luck.
Do I need to load the template in elasticsearch. Is it possible
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.