Hi,
I've been trying to solve this issue all day, no solutions online work for me.
When using topbeat (or another beat), the beat.hostname field (string), comes up as analyzed, screwing up the graphs.
I saw that there are two solutions to this:
- Automatically load a template where you specify "not_analyzed" for the field.
- Manually load the same thing using an HTTP PUT.
I cannot do #2 due to configurations of my network. I tried #1, with no results.
When changing the json.template, I succesfully see the changes in
http://localhost:9200/_template?pretty
(this is not all the json, just the relevant part)
"@timestamp" : {
"type" : "date"
},
"hostname" : {
"index" : "not_analyzed",
"type" : "string"
},
That didn't work so I tried making "beat" on the same level as @timestamp, and adding timestamp as a property of that
"@timestamp" : {
"type" : "date"
},
"beat" : {
"properties" : {
"hostname" : {
"index" : "not_analyzed",
"type" : "string"
}
}
},
with no results, the field still comes back as analyzed.
Anyone have any ideas?
Thanks