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

[Question/Feature] How to set Index Lifecycle Policy #326

Closed
Baklap4 opened this issue Jul 28, 2023 · 1 comment · Fixed by #327
Closed

[Question/Feature] How to set Index Lifecycle Policy #326

Baklap4 opened this issue Jul 28, 2023 · 1 comment · Fixed by #327
Labels
enhancement New feature or request

Comments

@Baklap4
Copy link

Baklap4 commented Jul 28, 2023

ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog):
Elastic.Serilog.Sinks -> 8.6.0
Elastic.CommonSchema.Serilog -> 8.6.0
Is your feature request related to a problem? Please describe.
Currently the datastream will use the standard logs index lifecycle policy. How to configure this to another policy within our code?

Describe the solution you'd like
Programaticly define the index lifecycle policy and attach them to the datastream.

Describe alternatives you've considered
Changing the ilm through kibana, but this is a hassle

@Baklap4 Baklap4 added the enhancement New feature or request label Jul 28, 2023
@Mpdreamz
Copy link
Member

Mpdreamz commented Aug 3, 2023

The bootstrap method exposes ilmPolicy as an argument

public override bool BootstrapElasticsearch(BootstrapMethod bootstrapMethod, string? ilmPolicy = null)

But this is not wired through in any of the logging provider integrations. Will open a PR to add this!

Thanks for bringing this to my attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants