Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 544 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 544 Bytes

How to use

Run the following to rollover a data stream

python ./opensearch-helpers/data_stream.py rollover \
    --url https://<your-opensearch-url> \
    --username admin \
    --password <admin_password> \
    --data-stream <data_stream_name>;

Run the following to remove indices older than 7 days

python ./opensearch-helpers/data_stream.py clean \
    --url https://<your-opensearch-url> \
    --username admin \
    --password <admin_password> \
    --data-stream <data_stream_name> \
    --retention-period 7;