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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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