<?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 Unable to see data in fields on Splunk 6 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-see-data-in-fields-on-Splunk-6/m-p/82134#M16965</link>
    <description>&lt;P&gt;I am fairly new to splunk so please pardon any beginner's mistakes:&lt;/P&gt;

&lt;P&gt;I am trying to setup Splunk to receive csv files via Universal Forwarder on windows 2k3 server and use header of the file to attach fields.  I have done following:&lt;/P&gt;

&lt;P&gt;On the universal forwarder:&lt;BR /&gt;
[monitor://c:\some directory]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = SBRAccounting&lt;BR /&gt;
index=sbr&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;On the Splunk server where indexer and search head are same, i created a new custom app and the /opt/splunk/etc/apps/SBRAccounting/local, I created props.conf file with following content:&lt;BR /&gt;
[SBRAccounting]&lt;BR /&gt;
HEADER_FIELD_LINE_NUMBER = 1&lt;BR /&gt;
FIELD_DELIMITER = ,&lt;BR /&gt;
FIELD_QUOTE = "&lt;/P&gt;

&lt;P&gt;I see the data coming into Splunk with sourcetype=SBRAccounting and index=sbr but fields are not there.&lt;/P&gt;

&lt;P&gt;I created a dummy file on the Splunk server and created inputs.conf file with following to prove props.conf file is configured correctly, and it seems to show field along with the data.&lt;BR /&gt;
[monitor:///var/tmp/dummy.act]&lt;BR /&gt;
sourcetype=SBRAccounting&lt;/P&gt;

&lt;P&gt;Sample of the data is following:&lt;/P&gt;

&lt;P&gt;"field1", "field2", "field3", ... 'field100"&lt;BR /&gt;
"data1", "data2", "data3",,,,,,,,"data(n)"&lt;BR /&gt;
"data1", "data2", "data3",,,,,,,,"data(n)"&lt;/P&gt;

&lt;P&gt;I feel that data coming in via forwarders is not being passed by my custom apps's props.conf file.  I even created an inputs.conf file with following and that didn't work either.&lt;BR /&gt;
[splunktcp://:7001]&lt;BR /&gt;
sourcetype=SBRAccounting&lt;/P&gt;

&lt;P&gt;I need your help please.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:53:22 GMT</pubDate>
    <dc:creator>afhussain</dc:creator>
    <dc:date>2020-09-28T14:53:22Z</dc:date>
    <item>
      <title>Unable to see data in fields on Splunk 6</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-see-data-in-fields-on-Splunk-6/m-p/82134#M16965</link>
      <description>&lt;P&gt;I am fairly new to splunk so please pardon any beginner's mistakes:&lt;/P&gt;

&lt;P&gt;I am trying to setup Splunk to receive csv files via Universal Forwarder on windows 2k3 server and use header of the file to attach fields.  I have done following:&lt;/P&gt;

&lt;P&gt;On the universal forwarder:&lt;BR /&gt;
[monitor://c:\some directory]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = SBRAccounting&lt;BR /&gt;
index=sbr&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;On the Splunk server where indexer and search head are same, i created a new custom app and the /opt/splunk/etc/apps/SBRAccounting/local, I created props.conf file with following content:&lt;BR /&gt;
[SBRAccounting]&lt;BR /&gt;
HEADER_FIELD_LINE_NUMBER = 1&lt;BR /&gt;
FIELD_DELIMITER = ,&lt;BR /&gt;
FIELD_QUOTE = "&lt;/P&gt;

&lt;P&gt;I see the data coming into Splunk with sourcetype=SBRAccounting and index=sbr but fields are not there.&lt;/P&gt;

&lt;P&gt;I created a dummy file on the Splunk server and created inputs.conf file with following to prove props.conf file is configured correctly, and it seems to show field along with the data.&lt;BR /&gt;
[monitor:///var/tmp/dummy.act]&lt;BR /&gt;
sourcetype=SBRAccounting&lt;/P&gt;

&lt;P&gt;Sample of the data is following:&lt;/P&gt;

&lt;P&gt;"field1", "field2", "field3", ... 'field100"&lt;BR /&gt;
"data1", "data2", "data3",,,,,,,,"data(n)"&lt;BR /&gt;
"data1", "data2", "data3",,,,,,,,"data(n)"&lt;/P&gt;

&lt;P&gt;I feel that data coming in via forwarders is not being passed by my custom apps's props.conf file.  I even created an inputs.conf file with following and that didn't work either.&lt;BR /&gt;
[splunktcp://:7001]&lt;BR /&gt;
sourcetype=SBRAccounting&lt;/P&gt;

&lt;P&gt;I need your help please.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-see-data-in-fields-on-Splunk-6/m-p/82134#M16965</guid>
      <dc:creator>afhussain</dc:creator>
      <dc:date>2020-09-28T14:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see data in fields on Splunk 6</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-see-data-in-fields-on-Splunk-6/m-p/82135#M16966</link>
      <description>&lt;P&gt;Having same issue - no response yet...&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2013 01:43:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-see-data-in-fields-on-Splunk-6/m-p/82135#M16966</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-10-13T01:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to see data in fields on Splunk 6</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-see-data-in-fields-on-Splunk-6/m-p/82136#M16967</link>
      <description>&lt;P&gt;Reading carefully through the doc it looks like the props.conf on both the forwarder and the indexer need to contain the directives that explain what to do with the header.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So while your experiment has you half way there, and you might have accidentally hit pay dirt, it isn't quite aligned yet.&lt;/P&gt;

&lt;P&gt;The doc repeatedly instructs a "restart" after config changes but you can also do a&lt;BR /&gt;&lt;BR /&gt;
[[yourserver]][[yourport]]/debug/refresh &lt;BR /&gt;
and get the same result without restarting... ususally&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Forward data extracted from header files You can also forward fields extracted from a file with headers to another Splunk instance.
&lt;BR /&gt;&lt;BR /&gt;
To forward fields extracted from structured data files, follow this procedure:
&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt; On the Splunk instance that monitors the files, edit props.conf and inputs.conf as described in "Edit configuration files to create and reference sourcetypes" earlier in this topic.
&lt;BR /&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;LI&gt; Next, configure the system to forward data to another Splunk instance.
&lt;/LI&gt;&lt;/OL&gt;
&lt;B&gt;Note: &lt;/B&gt;Read "Set up forwarding and receiving" in the Distributed Deployment Manual for instructions on how to configure Splunk instances to forward and receive data.
&lt;OL&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;LI&gt; On the Splunk instance that is to receive the data, configure Splunk to be a receiver.

&lt;BR /&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;LI&gt; On the receiving Splunk instance, create props.conf in $SPLUNK_HOME/etc/system/local, if it does not already exist.
&lt;BR /&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;LI&gt; Copy the appropriate stanzas from props.conf on the monitoring Splunk instance to the props.conf you just created on the receiving Splunk instance.
&lt;BR /&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;LI&gt; Restart Splunk on the receiving instance.
&lt;BR /&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;LI&gt; Restart Splunk on the monitoring instance.
&lt;BR /&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;LI&gt; On the receiving instance, use the Search app to confirm that Splunk has extracted the fields from the structured data files and indexed them properly.
&lt;/LI&gt;&lt;/OL&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Another thing to note however, is that there is a Caveat noted in the next section of the doc. You have empty fields in your data. If you use the automatic extraction facility, Splunk will not extract fields that basically do not exist. In other words... if the field is represented only by , ,  it will not extract the field.  If that field is represented by ," ", it will.  See the doc for more details.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2013 18:12:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-see-data-in-fields-on-Splunk-6/m-p/82136#M16967</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2013-10-13T18:12:49Z</dc:date>
    </item>
  </channel>
</rss>

