All Apps and Add-ons

Use eval to display only Rain on categories

sbnoobbb
Path Finder

I had a search query of sourcetype="CurrentWeatherSGTraffic" | stats count AS values by Location current_summary | sort - values | stats list(current_summary) AS categories. How can I display only Rain in the categories. I use (eval(current_summary="Rain")) but it wont work.

alt text

Tags (3)
1 Solution

Drainy
Champion

Is someone else writing your search queries for you? I'm so confused as to how you are reaching this point? You're deliberately counting things into multivalues instead of just focusing on the single category?

Surely (trying to figure out the data from the search) you would just add a current_summary=Rain in your initial search terms with the sourcetype?

View solution in original post

Drainy
Champion

Is someone else writing your search queries for you? I'm so confused as to how you are reaching this point? You're deliberately counting things into multivalues instead of just focusing on the single category?

Surely (trying to figure out the data from the search) you would just add a current_summary=Rain in your initial search terms with the sourcetype?

sbnoobbb
Path Finder

I gotten the search queries by the application itself, Thanks anyway 🙂

0 Karma
Get Updates on the Splunk Community!

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

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 ...