How to delete by query

how to delete by query

current index_name :logstash-2021.04.23
actually Data entered the index of the current timestamp because of index definition error. How to delete contain 2021.04.22 in the index(logstash-2021.04.23)
the data timestamp is 2021.04.22

in the index logstash-2021.04.23 contain content:

127.0.0.1 zh: 2001:dc8:ccff::2000:6702 - - [22/Apr/2021:00:23:08 +0800] "HEAD 无法访问此网站 HTTP/1.1" 200 0 "-" "bigip/11.5.4" "-"

need to delete contain "22/Apr/2021 "

Documentation is here: Delete by query API | Elasticsearch Guide [7.12] | Elastic

Make sure that you run a search before to make sure you are only getting the results you want to delete.

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