I have this search:
(index=infrastructure-os OR index=main) sudo "incorrect password attempt*" |rex field=_raw "sudo:[^a-z]+(?
But I am unsure how to exclude one user called addmm from the results as I do not want to see that one.
Thanks,
try
NOT user="addmm"
That worked perfectly thank you!
There's 2 ways to filter out the user.
append either :
| search NOT user="addm"
or
| where user!="addm"
I tried:
(index=infrastructure-os OR index=main) sudo "incorrect password attempt*" |rex field=_raw "sudo:[^a-z]+(?
but get the following error when I try:
Error in 'stats' command: The argument 'user=addm' is invalid.