Getting Data In

How to transform multiple timestamps in an event

MOHITJOSHI
Engager

I have an event that prints the actual time which Splunk metadata has, but instead, I want to use the other timestamp.
Splunk time shows 8/15/18
2:12:44.000 PM which it extracts from the Verbose line but I am interested to use the ZZZ-20190802-13:18:06-0000000001-3820-0 so that my Splunk time is based on ZZZ field

VERBOSE abc 08/15/18 18:12:44 xyz
DETAILS abc123 0.594s abc: 0.336s :abc: 0.001s ZZZ-20190802-13:18:06-0000000001-3820-0

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi MOHITJOSHI,

try this in props.conf for that sourcetype:

[YourSourcetypeNameHere]
TIME_PREFIX = ZZZ-
TIME_FORMAT = %Y%m%d-%H:%M:%S-

Save this on the first full Splunk instance that receives the events and restart the instance, any new incoming events should have the second timestamp as their _time field.

Hope this helps ...

cheers, MuS

View solution in original post

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi MOHITJOSHI,

try this in props.conf for that sourcetype:

[YourSourcetypeNameHere]
TIME_PREFIX = ZZZ-
TIME_FORMAT = %Y%m%d-%H:%M:%S-

Save this on the first full Splunk instance that receives the events and restart the instance, any new incoming events should have the second timestamp as their _time field.

Hope this helps ...

cheers, MuS

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...

Share Your Feedback: On Admin Config Service (ACS)!

Help Us Build a Better Admin Config Service Experience (ACS)   We Want Your Feedback on Admin Config Service ...

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...