<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How come my Splunk Universal Forwarder and props.conf are not parsing our CSV files properly? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397922#M70952</link>
    <description>&lt;P&gt;I'm not sure how this helps.  For the most part, everything looks similar.  That said i did update my props.conf file to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[csv_test]
SHOULD_LINEMERGE = false
INDEXED_EXTRACTIONS = csv
HEADER_FIELD_DELIMITER = ,
HEADER_FIELD_LINE_NUMBER=9
FIELD_DELIMITER=,
TZ = US/Western
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My hope is that it will look at Line 9, and see that that is the header.  Great!&lt;/P&gt;

&lt;P&gt;These should define the fileds that I can search though in splunk.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 01:57:08 GMT</pubDate>
    <dc:creator>TitanAE</dc:creator>
    <dc:date>2018-11-20T01:57:08Z</dc:date>
    <item>
      <title>How come my Splunk Universal Forwarder and props.conf are not parsing our CSV files properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397920#M70950</link>
      <description>&lt;P&gt;I currently have a universal forwarder and an indexer.&lt;/P&gt;

&lt;P&gt;The universal forwarder reads a number of CSV files.  And then ships them off to the indexer.&lt;/P&gt;

&lt;P&gt;I also have a props.conf on both that reads:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[csv]
INDEXED_EXTRACTIONS = csv
HEADER_FIELD_LINE_NUMBER=9
TIMESTAMP_FIELDS=date
FIELD_DELIMITER=,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have checked the source type (CSV), made sure that the correct header field is set, and have made sure the files can be forwarded from the forwarder to the indexer.  However it is not parsing the files.&lt;/P&gt;

&lt;P&gt;What am I missing that isn't allowing the fields to be parsed properly?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 23:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397920#M70950</guid>
      <dc:creator>TitanAE</dc:creator>
      <dc:date>2018-11-19T23:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How come my Splunk Universal Forwarder and props.conf are not parsing our CSV files properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397921#M70951</link>
      <description>&lt;P&gt;I just ran on a forwarder - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    $ ./splunk cmd btool props list csv
    [csv]
    ANNOTATE_PUNCT = True
    AUTO_KV_JSON = true
    BREAK_ONLY_BEFORE = 
    BREAK_ONLY_BEFORE_DATE = True
    CHARSET = UTF-8
    DATETIME_CONFIG = /etc/datetime.xml
    HEADER_MODE = 
    INDEXED_EXTRACTIONS = csv
    KV_MODE = none
    LEARN_SOURCETYPE = true
    LINE_BREAKER_LOOKBEHIND = 100
    MAX_DAYS_AGO = 2000
    MAX_DAYS_HENCE = 2
    MAX_DIFF_SECS_AGO = 3600
    MAX_DIFF_SECS_HENCE = 604800
    MAX_EVENTS = 256
    MAX_TIMESTAMP_LOOKAHEAD = 128
    MUST_BREAK_AFTER = 
    MUST_NOT_BREAK_AFTER = 
    MUST_NOT_BREAK_BEFORE = 
    SEGMENTATION = indexing
    SEGMENTATION-all = full
    SEGMENTATION-inner = inner
    SEGMENTATION-outer = outer
    SEGMENTATION-raw = none
    SEGMENTATION-standard = standard
    SHOULD_LINEMERGE = False
    TRANSFORMS = 
    TRUNCATE = 10000
    category = Structured
    description = Comma-separated value format. Set header and other settings in "Delimited Settings"
    detect_trailing_nulls = false
    maxDist = 100
    priority = 
    pulldown_type = true
    sourcetype = 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can run the &lt;CODE&gt;btool&lt;/CODE&gt; command and see the combined results for the &lt;CODE&gt;csv&lt;/CODE&gt; sourcetype or maybe create your sourcetype as &lt;CODE&gt;my_csv&lt;/CODE&gt;, for example,  and then you have no dependencies.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 01:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397921#M70951</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-11-20T01:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: How come my Splunk Universal Forwarder and props.conf are not parsing our CSV files properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397922#M70952</link>
      <description>&lt;P&gt;I'm not sure how this helps.  For the most part, everything looks similar.  That said i did update my props.conf file to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[csv_test]
SHOULD_LINEMERGE = false
INDEXED_EXTRACTIONS = csv
HEADER_FIELD_DELIMITER = ,
HEADER_FIELD_LINE_NUMBER=9
FIELD_DELIMITER=,
TZ = US/Western
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My hope is that it will look at Line 9, and see that that is the header.  Great!&lt;/P&gt;

&lt;P&gt;These should define the fileds that I can search though in splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 01:57:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397922#M70952</guid>
      <dc:creator>TitanAE</dc:creator>
      <dc:date>2018-11-20T01:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: How come my Splunk Universal Forwarder and props.conf are not parsing our CSV files properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397923#M70953</link>
      <description>&lt;P&gt;Have you tried testing the upload of the CSV via the GUI?&lt;/P&gt;

&lt;P&gt;Use your props settings to check they are doing what you expect.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 02:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397923#M70953</guid>
      <dc:creator>laurie_gellatly</dc:creator>
      <dc:date>2018-11-20T02:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How come my Splunk Universal Forwarder and props.conf are not parsing our CSV files properly?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397924#M70954</link>
      <description>&lt;P&gt;In order for this to work, you must be running an &lt;CODE&gt;inputs.conf&lt;/CODE&gt; on your forwarder that has a  stanza something like &lt;CODE&gt;[monitor:///.../*.csv]&lt;/CODE&gt; which has below it &lt;CODE&gt;sourcetype = csv&lt;/CODE&gt;.  You need all of it working together and you need to restart the splunk instance after you update these configuration files.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 03:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-my-Splunk-Universal-Forwarder-and-props-conf-are-not/m-p/397924#M70954</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-11-20T03:41:31Z</dc:date>
    </item>
  </channel>
</rss>

