Giving up on filebeat/elastic soon.. dashboards broken when rolling over index

I've set up elastic stack (7.8.0 now 7.8.1) in kubernetes and filebeat on my nodes. Everty time an index rolls over i get a lot of broken stuff. Every time i try to customize anything it breaks... Its so much that i suspect im doing something totally wrong...

  1. How to set up filebeat from scratch? Do I really have to un-provision filebeat from all my nodes (mix of VMs in ESXi and raspberry PIs and stuff like syslog recievers) so they stop sending logs, so i can run filebeat setup on a "clean" elastic system? Otherwise some of my nodes always creates some broken "default" index when adding data (for example when i try to delete all indexes).

  2. Every time index rolls over to "warm" state my visualizations start complaining about text fields not being indexable or something? 2 shards out of 3

  3. When I upgraded filebeat/es from 7.8.0 to 7.8.1 i started getting "[esaggs] > "field" is a required parameter" and "saved "field" parameter is now invalid" etc. Also index lifecycle policy seems not to be applied to new indexes...

What is it that is totally wrong in my process?

  1. Install elastic with helm chart on k3s, exposing ports with LoadBalancer
  2. Rollout filebeat services with ansible on all my nodes
  3. At some point run filebeat setup on the nodes (as you understand I cant control WHEN this is run because filebeat is always running on some node here or there)
  4. Adjust filebeat ILM (2 days until warm phase)

Again: It works if i start from scratch: shut down all filebeats, remove all indexes, run filebeat setup.. until the index rolls over and a new one is created.. seems the newly created index doesnt have the same settings as the old one.

Welcome to our community! :smiley:

By roll over, do you mean ILM? Can you share more info on the things you are seeing, eg the full errors.

Yes I mean ILM. Sorry the previous errors are gone because of experimenting and removing/adding indexes. But the new errors don't manifest in any logs, instead i only get the kibana "popup error" on the dashboard "[Filebeat System] SSH login attempts ECS" which only says:

Saved "field" parameter is now invalid. Please select a new field.


[esaggs] > "field" is a required parameter

I suspect this may have something to do with filebeat starting sending logs, without me having done "filebeat setup". But I don't know how to avoid this without removing all my filebeat nodes, and this will happen every time filebeat is upgraded (because it starting a new index filebeat-7.8.x....).

I found this template:
GET _cat/templates
template_1 [*] 0 []

But I cant remove this template, it seems broken

I had to remove all elastic data and recreate the whole stack to get rid of the broken "template_1" which apparently stopped all other templates from being applied. Now it is working!

You should have been able to simply delete the template in question?
But good to hear you got it sorted out.

No it didnt work. The only time the template showed up was in _cat/templates and in the error. Trying to delete it gave an error. Elastic storage must have gotten corrupted somehow (not surprising as I dont have the most reliable storage backend).

What error did you get? What did the Elasticsearch logs show?

Just 404 not found i think. Impossible to delete but still existed! Got no error in elastic logs. But issue is resolved now and ES, kibana and filebeat working beautifully now :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.