Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 532 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 532 Bytes

Expire logs!

Need to delete old data in logstash/elasticsearch? This is the tool for you!

Usage

See python logstash_index_cleaner.py --help for specifics, but here's an example:

Keep 14 days of logs in elasticsearch:

python logstash_index_cleaner.py --host my-elasticsearch -d 14

Contributing

  • fork the repo
  • make changes in your fork
  • send a pull request!

Origins

https://logstash.jira.com/browse/LOGSTASH-211

This tool was written by by Aaron Mildenstein, Njal Karevoll, and François Deppierraz.