Getting Data In

source type issues

cnhn
New Member

Hello All,

we have started working with splunk to deal with a pile of date. for that we have created a custom source type and put it in the props.conf file. it looks like this:

[mk_csv]

CHECK_FOR_HEADER = true

KV_MODE = none

NO_BINARY_CHECK = 1

SHOULD_LINEMERGE = False

TIME_FORMAT = %Y-%jT%H:%M:%S.%3N

pulldown_type = 1

TZ = UTC

that is in ./splunk/etc/system/local/props.conf and yes we restarted the server

So far so good. we added the source type to the data inputs. we built a new index mk_mission.

Now from the search window if I run a sourcetype="mk_csv" nothing shows up. however I do find that there is now a mk_csv-3 with 37 events in it, it even correctly displays the julian dates (the %j in the time_format)

last problem. I configured the data inputs to use julian time as seen above however everything indexed is showing up with the wrong dates, always a bit early

examples:

search index for sourcetype="mk_csv-3"

record returned:

4/13/12 6:32:52.138 PM with the time stamp from the entry as: 2012-104T18:32:52.138

that looks like the sourcetype in the props.conf is working correctly

search for:

index="mk_mission_gra_eng"

get:

4/6/12 9:11:09.467 PM from 2012-088T21:11:09.467

4/6/12 5:42:38.170 PM from 2012-081T17:42:38.170

4/6/12 4:05:10.097 PM from 2012-102T16:05:10.097

4/5/12 11:17:30.163 PM from 2012-101T23:17:30.163

as near as I can tell this is not what I would expect since we set the source type as the data input level.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

I generally would advise not to use CHECK_FOR_HEADER. As far as the time stamp issue, that's tricky to debug, but my guess is Splunk is for whatever reason not reading your Julian days and getting the date from the last-mod time on the files.

0 Karma

cnhn
New Member

how do you eliminate the static column headers from the csv files without CHECK_FOR_HEADERS?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...