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!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...