Find pattern on multiple lines within BIG log files
3
votes
4
answers
1059
views
To investigate within logs, I am trying to find the very first time a vulnerability in a workflow has been exploited.
The pattern is on multiple lines.
The pattern would be
AAAAAAAAA
BBBBBBBBB
CCCCCCCCC
The problem is that
AAAAAAAAA
or
BBBBBBBBB
or
CCCCCCCCC
Can be found anywhere indivdually in the log without showing the vulnerability; it is the exact pattern in this exact order that will help me.
For example
grep -Ei "AAAAAAAAA|BBBBBBBBB|CCCCCCCCC" logfile
does not help me since all the lines with individual occurence of AAAAAAAAA BBBBBBBBB CCCCCCCCC
will be there.
How can I solve this?
Asked by Foopz
(31 rep)
Apr 3, 2021, 08:06 PM
Last activity: Apr 10, 2021, 06:15 AM
Last activity: Apr 10, 2021, 06:15 AM