Splunk Search

fields not showing up from csv source with header in first line.

anasar
New Member

Hi,

I have a csv file which grows every five min. it's proper header fields. But I'm not getting the headers as fields. I checked All fields and also tried extracting using "Extract new fields". But still I can't see those fields.

my props.conf file is:
[custom_mq_csv]
SHOULD_LINEMERGE=false
TIME_FORMAT=%Y-%m-%d:%T
HEADER_FIELD_LINE_NUMBER=0
INDEXED_EXTRACTIONS = csv

can you please help me how to get headers as fields. Note there is no spaces in headers and no quotes. all are properly comma separated.

Tags (1)
0 Karma

anasar
New Member

Hi,

Thank you. Tried the options. But no luck.

I even changed sourcetype to csv and mentioned FIELD_NAMES explicitly. pushed this change to all forwarder and to search head cluster. But no luck. and one more issue is the source type still comes as custom_mq_csv instead of csv.

0 Karma

diogofgm
SplunkTrust
SplunkTrust

Try to change the header field line to 1
And use the the FIELD_DELIMITER=, (replace , in case it's not ,)

------------
Hope I was able to help you. If so, some karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...