Getting Data In

TIME_PREFIX regex help

wouterr
Explorer

Hi,

I seem to be incapable of figuring out what regex to provide in the TIME_PREFIX for my source type in order to recognize the second time stamp instead of the first.

Please see a sample event below

"Jun 04 2013 12:00:00:001AM","5333079266","310410257633304","8","Jun 03 2013 03:55:43:000PM"

Thanks

Tags (2)
0 Karma
1 Solution

Hajime
Path Finder

Hello wouterr,

I think as you said bmacias84, and may be set as follows.

TIME_PREFIX=","

OR

TIME_PREFIX=,"

View solution in original post

0 Karma

Hajime
Path Finder

Hello wouterr,

I think as you said bmacias84, and may be set as follows.

TIME_PREFIX=","

OR

TIME_PREFIX=,"

0 Karma

bmacias84
Champion

I see you have two timestamps so you want the second timestamp used for _time? if so try


TIME_PREFIX=","
TIME_FORMAT=%b %d %Y %I:%M:%S:%3N:%r

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...