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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...