Splunk Search

FIELDNAME regex rex

splunkmeuser
New Member

sourcetype="apache-access" | rex "(?i)\(.*?; (?P\w+)(?=/)" | top 100 FIELDNAME

i'm using the above to get information about bots.

how exactly can i modify the above to exclude certain bots????

i've tried:

sourcetype="apache-access" | rex "(?i)\(.*?; (?P\w+)(?=/)" | top 100 FIELDNAME | where FIELDNAME!=Trident

can someone please help me modify the above so it does exactly what i need. i just need to be able to exclude certain bots.

Tags (1)
0 Karma
1 Solution

lukejadamec
Super Champion

sourcetype="apache-access" | rex "(?i)(.*?; (?P\w+)(?=/)" |search NOT fieldname="bot1" NOT fieldname="bot2" NOT fieldname="bot3" |top 100 fieldname

View solution in original post

lukejadamec
Super Champion

sourcetype="apache-access" | rex "(?i)(.*?; (?P\w+)(?=/)" |search NOT fieldname="bot1" NOT fieldname="bot2" NOT fieldname="bot3" |top 100 fieldname

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...