timesketch icon indicating copy to clipboard operation
timesketch copied to clipboard

tsctl archive sketches

Open jkppr opened this issue 9 months ago • 1 comments

Is your feature request related to a problem? Please describe. With a larger Timesketch setup, over time there can be many searchindex instances opened on the opensearch cluster. It is possible to manually archive a sketch in the UI which will close the searchindex on the opensearch side, limiting the consumption of resources.

Describe the solution you'd like For an easy clean-up and resource management, I propose a feature in the tsctl admin tool that allows to easily archiving all sketches that are have not been touched for the last X days.

Describe alternatives you've considered This can also be done with an external script and the API. However, having it integrated into the admin tool makes sense to me.

https://github.com/google/timesketch/blob/master/timesketch/tsctl.py

jkppr avatar May 14 '24 06:05 jkppr

@jkppr Please clarify the use case:

  • we using cli give the command for example: archive --days 60 so it will filter based on the Number of days provided and trigger a task(celery). which periodically archive sketches which are last updated more that say 60 days. also please specify the state of being archive in terms of backend.

Abhishek-jha-96 avatar Jul 01 '24 10:07 Abhishek-jha-96