I have setup a template trough my winlogbeat file and i wanted to update it on Kibana by adding an alias. Everytime i added the alias i noticed that the change would apply, but 5 seconds later it would disappeir.
Turn out that one of my node keep re-adding the template every 5 seconds, overwriting my changes (seeing it on the cmd console of elasticsearch, i'm running it on windows) . I tried rebooting my nodes but it still happend. I deleted the template and updated my winlogbeat conf file to
The template is the default winlogbeat template, i'm only changing it's name because i changed my index name to be winlogbeat only (no beat version in the index).
[2020-03-06T11:38:48,506][INFO ][o.e.c.m.MetaDataIndexTemplateService] [ELK001] adding template [winlogbeat] for index patterns [winlogbeat-*]
[2020-03-06T11:38:53,302][INFO ][o.e.c.m.MetaDataIndexTemplateService] [ELK001] adding template [metricbeat] for index patterns [metricbeat-*]
[2020-03-06T11:38:56,819][DEBUG][o.e.a.s.m.TransportMasterNodeAction] [ELK001] Get stats for datafeed '_all'
[2020-03-06T11:39:01,081][INFO ][o.e.c.m.MetaDataIndexTemplateService] [ELK001] adding template [winlogbeat] for index patterns [winlogbeat-*]
[2020-03-06T11:39:06,788][DEBUG][o.e.a.s.m.TransportMasterNodeAction] [ELK001] Get stats for datafeed '_all'
[2020-03-06T11:39:07,879][INFO ][o.e.c.m.MetaDataIndexTemplateService] [ELK001] adding template [metricbeat] for index patterns [metricbeat-*]
[2020-03-06T11:39:16,717][INFO ][o.e.c.m.MetaDataIndexTemplateService] [ELK001] adding template [winlogbeat] for index patterns [winlogbeat-*]
[2020-03-06T11:39:16,795][DEBUG][o.e.a.s.m.TransportMasterNodeAction] [ELK001] Get stats for datafeed '_all'
[2020-03-06T11:39:22,818][INFO ][o.e.c.m.MetaDataIndexTemplateService] [ELK001] adding template [winlogbeat] for index patterns [winlogbeat-*]
[2020-03-06T11:39:23,053][INFO ][o.e.c.m.MetaDataIndexTemplateService] [ELK001] adding template [metricbeat] for index patterns [metricbeat-*]
[2020-03-06T11:39:26,769][DEBUG][o.e.a.s.m.TransportMasterNodeAction] [ELK001] Get stats for datafeed '_all'
[2020-03-06T11:39:28,007][INFO ][o.e.c.m.MetaDataIndexTemplateService] [ELK001] adding template [metricbeat] for index patterns [metricbeat-*]
This is the first time i open this file, first thing i notice on top is the index pattern: winlogbeat.7.5.1 which in my conf file isn't what i want anymore. Could it be the root cause ?
I decided to move all my nodes to CentOS since i was having lot of issues with Windows and i realised i had no advantages from being on Windows.
On my new cluster i can see that my agents still override my template on a regularer bassis.
However, it doesn't matter anymore because i decided to not use custom index/template anymore, juste use the default template. This way, my agents may keep overiding the template, it doesn't matter because i don't need to make any changes to that template.
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.