so in this example i would like to find only two logs not three the first contains the logs which contain FO and FT together in one message, and the second log contains AO
I don't know if it's possible maybe with filebeat or logstash or Elasticsearch between the _id of documents maybe.
I hope you understand me.
Thank you very much, that's exactly what I want @Rios just if you can tell me what exactly is the role or your meaning of ?: in the regular expression and thank you!
What is result? FO and FT as separate lines or FO and FT lines are missing?
Can you try will this extract only FO and FT messages? ^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\s{3}-\srequest\sin\sformatHexDump\sis\s\S{2}.*(FO|FT)
It always gives me 4 documents with this ^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\s{3 }-\srequest\sin\sformatHexDump\sis\s\S{2}.*(?:FO|FT)? and in this case I only want 2 documents, the first containing FO+FT and the second containing AO+ FT.
and I tried this expression ^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\s{3} -\srequest\sin\sformatHexDump\sis\s\S{2}.*(FO|FT) it gives me a document which contains the hole message
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.