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

Indices with no write index defined should be logged at info/warn level #1010

Open
Battleroid opened this issue Apr 13, 2021 · 0 comments
Open

Comments

@Battleroid
Copy link

I was hoping in the future if it is possible for these types of errors to be reported at the INFO/WARN level instead of DEBUG. Right now occasionally we'll get a slow build up of events that have no such write index for their given alias. Unfortunately to even discover if this is the cause, we need to flip debug level logging on for the instances and sift through a ton of empty filler to find a single message that helps us resolve the problem.

Contrary to the level in the message, we don't actually see these either until we set the logging level to debug.

  • Version: 7.x
  • Sample Data:
     {
      "level": "ERROR",
      "loggerName": "logstash.outputs.elasticsearch",
      "timeMillis": 1618239497168,
      "thread": "[main]>worker10",
      "logEvent": {
        "message": "Encountered a retryable error. Will Retry with exponential backoff ",
        "code": 400,
        "url": "https://sample-host.com:9200/_bulk",
        "body": "{\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"no write index is defined for alias [sample-index]. The write index may be explicitly disabled using is_write_index=false or the alias points to multiple indices without one being designated as a write index\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"no write index is defined for alias [sample-index]. The write index may be explicitly disabled using is_write_index=false or the alias points to multiple indices without one being designated as a write index\"},\"status\":400}"
      }
    }
    
  • Steps to Reproduce:
    • Remove is_write_index: true from any given alias with it set or that is ILM managed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant