Getting Data In

How to create a report using the Upload_time column in a CSV file, not the time the event was created?

flynnhandley
Explorer

So I have a CSV file with an Upload_time column in the format 5/01/2015 15:16. (string)

I'd like to create a report that lists all items uploaded in the last month, however splunk uses the time that the event was created not the Upload_time value.

Any ideas?

Tags (4)
0 Karma
1 Solution

skawasaki_splun
Splunk Employee
Splunk Employee
0 Karma

skawasaki_splun
Splunk Employee
Splunk Employee

Use INDEXED_EXTRACTIONS = CSV then TIMESTAMP_FIELDS and TIME_FORMAT in props.conf: http://docs.splunk.com/Documentation/Splunk/6.2.2/admin/propsconf

More info about INDEXED_EXTRACTIONS: http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Extractfieldsfromfileheadersatindextime

0 Karma

flynnhandley
Explorer

I'll check it out... Cheers!

0 Karma

flynnhandley
Explorer

Just following up... I have the below entry in my props.conf when I try to upload a CSV I get an error in the time column saying "Failed to parse time stamp, defaulting to modtime"

Any ideas?


A sample of the Uploaded column:
7/01/2015 12:51

Props.conf

[csv]
SHOULD_LINEMERGE = False
pulldown_type = true
INDEXED_EXTRACTIONS = csv
KV_MODE = none
category = Structured
TIMESTAMP_FIELDS = Uploaded
TIME_FORMAT = "%m/%d/%Y %H:%M"
description = Comma-separated value format. Set header and other settings in "Delimited Settings"

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 ...