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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...