Quantcast
Channel: Latest Questions on Splunk Answers
Viewing all articles
Browse latest Browse all 13053

Conditional search command

$
0
0

Hi Splunkers,

I was wondering if it's possible to run a search command only under specific conditions? E.g. when a field containts a specific value or when total number of results are at least X.

Example: I'm running a search which populates a CSV with outputlookup, but I'd only wanted to write the CSV if there we're any search results.

Other example: Run iplocation only if Country field is empty.

Thanks, Simon


Viewing all articles
Browse latest Browse all 13053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>