Change index pattern used by metricbeat for monitoring logstash

We use metricbeat to monitor logstash, and it creates daily index patterns like:
.monitoring-logstash-7-mb-2021.06.09
We'd prefer monthly index patterns, but can't seem to find any way to change it.

Is it possible to change this configuration?
Our logstash module config is pretty basic, and setting index here has no effect:

metricbeat.modules:
- module: logstash
  xpack.enabled: true
  period: 10s
  hosts: ["localhost:9600"]
  index: "something_else" #<-- doesn't change anything

Hi @BradVido :slightly_smiling_face:

Please, could you try with the info in the following link? Configure the Elasticsearch output | Metricbeat Reference [7.13] | Elastic I think it might be what you need

Thanks, but I actually tried that first (Before i learned that index can be configured in the module itself). It also does nothing.

I'm guessing this is because i have xpack.enabled: true for monitoring, and that overrides the index? Still seems like it should be configurable though.

Can you try without xpack.enabled: true just to confirm? You'll get less metrics but at least you'll confirm if that's the case and open a bugfix request on GH :slight_smile:

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