Getting Data In

custom timestamp parsing

nikmeiser
Explorer

I have structured (CSV) files with named fields with a few different date-time formats -

TIMEA,host,TIMET,DURATION,HOUR,SHIFT
01/30/2012   0:00:00,host01,1327899600,3600,0,2

TIMET (third comma-separaetd value from left) is the UNIX time. How can I force Splunk to use that as timestamp for the event?

Tags (2)
0 Karma
1 Solution

nikmeiser
Explorer

Figured it out

TIME_FORMAT = %+ 
TIME_PREFIX = ^([^,]*,){2} 

View solution in original post

nikmeiser
Explorer

Figured it out

TIME_FORMAT = %+ 
TIME_PREFIX = ^([^,]*,){2} 
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...