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!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

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