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 event substitution PoC #882

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

Battleroid
Copy link

This is more or less a POC for ILM event substitution via Logstash spun off from this issue here. The problems from this comment here can apply as well.

However, we're using this internally for about ~25 clusters and it works reasonably well with a setup such as:

elasticsearch {
  hosts => [
    ...
  ]
  index => "%{elasticsearch_index}"
  document_type => "log"
  codec => "json"
  user => "logstash"
  manage_template => false

  # ilm
  ilm_enabled => true
  ro_only_enabled => true
  ilm_set_rollover_alias => false
  ilm_rollover_alias => "catchall-example"
  ilm_event_alias => "%{elasticsearch_index}"
  ilm_cache_once => false
}

It's by no means perfect. Performance hit isn't that bad when set to cache once, we then have something external to attach the lifecycle rollover alias names and policies which solves our dynamic ILM event index name substitution problem at the moment.

I wrote a simple test to demonstrate the results here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants