I just want to search on - "-Dname" and extract the "process01" name
This search string works:
system.process.name : java AND system.process.cmdline : *Djava* AND beat.hostname:server01
But this doesn't bring back any results even though i can see it in the sting.
system.process.name : java AND system.process.cmdline : *Dname* AND beat.hostname:server01
It's a long shot but I'm hoping that this can be explained and I need to add an additional value to my metricbeat.yml to get data out. It's just confusing because I can see dname in the string so it may be something else.
Looks like it's a problem stemming from the fact that the field can get over 1024 characters. And in the metricbeat index template, the parameter ignore_above is set for 1024, making that document not indexed, which in turn means not-searchable. https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-above.html
You are right, checking the largest document, it was over 27,000 characters which is too big to make searchable in ES. For this reason i switched from metricbeat direct to ES, and instead used filebeat to send over the metricbeat log to logstash.
Slightly more work than i was planning on doing but I now have alot more control over my data. If anyone is interested, this is the regex i used to pull out the field of interest in logstash:
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.