<?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: Splunk extract data with comma deliminator in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344720#M102113</link>
    <description>&lt;P&gt;Hi Sweenj,&lt;/P&gt;

&lt;P&gt;I hope you have made the suggested changes to transforms.conf and props.conf on the indexer(and bounce it), if NOT go ahead and do them on indexer. Once done , on your search head run below command by selecting "Verbose Mode" the dropdown next to search icon which displays "Fast Mode" "Smart Mode" "Verbose Mode". Once you run below command with "Verbose Mode" and the search complete, look for interesting fields on the left hand side and you should see the fields which you listed in the transforms.conf. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="forecast" host="node"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check and let us know&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2017 21:02:27 GMT</pubDate>
    <dc:creator>newbie2tech</dc:creator>
    <dc:date>2017-06-14T21:02:27Z</dc:date>
    <item>
      <title>Splunk extract data with comma deliminator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344713#M102106</link>
      <description>&lt;P&gt;I am attempting to have splunk forward a script of comma separated values.  The values are coming into search as one large string, rather than separated by commas with their field label.  Could anyone look this over and see what I am doing wrong?&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [group_fields] 
DELIMS="," 
FIELDS = Record_Date,filesystem1,filesystem12,filesystem3,filesystem4,filesystem5,filesystem6,filesystem7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[forecast]
SHOULD_LINEMERGE = False
pulldown_type = 1
REPORT-getfields = group_fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [script://./bin/forecast.sh]
 interval = 83400
 source = forecast
 sourcetype = forecast
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the splunk search, it's showing up like this.  It is not creating comma delimited fields, just one raw field of all the data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIMESTAMP                     RAW
    6/13/17
8:04:08.000 AM  06-08-17,424,159,1067,606,7,1,1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The script outputs the data as below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11/27/2016,289,159,866,1221,7,1,1
11/28/2016,289,159,866,1221,7,1,1
11/29/2016,289,159,813,1258,7,1,1
11/30/2016,289,159,812,1338,7,1,1
12/4/2016,304,159,828,1321,7,1,1
12/5/2016,304,159,828,1321,7,1,1
12/6/2016,295,159,830,1327,7,1,1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2017 12:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344713#M102106</guid>
      <dc:creator>sweenj</dc:creator>
      <dc:date>2017-06-13T12:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk extract data with comma deliminator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344714#M102107</link>
      <description>&lt;P&gt;Download the *nix app from apps.splunk.com and see how it does this and then do it the same way.  For one thing, I see that your first event's date is different than your other events' dates.  This will surely be a problem.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344714#M102107</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-13T13:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk extract data with comma deliminator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344715#M102108</link>
      <description>&lt;P&gt;Hey woodcock, I have more data in the file, that's just a sample.  Why would that matter though as it's a range of dates?  Wouldn't it just not have an entry for that particular date?&lt;/P&gt;

&lt;P&gt;Thanks for taking a look.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344715#M102108</guid>
      <dc:creator>sweenj</dc:creator>
      <dc:date>2017-06-13T13:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk extract data with comma deliminator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344716#M102109</link>
      <description>&lt;P&gt;Hi Sweenj,&lt;/P&gt;

&lt;P&gt;Try this and let us know how it goes&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[forecast]
INDEXED_EXTRACTIONS = csv
KV_MODE = none
category = Structured
description = Comma-separated value format.  
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
pulldown_type = true
disabled = false
REPORT-getfields = forecast_fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[forecast_fields] 
DELIMS="," 
FIELDS = "Record_Date","filesystem1","filesystem12","filesystem3","filesystem4","filesystem5","filesystem6","filesystem7"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2017 14:29:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344716#M102109</guid>
      <dc:creator>newbie2tech</dc:creator>
      <dc:date>2017-06-13T14:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk extract data with comma deliminator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344717#M102110</link>
      <description>&lt;P&gt;I made the changes and bounced splunk. It didn't seem to make a difference.&lt;/P&gt;

&lt;P&gt;Can I use the extract fields process in the GUI to make this distinction?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 11:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344717#M102110</guid>
      <dc:creator>sweenj</dc:creator>
      <dc:date>2017-06-14T11:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk extract data with comma deliminator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344718#M102111</link>
      <description>&lt;P&gt;Hi Sweenj,&lt;/P&gt;

&lt;P&gt;Are you not seeing key value pairs in the interesting fields in verbose mode? the event might appear as single string with commas but you should have the fields created and you should be able to use them in your search query.&lt;/P&gt;

&lt;P&gt;Also can you share information on your architecture, all of this is on one single server or you have got search head, indexer and the server where your are trying to forward from?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 13:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344718#M102111</guid>
      <dc:creator>newbie2tech</dc:creator>
      <dc:date>2017-06-14T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk extract data with comma deliminator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344719#M102112</link>
      <description>&lt;P&gt;I'm not really sure how I turn on this verbose mode.  &lt;/P&gt;

&lt;P&gt;This is a server with splunk forwarder pushing to a separate indexer.&lt;BR /&gt;&lt;BR /&gt;
If I use  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="forecast" host="node" | fields + "filesystem1" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; fields + "filesystem1"  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;no changes are made, still just getting the raw event.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 18:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344719#M102112</guid>
      <dc:creator>sweenj</dc:creator>
      <dc:date>2017-06-14T18:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk extract data with comma deliminator</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344720#M102113</link>
      <description>&lt;P&gt;Hi Sweenj,&lt;/P&gt;

&lt;P&gt;I hope you have made the suggested changes to transforms.conf and props.conf on the indexer(and bounce it), if NOT go ahead and do them on indexer. Once done , on your search head run below command by selecting "Verbose Mode" the dropdown next to search icon which displays "Fast Mode" "Smart Mode" "Verbose Mode". Once you run below command with "Verbose Mode" and the search complete, look for interesting fields on the left hand side and you should see the fields which you listed in the transforms.conf. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="forecast" host="node"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check and let us know&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 21:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-extract-data-with-comma-deliminator/m-p/344720#M102113</guid>
      <dc:creator>newbie2tech</dc:creator>
      <dc:date>2017-06-14T21:02:27Z</dc:date>
    </item>
  </channel>
</rss>

