Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ILM reports error illegal_argument_exception #45453

Closed
slawekww opened this issue Aug 12, 2019 · 2 comments
Closed

ILM reports error illegal_argument_exception #45453

slawekww opened this issue Aug 12, 2019 · 2 comments
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management

Comments

@slawekww
Copy link

slawekww commented Aug 12, 2019

Elasticsearch version : 7.2.0
Installed by eck-operator: 0.9.0-rc7

Plugins installed: as installed by eck-operator version 0.9.0-rc7
docker.elastic.co/elasticsearch/elasticsearch:7.2.0

JVM version (java -version): as used in elasticsearch docker image

OS version (uname -a if on a Unix-like system): Linux sworkstation 4.15.0-55-generic

Description of the problem including expected versus actual behavior:
The following options are used for deploying metricbeat helm chart - overwritten values below.

ILM reports the following error:
illegal_argument_exception: index.lifecycle.rollover_alias [metricbeat] does not point to index [metricbeat-nfs-provisioner-2019.08.09]

Steps to reproduce:

  1. install elasticsearch 7.2.0 using eck-operator at elasticsearch namespace.
    Default install with 2 nodes.

  2. install metricbeat using helm chart: stable/metricbeat with the following overwrite myvalues.yml:
    helm install -f myvalues.yml --name metric --namespace elasticsearch stable/metricbeat

myvalues.yml - > rename txt to yml
myvalues.txt

  1. Wait 2-5min to see error on kibana. It is not seen immediately.
@ebadyano ebadyano added the :Data Management/ILM+SLM Index and Snapshot lifecycle management label Aug 12, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@gwbrown
Copy link
Contributor

gwbrown commented Aug 12, 2019

This line right here is the problem:

        - index: "metricbeat-%{[kubernetes.pod._module.namespace]}-%{+yyyy.MM.dd}"

That setting in Beats generally doesn't play well with ILM - this is something that should probably be addressed in Beats. When Beats configures ILM, it does so based on the ILM configuration (see below). When the output index is manually set to something other than the alias that Beats set up, it will cause errors similar to this.

The proper way to change the Beats output when using ILM can be found in the Configure index lifecycle management page in the Beats documentation.

I've answered this here because this is something that looks on the surface like it could be a bug in our products, but for more help on this problem please post to the forums, where we typically provide configuration assistance and troubleshooting, as we try to keep GitHub issues reserved for bugs and feature requests.

Because this is not an Elasticsearch bug (although it is arguably a Beats usability bug), I hope you don't mind that I close this issue.

@gwbrown gwbrown closed this as completed Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management
Projects
None yet
Development

No branches or pull requests

4 participants