<?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 able to read all logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157752#M31949</link>
    <description>&lt;P&gt;We had a similar problem on a server with many logfiles, but it was not related to permissions.&lt;BR /&gt;&lt;BR /&gt;
Have you had a look at your splunk forwarder logs? (index=_internal host=...)&lt;/P&gt;

&lt;P&gt;First we increased the ulimit for the forwarder, because we had a lot of the following message:&lt;BR /&gt;
"File descriptor cache is full (1024), trimming..."&lt;BR /&gt;
See &lt;A href="http://answers.splunk.com/answers/13313/how-to-tune-ulimit-on-my-server.html"&gt;http://answers.splunk.com/answers/13313/how-to-tune-ulimit-on-my-server.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Second we changed the stanze so splunk would only monitors recent files in the target directory. &lt;BR /&gt;
I recommend this only if you have a setup which rotates files, because otherwise splunk won't monitor.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ignoreOlderThan=2d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Editinputs.conf#Monitor_syntax_and_examples"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Editinputs.conf#Monitor_syntax_and_examples&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2014 16:14:48 GMT</pubDate>
    <dc:creator>peter_krammer</dc:creator>
    <dc:date>2014-11-03T16:14:48Z</dc:date>
    <item>
      <title>Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157744#M31941</link>
      <description>&lt;P&gt;Here is my input.conf:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log]&lt;BR /&gt;
crcSalt = &lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = main&lt;/P&gt;

&lt;P&gt;From this it should recursively search all logs under /var/log/... &lt;/P&gt;

&lt;P&gt;The issue I am seeing is that splunk user is not able to read apache2, audit, and some other logs. Permissions on all those logs that are 0640. Also to note, I have added the splunk user to groups: root, adm and syslog while trying to troubleshoot.&lt;/P&gt;

&lt;P&gt;The forwarder should be able to read these files as its apart of the groups, but at this point I am at a loss. &lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated! &lt;/P&gt;

&lt;H3&gt;UPDATE 11/3/14:&lt;/H3&gt;

&lt;P&gt;I know this is a little delayed, but the files are still not being read.&lt;/P&gt;

&lt;P&gt;The addition of the "..." did help with recursive (and is a partial answer), but the files are still not being ingested/sent. I have performed some testing and maybe you guys can help me see something I don't see.&lt;/P&gt;

&lt;P&gt;Current file permissions are 640 and owned by "root:adm". Splunk Forwarder is still apart root, adm and syslog groups. With these file permissions the logs are not being sent, but If i switch to the splunk user I can read the logs without issue. This tells me that the permissions on the logs should be fine and the UF should be able to sent them, correct? But, if i change the ownership to "root:root" the logs start being sent. &lt;/P&gt;

&lt;P&gt;Any thoughts on this? &lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 15:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157744#M31941</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-10-09T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157745#M31942</link>
      <description>&lt;P&gt;I think you need the wildcard for recursive monitoring in your config:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/...]
disabled = false
index = main
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please refer to &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/admin/Inputsconf&lt;/A&gt; section "&lt;EM&gt;Note concerning wildcards and monitor&lt;/EM&gt;"&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 16:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157745#M31942</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2014-10-09T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157746#M31943</link>
      <description>&lt;P&gt;Thanks Peter!!! This seems to have done it.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 17:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157746#M31943</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-10-09T17:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157747#M31944</link>
      <description>&lt;P&gt;There is a bug with GID in Splunk when you autostart splunk. I use su -l splunk -c  in the init file. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 07:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157747#M31944</guid>
      <dc:creator>frmaasdam</dc:creator>
      <dc:date>2014-10-10T07:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157748#M31945</link>
      <description>&lt;P&gt;Please notice my remark on the GID bug. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157748#M31945</guid>
      <dc:creator>frmaasdam</dc:creator>
      <dc:date>2014-11-03T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157749#M31946</link>
      <description>&lt;P&gt;That did not resolve the issue either&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157749#M31946</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-11-03T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157750#M31947</link>
      <description>&lt;P&gt;Can you please provide which Version of the Splunk UF you use?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157750#M31947</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2014-11-03T15:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157751#M31948</link>
      <description>&lt;P&gt;Splunk Universal Forwarder 6.1.3 (build 220630)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 15:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157751#M31948</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-11-03T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157752#M31949</link>
      <description>&lt;P&gt;We had a similar problem on a server with many logfiles, but it was not related to permissions.&lt;BR /&gt;&lt;BR /&gt;
Have you had a look at your splunk forwarder logs? (index=_internal host=...)&lt;/P&gt;

&lt;P&gt;First we increased the ulimit for the forwarder, because we had a lot of the following message:&lt;BR /&gt;
"File descriptor cache is full (1024), trimming..."&lt;BR /&gt;
See &lt;A href="http://answers.splunk.com/answers/13313/how-to-tune-ulimit-on-my-server.html"&gt;http://answers.splunk.com/answers/13313/how-to-tune-ulimit-on-my-server.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Second we changed the stanze so splunk would only monitors recent files in the target directory. &lt;BR /&gt;
I recommend this only if you have a setup which rotates files, because otherwise splunk won't monitor.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ignoreOlderThan=2d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Editinputs.conf#Monitor_syntax_and_examples"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Editinputs.conf#Monitor_syntax_and_examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:14:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157752#M31949</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2014-11-03T16:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157753#M31950</link>
      <description>&lt;P&gt;Hey peter_krammer,&lt;/P&gt;

&lt;P&gt;Thanks for the fast replies, but I have not seen this type of msg in the logs and to be honest the logs seem fine, no complaints.&lt;/P&gt;

&lt;P&gt;If i change the logs ownership to root:root there is no problem and they ingest. The issue is the logs are created as root:adm and these are not being read, even though the splunk user can read both sets of permissions. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 16:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157753#M31950</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-11-03T16:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157754#M31951</link>
      <description>&lt;P&gt;Sorry I could not help, but I think you have to create a support case with splunk since this looks like bug.&lt;BR /&gt;
One thing I would like to suggest you could try out. &lt;BR /&gt;
 1. Update your forwarder to 6.1.4&lt;BR /&gt;
 2. Set "SPLUNK_OS_USER = splunk" in splunk-launch.conf (if not already set)&lt;BR /&gt;
  See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Admin/Splunk-launchconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Admin/Splunk-launchconf&lt;/A&gt;&lt;BR /&gt;
 3. Create a new /etc/init.d/splunk file by issuing the following command as root:&lt;BR /&gt;
  /opt/splunkforwarder/bin/splunk enable boot-start&lt;BR /&gt;
This will recreate a new init config and hopefully the bug is fixed in the new version.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157754#M31951</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2020-09-28T18:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157755#M31952</link>
      <description>&lt;P&gt;I'm not sure if I missed it, but what version of Linux? &lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157755#M31952</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2014-11-03T18:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157756#M31953</link>
      <description>&lt;P&gt;Well you also have except for the ulimit (OS-level) that you might want to increase but on high profil servers, hosting massive amounts of apps and or log files you might have to tweak limits.conf (on forwarder) for it to be able to coupe with the amount of data / number of files needed to monitor.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[inputproc]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;max_fd = &lt;BR /&gt;
* Maximum number of file descriptors that Splunk will keep open, to capture any trailing data from &lt;BR /&gt;
files that are written to very slowly.&lt;BR /&gt;
* Defaults to 100.&lt;/P&gt;

&lt;P&gt;and (but not in your case .. you should see something regarding "block / blocked" in your log-files on the forwarder)&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[thruput]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;maxKBps = &lt;BR /&gt;
* If specified and not zero, this limits the speed through the thruput processor to the specified &lt;BR /&gt;
rate in kilobytes per second.&lt;BR /&gt;
* To control the CPU load while indexing, use this to throttle the number of events this indexer &lt;BR /&gt;
processes to the rate (in KBps) you specify. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157756#M31953</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2014-11-03T18:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157757#M31954</link>
      <description>&lt;P&gt;aaaaah Sorry .. it seems you either need to set the "correct permission" on the log files and or change the user under which you are running Splunkforwarder.&lt;/P&gt;

&lt;P&gt;You could for instance have two installed in some cases .. one for catching OS-logs and one for catching your App logs.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157757#M31954</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2014-11-03T18:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157758#M31955</link>
      <description>&lt;P&gt;CentOS 6.5 and Ubuntu 12.04.4&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:19:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157758#M31955</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-11-03T18:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157759#M31956</link>
      <description>&lt;P&gt;thanks peter, all but the 6.1.4 is my default config. Even re-checked.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157759#M31956</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-11-03T18:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157760#M31957</link>
      <description>&lt;P&gt;This would make it simple right? The thing is, the splunk user has access and can read both root:root and root:adm, but will only send root:root. So, in terms of file permissions and file access everything is proper. Is there a setting for the forwarder that only looks at certain permissions, such as root:root?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157760#M31957</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-11-03T18:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157761#M31958</link>
      <description>&lt;P&gt;I had more or less the same issues.&lt;BR /&gt;
Logfiles owned by root:adm&lt;BR /&gt;
Splunk running under user splunk&lt;BR /&gt;
User splunk member of adm group&lt;BR /&gt;
Login and su - splunk make it possible to cat the logfiles &lt;BR /&gt;
BUT&lt;BR /&gt;
Splunkforwarder running under user splunk was not able to read and forward the logfiles&lt;BR /&gt;
2 options:&lt;BR /&gt;
 1. Start the Splunkforwarder using su -l splunk -c &lt;BR /&gt;
 This is what I have done&lt;BR /&gt;
 2.  Setfacl on the logfiles to make USER splunk able to execute and read the files &lt;BR /&gt;
I have done this in an other situation&lt;/P&gt;

&lt;P&gt;,&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157761#M31958</guid>
      <dc:creator>frmaasdam</dc:creator>
      <dc:date>2014-11-03T19:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157762#M31959</link>
      <description>&lt;P&gt;Thanks frmaasdam! I have tried option 1 and 2 and it still does not send certain log files like apache's error log.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:53:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157762#M31959</guid>
      <dc:creator>j_thomas</dc:creator>
      <dc:date>2014-11-03T19:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder not able to read all logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157763#M31960</link>
      <description>&lt;P&gt;hehe, don't forget to have patience &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
If the other data / logs are coming, there is really no reason for the rest not to come?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-not-able-to-read-all-logs/m-p/157763#M31960</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2014-11-03T19:55:22Z</dc:date>
    </item>
  </channel>
</rss>

