Hey Team. Just getting started using heartbeat.
Here's the full error I'm getting. This shows up under the 'Monitor Status' section of the /app/uptime area:
Error: [illegal_argument_exception] Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [monitor.id] in order to load field data by uninverting the inverted index. Note that this can use significant memory.
I cleared the index which is why it's only there once, but it was down there several times. Not sure what I did wrong
I feel like I can work around this with my own dashboards but I want to understand what I did/didn't do, etc. And of course having access to the built-in dashboard won't hurt!
I stopped heartbeat (I just have the one), I deleted the indices, and I even deleted the kibana mapping.
Started heartbeat, made a new mapping in kibana.
Dashboard looks exactly the same! Same error:
Error: [illegal_argument_exception] Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [monitor.id] in order to load field data by uninverting the inverted index. Note that this can use significant memory.
Hmmm, what do you mean by "made a new mapping in kibana". Did you make one, or did heartbeat?
The mapping heartbeat makes shouldn't cause this issue.
Technically heartbeat makes a template, which is used to generate the mapping. That monitor.id is not a keyword type (which is indicated by the error you're getting), shows that the template isn't being created or applied.
Ah...that puts me down the right path, I hope. I definitely modified my default ES template what feels like a hundred years ago, because I was having trouble with winlogbeat needing more than 1000 fields. I wonder if I did something that messed things up for heartbeat. I think that's the door I need to kick down for now.
Because kibana definitely didn't have a mapping for heartbeat - I had to go in and create a "heartbeat-*" mapping manually.
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.