<?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 Not Seeing Monitored Files from Forwarder in My Indexer in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Not-Seeing-Monitored-Files-from-Forwarder-in-My-Indexer/m-p/53484#M10317</link>
    <description>&lt;P&gt;I'm testing Splunk with the following configuration: Splunk 4.3 indexer and Splunk Universal Forwarder 4.3 on a separate machine. Both machines are running Ubuntu 10.04, and I installed both by running the script (not using .deb) so I wasn't prompted to do any setup of inputs.conf at install time. &lt;/P&gt;

&lt;P&gt;I have been trying to add Apache log files to inputs.conf and see them in the Manager&amp;gt;Data Inputs&amp;gt;Files and Directories section of the indexer to no avail. Here is the etc/system/local/inputs.conf on the forwarder:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[default]&lt;/P&gt;

&lt;P&gt;host = virtapache-2&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/apache2/*.log$]&lt;/P&gt;

&lt;P&gt;index = default sourcetype =&lt;BR /&gt;
access_common disabled = false&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;./splunk list forward-server:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Active forwards:&lt;BR /&gt;
        192.168.x.x:9997 Configured but inactive forwards:&lt;BR /&gt;
        None&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;And ./splunk list monitor:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Monitored Directores...&lt;/P&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;P&gt;/var/log/apache2/*.log$&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            /var/log/apache2/access.log
            /var/log/apache2/error.log
            /var/log/apache2/mod_jk.log
            /var/log/apache2/other_vhosts_access.log
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So for all intents and purposes it looks like the forwarder is configured correctly and should be sending those logs to the indexer. The indexer was set up to receive as per instructions. &lt;STRONG&gt;Netstat on the indexer:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;tcp        0      0 192.168.x.x:9997&lt;BR /&gt;&lt;BR /&gt;
192.168.x.x:40189    ESTABLISHED 18711/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 0.0.0.0:5506&lt;BR /&gt;&lt;BR /&gt;
0.0.0.0:*               LISTEN      18711/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 0.0.0.0:9997&lt;BR /&gt;&lt;BR /&gt;
0.0.0.0:*               LISTEN      18711/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 0.0.0.0:8089&lt;BR /&gt;&lt;BR /&gt;
0.0.0.0:*               LISTEN      18711/splunkd&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;Netstat on the forwarder:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;tcp        0      0 0.0.0.0:8089&lt;BR /&gt;&lt;BR /&gt;
0.0.0.0:*               LISTEN      13611/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 192.168.x.x:39265 &lt;BR /&gt;
192.168.x.x:9997     ESTABLISHED 13611/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 192.168.x.x:40189 &lt;BR /&gt;
192.168.x.x:9997     ESTABLISHED 13611/splunkd&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Lastly, the only thing I see that could be fishy in splunkd.log is the following on the forwarder:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;01-18-2012 10:28:07.892 -0500 WARN &lt;BR /&gt;
TcpOutputFd - Connect to&lt;BR /&gt;
192.168.x.x:9997 failed. Connection refused&lt;/P&gt;

&lt;P&gt;01-18-2012 10:28:07.892 -0500 ERROR&lt;BR /&gt;
TcpOutputFd - Connection to&lt;BR /&gt;
host=192.168.x.x:9997 failed&lt;/P&gt;

&lt;P&gt;01-18-2012 10:28:07.892 -0500 INFO &lt;BR /&gt;
TcpOutputProc - Detected connection to&lt;BR /&gt;
192.168.x.x:9997 closed&lt;/P&gt;

&lt;P&gt;01-18-2012 10:56:30.611 -0500 INFO &lt;BR /&gt;
BatchReader - Could not send data to&lt;BR /&gt;
output queue (parsingQueue),&lt;BR /&gt;
retrying...&lt;/P&gt;

&lt;P&gt;01-18-2012 10:56:30.941 -0500 INFO &lt;BR /&gt;
TcpOutputProc - Connected to&lt;BR /&gt;
idx=192.168.x.x:9997&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I am quite confused as to what I am missing. It seems like a fairly simple matter to set up an input, set up outputs.conf, restart the service, et voila! However, I don't see these Apache logs anywhere in my Data Inputs using the web GUI on the indexer. Is there anything obvious from the configs above that could be causing this problem? &lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2012 16:26:01 GMT</pubDate>
    <dc:creator>scaldwell1</dc:creator>
    <dc:date>2012-01-18T16:26:01Z</dc:date>
    <item>
      <title>Not Seeing Monitored Files from Forwarder in My Indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-Seeing-Monitored-Files-from-Forwarder-in-My-Indexer/m-p/53484#M10317</link>
      <description>&lt;P&gt;I'm testing Splunk with the following configuration: Splunk 4.3 indexer and Splunk Universal Forwarder 4.3 on a separate machine. Both machines are running Ubuntu 10.04, and I installed both by running the script (not using .deb) so I wasn't prompted to do any setup of inputs.conf at install time. &lt;/P&gt;

&lt;P&gt;I have been trying to add Apache log files to inputs.conf and see them in the Manager&amp;gt;Data Inputs&amp;gt;Files and Directories section of the indexer to no avail. Here is the etc/system/local/inputs.conf on the forwarder:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[default]&lt;/P&gt;

&lt;P&gt;host = virtapache-2&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/apache2/*.log$]&lt;/P&gt;

&lt;P&gt;index = default sourcetype =&lt;BR /&gt;
access_common disabled = false&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;./splunk list forward-server:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Active forwards:&lt;BR /&gt;
        192.168.x.x:9997 Configured but inactive forwards:&lt;BR /&gt;
        None&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;And ./splunk list monitor:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Monitored Directores...&lt;/P&gt;

&lt;P&gt;....&lt;/P&gt;

&lt;P&gt;/var/log/apache2/*.log$&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            /var/log/apache2/access.log
            /var/log/apache2/error.log
            /var/log/apache2/mod_jk.log
            /var/log/apache2/other_vhosts_access.log
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So for all intents and purposes it looks like the forwarder is configured correctly and should be sending those logs to the indexer. The indexer was set up to receive as per instructions. &lt;STRONG&gt;Netstat on the indexer:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;tcp        0      0 192.168.x.x:9997&lt;BR /&gt;&lt;BR /&gt;
192.168.x.x:40189    ESTABLISHED 18711/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 0.0.0.0:5506&lt;BR /&gt;&lt;BR /&gt;
0.0.0.0:*               LISTEN      18711/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 0.0.0.0:9997&lt;BR /&gt;&lt;BR /&gt;
0.0.0.0:*               LISTEN      18711/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 0.0.0.0:8089&lt;BR /&gt;&lt;BR /&gt;
0.0.0.0:*               LISTEN      18711/splunkd&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;Netstat on the forwarder:&lt;/STRONG&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;tcp        0      0 0.0.0.0:8089&lt;BR /&gt;&lt;BR /&gt;
0.0.0.0:*               LISTEN      13611/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 192.168.x.x:39265 &lt;BR /&gt;
192.168.x.x:9997     ESTABLISHED 13611/splunkd&lt;/P&gt;

&lt;P&gt;tcp        0      0 192.168.x.x:40189 &lt;BR /&gt;
192.168.x.x:9997     ESTABLISHED 13611/splunkd&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Lastly, the only thing I see that could be fishy in splunkd.log is the following on the forwarder:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;01-18-2012 10:28:07.892 -0500 WARN &lt;BR /&gt;
TcpOutputFd - Connect to&lt;BR /&gt;
192.168.x.x:9997 failed. Connection refused&lt;/P&gt;

&lt;P&gt;01-18-2012 10:28:07.892 -0500 ERROR&lt;BR /&gt;
TcpOutputFd - Connection to&lt;BR /&gt;
host=192.168.x.x:9997 failed&lt;/P&gt;

&lt;P&gt;01-18-2012 10:28:07.892 -0500 INFO &lt;BR /&gt;
TcpOutputProc - Detected connection to&lt;BR /&gt;
192.168.x.x:9997 closed&lt;/P&gt;

&lt;P&gt;01-18-2012 10:56:30.611 -0500 INFO &lt;BR /&gt;
BatchReader - Could not send data to&lt;BR /&gt;
output queue (parsingQueue),&lt;BR /&gt;
retrying...&lt;/P&gt;

&lt;P&gt;01-18-2012 10:56:30.941 -0500 INFO &lt;BR /&gt;
TcpOutputProc - Connected to&lt;BR /&gt;
idx=192.168.x.x:9997&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I am quite confused as to what I am missing. It seems like a fairly simple matter to set up an input, set up outputs.conf, restart the service, et voila! However, I don't see these Apache logs anywhere in my Data Inputs using the web GUI on the indexer. Is there anything obvious from the configs above that could be causing this problem? &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 16:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-Seeing-Monitored-Files-from-Forwarder-in-My-Indexer/m-p/53484#M10317</guid>
      <dc:creator>scaldwell1</dc:creator>
      <dc:date>2012-01-18T16:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not Seeing Monitored Files from Forwarder in My Indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-Seeing-Monitored-Files-from-Forwarder-in-My-Indexer/m-p/53485#M10318</link>
      <description>&lt;P&gt;You will not see these inputs under &lt;STRONG&gt;Manager » Data inputs » Files &amp;amp; directories&lt;/STRONG&gt;.  From the perspective of the indexer, these files are arriving via the forwarder.  &lt;STRONG&gt;Manager » Data inputs » Files &amp;amp; directories&lt;/STRONG&gt; is only used for identifying inputs that the indexer will collect directly.&lt;/P&gt;

&lt;P&gt;The proper way to determine if this data is arriving is to go to the search and run this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host = virtapache-2 sourcetype=access_common
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will show you the data that has been forwarded.  (BTW, I assume that the linebreaks are messed up in your post.)&lt;BR /&gt;
It does look like your forwarder and indexer may have had some troubles communicating.  However, iI am not sure, based on this snippet, if this was a transient problem or something more serious. Remember that the forwarder can deal properly with dropped packets and dropped connection, resending and reconnecting as necessary and caching the local data as needed.&lt;/P&gt;

&lt;P&gt;To see what the data flow is, between your forwarder and indexer, run this search (cut and paste!)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*metrics.log" group=tcpin_connections | eval sourceHost=if(isnull(hostname), sourceHost,hostname) | eval connectionType=case(fwdType=="uf","universal forwarder", fwdType=="lwf", "lightweight forwarder",fwdType=="full", "heavy forwarder", connectionType=="cooked" or connectionType=="cookedSSL","Splunk forwarder", connectionType=="raw" or connectionType=="rawSSL","legacy forwarder")| eval build=if(isnull(build),"n/a",build) | eval version=if(isnull(version),"pre 4.2",version) | eval guid=if(isnull(guid),sourceHost,guid) | eval os=if(isnull(os),"n/a",os)| eval arch=if(isnull(arch),"n/a",arch) | fields connectionType sourceIp sourceHost sourcePort destPort kb tcp_eps tcp_Kprocessed tcp_KBps splunk_server build version os arch guid | stats avg(tcp_KBps) sum(tcp_eps) sum(tcp_Kprocessed) sum(kb) by connectionType sourceIp sourceHost sourcePort destPort splunk_server version
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BTW, I didn't write this, I "borrowed" it from the Splunk Deployment Monitor app and modified it.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2012 08:57:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-Seeing-Monitored-Files-from-Forwarder-in-My-Indexer/m-p/53485#M10318</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-01-23T08:57:19Z</dc:date>
    </item>
  </channel>
</rss>

