[Elasticsearch] Delete logs

Hello!

I would like to know if I can delete the logs below as I am trying to optimize disk space.

files location: cd /var/log/elasricsearch

elastic_audit.json
elastic-deprecation-1.json
elastic-deprecation.json
elastic_deprecation.log
elastic-index_indexing_slowlog.json
elastic-index_indexing_slowlog.log
elastic-index_search_slowlog.json
elastic-index_search_slowlog.log
elastic-prod.log
elastic-prod_server.json

If I delete, will I have any side effects?

Or can I erase without problems?

You can look at archiving (zipping) logs older than n days and then you can eventually delete those.

E.g. you can zip logs older than 7 days and delete the files older than 14 days.

Ok, thanks!! :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.