Getting Data In

Can't extract timestamp from multi-timestamp csv file

sarumjanuch
Path Finder

Need help, i have log file kind of:
"INT","INT","INT","VARCHAR","""VARCHAR"" ","VARCHAR","VARCHAR","VARCHAR",VARCHAR,,,VARCHAR,VARCHAR,"2013-09-19 09:29:53","2013-09-19 09:29:55","2013-09-19 09:34:50",297,295,VARCHAR,VARCHAR,"1379597393.479905",""

i neet to set my timestamp as first time field: "2013-09-19 09:29:53" is there any way to tell on what position my timestamp?? Or maybe any other way to do this? Previous field is not good idea to regexp, because it can be string with digits in any order and with any legth.
Thank you!

Tags (1)
0 Karma
1 Solution

sarumjanuch
Path Finder

Finaly found resolution:
TIME_PREFIX=^([^,]*,){Position of needed field}

View solution in original post

0 Karma

sarumjanuch
Path Finder

Finaly found resolution:
TIME_PREFIX=^([^,]*,){Position of needed field}

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...