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!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...