Splunk Search

Splunk Report- How to remove item from results?

revanthammineni
Path Finder

Hi Splunkers,

I have results in the following way.

Country        Count

Japan                50

USA.                   70

China.                60

India.                  50

Tokyo.                5

Goal:

I want to add the count of Tokyo to Japan (55) and take off Tokyo from the results. Could anyone suggest me with a logic. TIA

Labels (1)
Tags (2)
0 Karma

SanjayReddy
SplunkTrust
SplunkTrust

Hi @revanthammineni 

Just add following line in at the of the query  or before stats/chart/ that you are using in query 

| eval Country=if(Country="Tokyo","Japan",Country)

 

 

----
Regards,
Sanjay Reddy

----
If this reply helps you, Karma would be appreciated.
If your problem is resolved, then please click the "Accept as Solution" button to help future readers.

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...