Splunk Search

Search: how is keyword "AND" used?

monicato
Path Finder

I'm trying to search two different fields and I'm trying to combine the search with "AND" but it doesn't seem to work.

EX:

host="sf9012.com" | chart count(eval(NOT byte_range="0-0") AND eval(NOT download_agent="Mozilla")) AS Initiated

I want it to return "Initiated" but I get an error or invalidity.. I'm pretty sure, the use of AND is the problem. Anyone know how AND is properly used? and how I can achieve the intended search? Thanks!!

0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee
host="sf9012.com" | chart count(eval(NOT byte_range="0-0" AND NOT download_agent="Mozilla")) AS Initiated

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee
host="sf9012.com" | chart count(eval(NOT byte_range="0-0" AND NOT download_agent="Mozilla")) AS Initiated

monicato
Path Finder

it's working!! hmm,... I swear I tried that .___.

THANK YOU!!

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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