<?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: Universal Forwarder not reading log files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32615#M5815</link>
    <description>&lt;P&gt;I looked through the log but, looking at the global-input file only, it's not searching in the "...custom/startup/" or "...custom/backup/" directories.  I don't see any reference to those directories in the output.  It's like it's ignoring the second half of the config file.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Aug 2012 03:24:07 GMT</pubDate>
    <dc:creator>marcxbrl</dc:creator>
    <dc:date>2012-08-12T03:24:07Z</dc:date>
    <item>
      <title>Universal Forwarder not reading log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32613#M5813</link>
      <description>&lt;P&gt;I'm having an problem where the universal forwarder isn't reading any log files except for syslog and messages.  I've been looking at this issue for a while and I don't know where to look now.&lt;/P&gt;

&lt;P&gt;When I set up the deployment server I organized the input files organized into a global file, web file, and server specific.  Here's what they look like:&lt;/P&gt;

&lt;P&gt;Global-inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/syslog*]
ignoreOlderThan=2d

[monitor:///var/log/messages*]
ignoreOlderThan=2d

[monitor:///var/log/custom/startup/*]
sourcetype=startuplogs
ignoreOlderThan=20d

[monitor:///var/log/custom/backup/*]
sourcetype=backuplogs
ignoreOlderThan=20d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;web-inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/custom/apache2/*]
ignoreOlderThan=20d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;server-input.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/custom/report/report*]
sourcetype=report
ignoreOlderThan=20d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I started the forwarder, then made sure the configuration files were downloaded and applied correctly. The log file parses the monitors, but then they don't seem to analyze anything besides the first two sections in the global-inputs file.&lt;/P&gt;

&lt;P&gt;Here's splunkd.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;snip&amp;gt;
08-10-2012 17:04:19.096 -0400 INFO  TailingProcessor - TailWatcher initializing...
08-10-2012 17:04:19.097 -0400 INFO  TailingProcessor - Parsing configuration stanza: batch://$SPLUNK_HOME/var/spool/splunk.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: batch://$SPLUNK_HOME/var/spool/splunk/...stash_new.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor://$SPLUNK_HOME/etc/splunk.version.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor://$SPLUNK_HOME/var/log/splunk.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor://$SPLUNK_HOME/var/log/splunk/splunkd.log.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///var/log/messages*.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///var/log/syslog*.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///var/log/custom/apache2/*.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///var/log/custom/backup/*.
08-10-2012 17:04:19.098 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///var/log/custom/report/report*.
08-10-2012 17:04:19.099 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///var/log/custom/startup/*.
08-10-2012 17:04:19.099 -0400 INFO  BatchReader - State transitioning from 2 to 0 (initOrResume).
08-10-2012 17:04:19.103 -0400 INFO  TcpOutputProc - Connected to idx=server_address:9578
08-10-2012 17:04:19.124 -0400 WARN  TailingProcessor - Insufficient permissions to read file='/opt/splunkforwarder/var/log/splunk/.splunkd.log.swp' (hint: Permission denied).
08-10-2012 17:04:19.126 -0400 INFO  ArchiveProcessor - handling file=/var/log/syslog.2.gz
08-10-2012 17:04:19.126 -0400 ERROR TailingProcessor - matching /var/log/exim4/ against ^/var/log/messages[^/]*$
08-10-2012 17:04:19.126 -0400 ERROR TailingProcessor - matching /var/log/exim4/ against ^/var/log/syslog[^/]*$
08-10-2012 17:04:19.126 -0400 INFO  ArchiveProcessor - reading path=/var/log/syslog.2.gz (seek=0 len=8676)
08-10-2012 17:04:19.128 -0400 ERROR TailingProcessor - matching /var/log/fsck/ against ^/var/log/messages[^/]*$
08-10-2012 17:04:19.128 -0400 ERROR TailingProcessor - matching /var/log/fsck/ against ^/var/log/syslog[^/]*$
08-10-2012 17:04:19.138 -0400 ERROR TailingProcessor - matching /var/log/news/ against ^/var/log/messages[^/]*$
08-10-2012 17:04:19.138 -0400 ERROR TailingProcessor - matching /var/log/news/ against ^/var/log/syslog[^/]*$
08-10-2012 17:04:19.139 -0400 ERROR TailingProcessor - matching /var/log/apt/ against ^/var/log/messages[^/]*$
08-10-2012 17:04:19.139 -0400 ERROR TailingProcessor - matching /var/log/apt/ against ^/var/log/syslog[^/]*$
08-10-2012 17:04:19.139 -0400 ERROR TailingProcessor - matching /var/log/custom/ against ^/var/log/messages[^/]*$
08-10-2012 17:04:19.139 -0400 ERROR TailingProcessor - matching /var/log/custom/ against ^/var/log/syslog[^/]*$
08-10-2012 17:04:19.144 -0400 INFO  ArchiveProcessor - Finished processing file '/var/log/syslog.2.gz', removing from stats
&amp;lt;/snip&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Nothing else is entered in the log for a good while after this.  The metrics log continues to show connections to the main server.&lt;/P&gt;

&lt;P&gt;I've made sure that the splunk user has the correct read permissions on the log files.  I'm not getting bad permission errors.  It seem to be skipping the other files completely.  There's also entries in all the files newer than 20 days (limiting information during testing).  The stateOnClient is enabled for each section in the serverclass.conf file.&lt;/P&gt;

&lt;P&gt;What should I look for next?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 22:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32613#M5813</guid>
      <dc:creator>marcxbrl</dc:creator>
      <dc:date>2012-08-10T22:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not reading log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32614#M5814</link>
      <description>&lt;P&gt;The messages like "&lt;EM&gt;ERROR TailingProcessor - matching /var/log/news/ against ^/var/log/messages[^/]&lt;/EM&gt;$*" may not be relevant. see &lt;A href="http://splunk-base.splunk.com/answers/47852/error-tailingprocessor-matching"&gt;http://splunk-base.splunk.com/answers/47852/error-tailingprocessor-matching&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To verify the monitored file lists, use the REST API on the forwarder, you will see if they are skipped and why : &lt;BR /&gt;
&lt;A href="https://localhost:8089/services/admin/inputstatus/TailingProcessor:FileStatus"&gt;https://localhost:8089/services/admin/inputstatus/TailingProcessor:FileStatus&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2012 06:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32614#M5814</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-08-11T06:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not reading log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32615#M5815</link>
      <description>&lt;P&gt;I looked through the log but, looking at the global-input file only, it's not searching in the "...custom/startup/" or "...custom/backup/" directories.  I don't see any reference to those directories in the output.  It's like it's ignoring the second half of the config file.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2012 03:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32615#M5815</guid>
      <dc:creator>marcxbrl</dc:creator>
      <dc:date>2012-08-12T03:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not reading log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32616#M5816</link>
      <description>&lt;P&gt;Can you see your inputs statement if you run btool?&lt;/P&gt;

&lt;P&gt;ie. splunk cmd btool inputs list --debug&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2012 06:01:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32616#M5816</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2012-08-13T06:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not reading log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32617#M5817</link>
      <description>&lt;P&gt;Yes.  I don't see any issues in the output.  Here's a portion of the output:&lt;/P&gt;

&lt;P&gt;global-inp [monitor:///var/log/custom/backup/&lt;EM&gt;]&lt;BR /&gt;
system     _rcvbuf = 1572864&lt;BR /&gt;
system     host = server_name&lt;BR /&gt;
global-inp ignoreOlderThan = 10d&lt;BR /&gt;
system     index = test&lt;BR /&gt;
global-inp sourcetype = backuplogs&lt;BR /&gt;
global-inp [monitor:///var/log/custom/startup/&lt;/EM&gt;]&lt;BR /&gt;
system     _rcvbuf = 1572864&lt;BR /&gt;
system     host = server_name&lt;BR /&gt;
global-inp ignoreOlderThan = 10d&lt;BR /&gt;
system     index = test&lt;BR /&gt;
global-inp sourcetype = startuplogs&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32617#M5817</guid>
      <dc:creator>marcxbrl</dc:creator>
      <dc:date>2020-09-28T12:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not reading log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32618#M5818</link>
      <description>&lt;P&gt;What about permissions on the /var/log/custom hierarchy?&lt;BR /&gt;
Is it possible that the forwarder is not ingesting logs in there because the splunk user can't read them or search the containing directories?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 05:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-reading-log-files/m-p/32618#M5818</guid>
      <dc:creator>mslvrstn</dc:creator>
      <dc:date>2012-08-15T05:07:33Z</dc:date>
    </item>
  </channel>
</rss>

