Splunk Search

How to rename all the fields with "s0" at the end of them?

kiamco
Path Finder

I have this column named as "cloud-look-up_s0" and "cloud-look-up_s1" and so on and so on. so What I want to do is to rename "cloud-look-up-s0" with "cloud-look-up-Today". But here is the thing, I want to name all fields that have "s0" in the end to "Today " and the columns will have a different string attached in the front so the format would be something like:

string1_s0, string1_s1 
string2_s0, string1_s2 
string3_s0, string1_s3 
string4_s0, string1_s4 
Tags (2)
0 Karma
1 Solution

sudosplunk
Motivator

Append this to your search | rename *_s0 as *-Today

View solution in original post

sudosplunk
Motivator

Append this to your search | rename *_s0 as *-Today

anthonymelita
Contributor

| rename * _s0 as *-Today

edit: forgot code block and it wasn't showing asterix

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...