Getting Data In

Why my csv file indexed only the header ?

mah
Builder

Hi, 

I have a script which output a csv file : 

id,name,env,start,end

1234,test,[env]:dev,2020-12-31 18:07,2020-12-31 19:07

The first line is the header and ALL lines in file must be reindexed each time there is a modification (adding or a suppression). 

I have an inputs.conf like this : 

[monitor:///opt/splunk/etc/apps/my_app/bin/my_csv.csv]
index = test
sourcetype = st
disabled = 0
initCrcLength = 3000

I have a props.conf like : 

[st]
DATETIME_CONFIG =
INDEXED_EXTRACTIONS = csv
KV_MODE = none
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
category = Structured
description = Comma-separated value format. Set header and other settings in "Delimited Settings"
disabled = false
pulldown_type = true

The indexation is really weird : it actually index only the header :

mah_0-1609348826223.png

Can you help me please ?

Thank a lot.

 

Labels (2)
Tags (1)
0 Karma

FlorianScho
Explorer

Hi @mah,

did you fixed the problem? Im currently facing the same.

0 Karma
Get Updates on the Splunk Community!

The Splunk Success Framework: Your Guide to Successful Splunk Implementations

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

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...