grep searches text for lines that match a pattern. It is the defender's workhorse for finding events, IPs or usernames in logs.
| No. | Step | Source | Destination | Type | Info |
|---|---|---|---|---|---|
| 1 | Match lines | auth.log | grep | DATA | failed password |
grep searches text for lines that match a pattern. It is the defender's workhorse for finding events, IPs or usernames in logs.
-i ignores case, -r searches directories, -c counts matches.-E enables extended regular expressions for patterns like IP addresses.-v inverts the match, hiding noise you already understand.