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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...