I'll preface this by saying I have a ticket open with Elastic Support about this, but since it's a really weird one IMO, I thought'd I'd post here in case anyone else has seen it.
Basically we're sending monitoring data for about 70 beats to our monitoring cluster, and only ~12 are showing up.
After some investigation (by checking the .monitoring-beats-* index) we realised that many beats on different hosts have identical UUIDs
The monitoring UI sees each UUID as one beat, although when the page refreshes the last beat.name seen for that UUID is displayed.
Could you share with me the support case number so I can check the details?
This is my understanding of how the beat ID is currently generated / set:
When you run a beat instance for the first time, a beat ID will be generated by calling uuid.NewV4(). This function is defined in the uuid package.
The beat ID will then be stored in the meta.json file (stored in {path.home}/data folder) so that the UUID can be reloaded the next time you run the beat instance.
Regarding the UUID generation itself, I might need to check with the team if you wish to have further details.
For now, I am just wondering if the problem does not rely in the way you deploy beats. Could it be possible that the same meta.json file is being copied over across multiple hosts? If somehow, the beats instances use the same meta.json file (which contains the UUID), that would explain this situation. It is just a rough guess, but it could worth checking this.
I'm not sure how meta.json could have been the same - I don't think we are deploying anything there but am looking into it.
However I tried deleting the meta.json and straightaway it generated unique UUIDs for each host. Both UUIDs are now showing up in the .monitoring-beats index, but not in the UI which is interesting. I have about 15 minutes of data so far, but even with the monitoring UI set to 5 minutes I don't see anything.
You're welcome @rozling Do let us know if you find anything related to the deployment and the meta.json files. I am glad that we managed to have some progress in your issue. Please do follow-up with our support engineer on the other issue with the monitoring UI. Thank you!
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.