Metricbeat ILM Custom Index Name

Hi,

I am trying to choose a custom index name whilst using ILM in Metricbeat.

I'd like to have the indexes that Metricbeat writes to called metricbeat-department-7.1.1....

My metricbeat.yml contains the following:

setup.ilm.enabled: auto
setup.ilm.rollover_alias: "metricbeat-financedept-{agent.version}"
setup.ilm.pattern: "{now/d}-000001"

The index that this write to is:

metricbeat-7.1.1-2019.06.17-000001

How can I modify the settings so that the destination index is:

metricbeat-financedept-7.1.1-2019.06.17-000001

Thanks,

William

Hi @wmcleod
setup.ilm.rollover_alias is the right place to do what you want.
Did you restarted the beat after changing the yml file?

Did you try setting it by the ./metricbeat setup -E 'setup.ilm.rollover_alias= "your-pattern"' command ?

Hi Mathew. It's working OK.

I had been editing the .yml file on the wrong server.

Thanks for your reply.

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