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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...