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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...