internetitem / logback-elasticsearch-appender

Logback Elasticsearch Appender
Other
233 stars 137 forks source link

Delete logs by query ElasticSearch #82

Open devjava65 opened 3 years ago

devjava65 commented 3 years ago

Hello, i want to delete logs using query for deleting logs passed 10 days, how can i use appender for this ? i can't find how to send body json in the request with appender the json body contains the query for items to delete :
json = { "query": { "range": { "@timestamp": { "lte": "now-10d" } } } }

Thank you