Uploaded image for project: 'logstash'
  1. logstash
  2. LOGSTASH-211

Python script to delete indices older than a set number of days or hours

    Details

      Description

      Technically, this is more of an ES script, but it has been designed to work with logstash and the default 1 index per day created.

      This requires the pyes module. After configuring the variables in the script (decided it was easier this way for the sake of cron) just run the script and it will purge all indices older than the specified number of days using the ES API.

        Gliffy Diagrams

          Attachments

          1. clearESindices.py
            2 kB
            Aaron Mildenstein
          2. logstash_index_cleaner.py
            8 kB
            Fran├žois Deppierraz
          3. logstash_index_cleaner.py
            7 kB
            Aaron Mildenstein
          4. logstash_index_cleaner.py
            7 kB
            Njal Karevoll

            Activity

              People

              • Assignee:
                jls Jordan Sissel
                Reporter:
                untergeek Aaron Mildenstein
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: