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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Casting Call: Compete in Cyber Games

Lights, Camera, SecOps: Apply to Compete in Cyber Games     Think you have what it takes to beat the clock? ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

How Edge Processor's Durable Queue Works

Edge Processor sits in one of the most consequential places in any Splunk pipeline: between your data sources ...