How to increase log storage duration

How can we increase log storage duration of domains,
For Example lets say I want to keep log storage for 7 days, how can I achieve it

You can use ISM to achieve that, configure a ISM policy which deletes the index created more than 7 days, see the documentation for more details: Index State Management - OpenSearch Documentation .

1 Like

Thank you
And to add to it
Say for example my Open search dashboard is currently showing the logs of last 3 days and I want it to increase to 5 days
Is it same process?

Yes, the process are similar, check and modify the ISM policy as your needs.