<?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: csv extrtactions not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208240#M176041</link>
    <description>&lt;P&gt;i tried it other way also. i just wrote transforms.conf in which i specified DELIMS and FILEDS. it is also working but the only problem am facing by doing this is, the header field is also getting ingested. &lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2016 17:00:35 GMT</pubDate>
    <dc:creator>saifuddin9122</dc:creator>
    <dc:date>2016-12-29T17:00:35Z</dc:date>
    <item>
      <title>csv extrtactions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208236#M176037</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;

&lt;P&gt;am trying to ingest csv data into splunk. &lt;/P&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;
[monitor:///tmp/mycsv/test.csv]&lt;BR /&gt;
sourcetype=mytest&lt;BR /&gt;
index=csvfiles&lt;BR /&gt;
disabled=false&lt;/P&gt;

&lt;P&gt;and my props.conf looks like &lt;BR /&gt;
[mytest]&lt;BR /&gt;
INDEXED_EXTRACTIONS = CSV&lt;BR /&gt;
HEADER_FIELD_LINE_NUMBER = 1&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;/P&gt;

&lt;P&gt;when i search my data it is not extracting any fields.&lt;/P&gt;

&lt;P&gt;can any one help me in solving this &lt;/P&gt;

&lt;P&gt;Here is my csv file example&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;"_id","timestamp","eventName","transactionId","userId","trackingIds","runAs","objectId","operation","before","after","changedFields","revision","component","realm"&lt;BR /&gt;
"123ab-776df","2016-12-19T13:42:41.001Z","session-timed-out","125-vca310324","id=abc,ab=user","[123aser445]",id=qr1249,ab=user","96c1c88","delete","","","","","session","/"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208236#M176037</guid>
      <dc:creator>saifuddin9122</dc:creator>
      <dc:date>2020-09-29T12:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: csv extrtactions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208237#M176038</link>
      <description>&lt;P&gt;Since this is structured data file, the props.conf should be on the forwarder where you're monitoring the file. See this:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Extractfieldsfromfileswithstructureddata#Forward_data_extracted_from_structured_data_files"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Extractfieldsfromfileswithstructureddata#Forward_data_extracted_from_structured_data_files&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Where have you put your props.conf file?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208237#M176038</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-29T16:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: csv extrtactions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208238#M176039</link>
      <description>&lt;P&gt;Hi saifuddin9122,&lt;BR /&gt;
how are you receiving events, from a Forwarder or from a local drive?&lt;BR /&gt;
if you are using a forwarder, you have to deploy props.conf in both Splunk server and Forwarders and inputs.conf on forwarders.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208238#M176039</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-29T16:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: csv extrtactions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208239#M176040</link>
      <description>&lt;P&gt;Thanks For the reply....&lt;BR /&gt;
it worked for me&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 16:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208239#M176040</guid>
      <dc:creator>saifuddin9122</dc:creator>
      <dc:date>2016-12-29T16:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: csv extrtactions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208240#M176041</link>
      <description>&lt;P&gt;i tried it other way also. i just wrote transforms.conf in which i specified DELIMS and FILEDS. it is also working but the only problem am facing by doing this is, the header field is also getting ingested. &lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 17:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208240#M176041</guid>
      <dc:creator>saifuddin9122</dc:creator>
      <dc:date>2016-12-29T17:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: csv extrtactions not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208241#M176042</link>
      <description>&lt;P&gt;I have tried almost similar props.conf for csv sourcetype and field extraction worked fine for me.&lt;/P&gt;

&lt;P&gt;PS: &lt;STRONG&gt;id=qr1249,ab=user"&lt;/STRONG&gt; in your data should begin with double quotes. Can you please try to add a single csv file with Data Preview turned on? By default Splunk will apply csv sourcetype, on top of which you can tell first line to be Header line and timestamp column to be time field. Once preview is as per your need you can save sourcetype as &lt;STRONG&gt;Custom &amp;gt; mytest_csv&lt;/STRONG&gt; , as per your need.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mytest_csv ]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
CHARSET=AUTO
INDEXED_EXTRACTIONS=csv
category=Structured
description=Custom Comma-separated value. Header field line is 1. Timestamp column is timestamp.
disabled=false
HEADER_FIELD_LINE_NUMBER=1
TIMESTAMP_FIELDS=timestamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2277iE796EC0EB365CD1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 17:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/csv-extrtactions-not-working/m-p/208241#M176042</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-29T17:38:02Z</dc:date>
    </item>
  </channel>
</rss>

