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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...