Splunk Search

rename the filed values

uhkc777
Explorer

Hi,
I have two fields salesorg and dist. whenever i have salesorg=2220 and dist=10 i want to change salesorg as xyz. can you please tell me which command suits for this?

Tags (1)
0 Karma

somesoni2
Revered Legend

You can use eval command like this

your base search | eval salesorg=if(dist=10,"xyz",salesorg)
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...