I put web request logs into Splunk.
I did a lookup csv file that included suspicious user-agents characters like below.
bad_user_agent
nmap
python
java
...
I need alert if user_agent field in web request log contains any word in csv file.
How can I do a query?
Example:
user_agent="Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36" --> no alert
user_agent="Java/14.0.2" --> ALERT
user_agent="Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)" --> ALERT
Thank you.
... View more