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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...