Splunk Search

Rename column name in stats

jayavasge
New Member

index =* "log" earliest =@d-4h latest=@d+8h | rex "(?\w*)<" | dedup ticketId | stats count as today

Want to rename column name(today) into event date. Kindly support.

Tags (1)
0 Karma

renjith_nair
Legend

@jayavasge ,

index = "log" earliest =@d-4h latest=@d+8h | rex "(?\w)<" | dedup ticketId | stats count as "event date"
---
What goes around comes around. If it helps, hit it with Karma 🙂

chrisyounger
SplunkTrust
SplunkTrust

Give this a burl: index = "log" earliest =@d-4h latest=@d+8h | rex "(?\w)<" | dedup ticketId | stats count as today| rename today as "event date"

Good luck!

0 Karma
Get Updates on the Splunk Community!

Index This | What did the zero say to the eight?

June 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

Splunk Observability Cloud's AI Assistant in Action Series: Onboarding New Hires & ...

This is the fifth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Now Playing: Splunk Education Summer Learning Premieres

It’s premiere season, and Splunk Education is rolling out new releases you won’t want to miss. Whether you’re ...