Hello,
I'm currently trying to get all logs of an index which have a "_grokparsefailure" tag assigned to it. Next step would be deleting these logs, but I'm not sure if this is going to work anyways:
This doesn't work but it's more or less what I have been trying with.
Is _mget the correct approach? Or is get or msearch better? How can I get access to the "tags"?
I read about _delete_by_query, this was my plan deleting the logs.
But is there a way I can get the logs and look at them before I'm going to delete them?
I'm thinking of a scenario in the future where I have to delete some specific logs and I want to look at them first. Ideally this query would be in the same format as the _delete_by_query.
But I still get everything within the specified index, not only the matching ones the query should give me. I also tried with a custom/temporary index using the _delete_by_query and it deleted the whole index instead of only the matching ones.
Also the search output is only like 5 or 6 logs and not all. I think I'm missing something very essential here.
the whole temporary index got deleted and searched because i didn't know i had to escape '/' and the standard matching is an 'OR' instead of 'AND' so something like this will work on paths etc.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.