Skip to content

Custom Elasticsearch ILM policy definition #1097

Open
@cimplart

Description

@cimplart

Hello,

currently a custom ILM policy must be created using the Elasticsearch REST API call after started. It is rather difficult to implement in a docker-compose application.
It would make the devops's life much easier if the default-ilm-policy.json could be replaced by some configuration option.
This is the relevant code snippet from the elasticsearch plugin:

def policy_payload
  policy_path = ::File.expand_path(ILM_POLICY_PATH, ::File.dirname(__FILE__))
  LogStash::Json.load(::IO.read(policy_path))
end

The new feature would allow to set policy_path from a new elasticsearch output option, in a similar way as the ILM template may be set with the template option.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions