Hi there,
I noticed that after I load in the topbeat template, and create an index pattern for topbeat, the 'beat.hostname' field is analyzed. I'm kind of a noob with beats/elasticsearch... could someone help me to change that field to non_analyzed? I've read through the Mapping docs, but i'm still unsure how to do it.
Having this field analyzed causes problems with hostnames that have a dash (-) in them because it sees it as 2 separate entities. What's odd is that in filebeat, this same field is not analyzed.
Topbeat and Filebeat have similar templates and the result should be the same. I have tried it on my computer and it works fine for me.
What version of Elasticsearch and Topbeat are you using?
I had the topbeat 1.0.0-rc1 template installed, but I just updated the template to 1.0.0 yesterday to see if that would fix the problem, but it didn't.
I'm using elasticsearch 2.0.0.
I've been noticing the same problem, and I'm using topbeat-dashboards-1.1.0.
I'm trying to understand the issue a little better, I'm hoping you might be able to provide some advice.
I have a few questions:
-The import template sets the analyzed flag?
-Is deleting all the indices the only method to remove the analyzed flag on the field?
-If I'm clear on this, your advice above is to: 1) delete all topbeat-* indices, 2) import the template from the load.sh/load.ps1 script and 3) refresh the topbeat-* index pattern in Kibana before loading more topbeat data?
@plonka2000 You would need to re-index your existing data. It takes a bit of work and the way you accomplish the task varies by your technology. Basically you read the data out of ES then re-write it to a new index. See the links below.
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.