Splunk Search

How do I rename the values in the following field?

moizmmz
Path Finder

https://drive.google.com/file/d/13tgNyaelfyPwxIvgAOA1Gn1hI628dGB2/view?usp=sharing[link text]1

I want to rename the T1FCC as Tier 1, T2FCHAC as Tier 2, T3FCCB as Tier 3, T4FCBW as Tier 4M, T4FCPW as Tier 4F.

Need it immediately, pls help!!

Tags (1)
0 Karma
1 Solution

somesoni2
Revered Legend

You can use case statement to do so.

your current search which ends with "| stats count by evPromoId"
| eval evPromoId=case(evPromoId="T1FCC","Tier1",evPromoId="T2FCHAC","Tier 2", evPromoId="T3FCCB", "Tier 3", evPromoId="T4FCBW" , "Tier 4M", evPromoId="T4FCPW" ,"Tier 4F", true(),evPromoId)

View solution in original post

0 Karma

somesoni2
Revered Legend

You can use case statement to do so.

your current search which ends with "| stats count by evPromoId"
| eval evPromoId=case(evPromoId="T1FCC","Tier1",evPromoId="T2FCHAC","Tier 2", evPromoId="T3FCCB", "Tier 3", evPromoId="T4FCBW" , "Tier 4M", evPromoId="T4FCPW" ,"Tier 4F", true(),evPromoId)
0 Karma

moizmmz
Path Finder

Thank you!

0 Karma
Get Updates on the Splunk Community!

Infographic provides the TL;DR for the 2024 Splunk Career Impact Report

We’ve been buzzing with excitement about the recent validation of Splunk Education! The 2024 Splunk Career ...

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...