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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...