Is there any way where i can discard some logs from a log file in case, they match certain query?
for example, i have a log file test-sample.log which has these logs:
- abc failed due to something
- warning is generated
- abc failed due to something
so i want to take whole test-sample.log for log checking, but i want to forward only those lines which contain word "failed" (line 1 and 3 in this case) , to elasticsearch.