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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...