<?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: Field Extraction of CSV on forwarder in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31658#M6576</link>
    <description>&lt;P&gt;Yes, that is correct.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2013 12:56:20 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-08-12T12:56:20Z</dc:date>
    <item>
      <title>Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31644#M6562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have setup an universal forwarder to monitor a csv file and send the output to indexer(single instance acting as splunk web also). below are the config files on Universal forwarder.&lt;/P&gt;

&lt;P&gt;input.conf [monitor://C:\logs_sql\logs.csv]&lt;/P&gt;

&lt;P&gt;props.conf [source::C:\logssql\logs.csv] SHOULDLINEMERGE= false REPORT-logcsv=logcsv&lt;/P&gt;

&lt;P&gt;tranforms.conf&lt;/P&gt;

&lt;P&gt;[log_csv] DELIMS="," FIELDS="visitorid","uniqueid","country","Browser","Referrer","entrydate","IP"&lt;/P&gt;

&lt;P&gt;Sample log file&lt;/P&gt;

&lt;P&gt;visitorid,uniqueid,country,Browser,Referrer,entrydate,IP 10,26837:63373,United Kingdom,Mozilla/4.0,2009-10-02 14:59:37.437000000,16410458&lt;/P&gt;

&lt;P&gt;After performing these changes nothing chnaged in output in splunk web.All the changes have been done on Universal forwarder only. Please let me know where i am going wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 10:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31644#M6562</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-12T10:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31645#M6563</link>
      <description>&lt;P&gt;The problem lies in what you've said yourself - all the changes have been made on the forwarder, not your indexer. Almost all field extraction takes place at search-time, not index-time, so fields are extracted when you run your query on the indexer. As such, all search-time settings should go on the indexer, not the forwarder.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 11:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31645#M6563</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-12T11:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31646#M6564</link>
      <description>&lt;P&gt;Hi Ayn..i have done the follwing changes&lt;/P&gt;

&lt;P&gt;On forwarder&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;
 [monitor://C:logs_sql/logs.csv]&lt;BR /&gt;
sourcetype=dblogs1&lt;/P&gt;

&lt;P&gt;ON indexer&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[dblogs1]&lt;BR /&gt;
SHOULDLINEMERGE= false &lt;BR /&gt;
REPORT-logcsv=logcsv&lt;/P&gt;

&lt;P&gt;tranforms.conf&lt;BR /&gt;
[log_csv]&lt;BR /&gt;
 DELIMS="," FIELDS="visitorid","uniqueid","country","Browser","Referrer","entrydate","IP"&lt;/P&gt;

&lt;P&gt;Still files in splunk web is appearing in default way.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 11:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31646#M6564</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-12T11:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31647#M6565</link>
      <description>&lt;P&gt;SHOULDLINEMERGE != SHOULD_LINEMERGE&lt;/P&gt;

&lt;P&gt;logcsv != log_csv&lt;/P&gt;

&lt;P&gt;typos?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 11:55:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31647#M6565</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-12T11:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31648#M6566</link>
      <description>&lt;P&gt;Were the data re-indexed?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 11:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31648#M6566</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-08-12T11:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31649#M6567</link>
      <description>&lt;P&gt;@kristian&lt;/P&gt;

&lt;P&gt;yeah its a typo. but taken care in conf files.&lt;/P&gt;

&lt;P&gt;@linu&lt;/P&gt;

&lt;P&gt;I have deleted the data from splunk web and reintsall splunk forwarder.What steps should i follow to get it done?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31649#M6567</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-12T12:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31650#M6568</link>
      <description>&lt;P&gt;Re-indexing not needed here. This is all search-time stuff, but with a REPORT directive in props.conf without a matching stanza in transforms.conf, the DELIMS/FIELDS will not be applied at all.&lt;/P&gt;

&lt;P&gt;Thus, ensure that they match, like so (only relevant parts shown);&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[dblogs1]&lt;BR /&gt;
REPORT-blah = log_csv&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[log_csv]&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31650#M6568</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-12T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31651#M6569</link>
      <description>&lt;P&gt;@Kristian.&lt;/P&gt;

&lt;P&gt;these are file on indexer&lt;BR /&gt;
props.conf&lt;BR /&gt;
[dblogs1]&lt;BR /&gt;
SHOULD_LINEMERGE= false &lt;BR /&gt;
REPORT-logcsv=log_csv&lt;/P&gt;

&lt;P&gt;tranforms.conf&lt;BR /&gt;
[log_csv]&lt;BR /&gt;
 DELIMS="," FIELDS="visitorid","uniqueid","country","Browser","Referrer","entrydate","IP"&lt;/P&gt;

&lt;P&gt;I guess mapping is right but not getting desired output&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:33:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31651#M6569</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2020-09-28T14:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31652#M6570</link>
      <description>&lt;P&gt;The raw output itself will not change. What will happen when this works properly is that the fields you've specified will be available.&lt;/P&gt;

&lt;P&gt;Your settings look OK, provided that they correspond to the CSV file's format, that sourcetype is correct etc.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31652#M6570</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-12T12:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31653#M6571</link>
      <description>&lt;P&gt;i have specified the sourcetype a custom one.Also in splunk web shouldnot it be like country=US etc.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:32:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31653#M6571</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-12T12:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31654#M6572</link>
      <description>&lt;P&gt;Yes, if everything went OK you should be able to do something like &lt;CODE&gt;sourcetype="dblogs1" | table country&lt;/CODE&gt; and get values for the &lt;CODE&gt;country&lt;/CODE&gt; field.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31654#M6572</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-12T12:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31655#M6573</link>
      <description>&lt;P&gt;Correct but it is not happening. file is still showing in csv default format&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:38:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31655#M6573</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-12T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31656#M6574</link>
      <description>&lt;P&gt;Like I said, THAT will NOT change. Raw output will still be the same regardless of how many fields you extract from it.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31656#M6574</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-12T12:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31657#M6575</link>
      <description>&lt;P&gt;if i got u correctly u saying the indexed logs will still be shown in csv format. and i have to remember the fields i specified in tranform.conf and use that field in query itself.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31657#M6575</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-12T12:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31658#M6576</link>
      <description>&lt;P&gt;Yes, that is correct.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:56:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31658#M6576</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-12T12:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31659#M6577</link>
      <description>&lt;P&gt;Also, DELIMS and FIELDS should be on separate lines in transforms.conf.&lt;/P&gt;

&lt;P&gt;[log_csv]&lt;BR /&gt;
DELIMS =","&lt;BR /&gt;
FIELDS = blah, bleh, bluh, bloh ...&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 14:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31659#M6577</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-12T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction of CSV on forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31660#M6578</link>
      <description>&lt;P&gt;Thanks a ton Ayn,Kristian for your help. am able to run searches over it. I would like to know one thing i have uninstall Splunk UV and trying to delete source,sourcetype,host from Splunk web using |delete(have assigned can_delete role) .Initially it was working fine. But i follow uninstall/install UV process 5-6 times. and after that i am not able to delete it. If i am trying to view the events from source/sourcetype it is showing No events but on splunkweb it is still listed among source/sourcetype. What should be the reason around this.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2013 15:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-of-CSV-on-forwarder/m-p/31660#M6578</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-08-12T15:53:23Z</dc:date>
    </item>
  </channel>
</rss>

