<?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: How to troubleshoot why a universal forwarder lost data when forwarding to an indexer? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202952#M40120</link>
    <description>&lt;P&gt;Thanks！&lt;BR /&gt;
We will check our network first because we found a lot of packets were dropped.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2015 03:39:27 GMT</pubDate>
    <dc:creator>ccie24806</dc:creator>
    <dc:date>2015-11-03T03:39:27Z</dc:date>
    <item>
      <title>How to troubleshoot why a universal forwarder lost data when forwarding to an indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202947#M40115</link>
      <description>&lt;P&gt;I deploy a universal forwarder on SUSE Linux server, and monitor a log file. This forwarder forwards data to an indexer. We found that sometimes we can't search some logs which were added to the log file on the Linux server. For example, we added one log which contains the key word &lt;STRONG&gt;YWG_704740&lt;/STRONG&gt; to the log file, and then we do searching on the indexer like this &lt;CODE&gt;index=XXXX host=XXXX YWG_704740&lt;/CODE&gt;, time range is &lt;STRONG&gt;all time&lt;/STRONG&gt;, but we can't search anything.&lt;/P&gt;

&lt;P&gt;I enable indexer acknowledgment on the forwarder, set the &lt;STRONG&gt;useACK&lt;/STRONG&gt; attribute to &lt;STRONG&gt;true&lt;/STRONG&gt; in &lt;STRONG&gt;outputs.conf&lt;/STRONG&gt;. It is effective, but we still can't search some logs on the indexer, but they were more less than before.&lt;/P&gt;

&lt;P&gt;I want to know, do we have some methods to find what happened?  For example, the connection problem or the forwarder problem or indexer problem.&lt;BR /&gt;
Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 09:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202947#M40115</guid>
      <dc:creator>ccie24806</dc:creator>
      <dc:date>2015-10-29T09:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a universal forwarder lost data when forwarding to an indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202948#M40116</link>
      <description>&lt;P&gt;To place to check are $SPLUNK_HOME/var/log/splunk/splunkd.log AND $SPLUNK_HOME/var/log/splunk/metrics.log.  The splunk.log will contain information on where the forwarder is having problems connecting to the indexer.  Metrics.log contains how many bytes are sent and whats happening in the queues.&lt;/P&gt;

&lt;P&gt;Dumb question have you configured your forwarder to send to the indexer?&lt;/P&gt;

&lt;P&gt;Also run &lt;STRONG&gt;$SPLUNK_HOME/bin/splunk list monitor&lt;/STRONG&gt; and see if your time is listed.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 19:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202948#M40116</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-10-29T19:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a universal forwarder lost data when forwarding to an indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202949#M40117</link>
      <description>&lt;P&gt;To clarify what bmacias84 said, on the forwarder, check splunkd.log and metrics.log. &lt;/P&gt;

&lt;P&gt;Other places to look: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Search index=_internal and look for errors relating to the forwarder by IP address/hostname.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Are the search results all coming from the same source files? Are the missing events from just one or two source files on the forwarder? If so, check log file &lt;EM&gt;permissions&lt;/EM&gt; on the forwarder. (But don't run the Splunk forwarder as root, that is a security issue.)&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Do you have anything set up to route data to different indices? If so, double check that this input is not going to the wrong index.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 29 Oct 2015 20:23:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202949#M40117</guid>
      <dc:creator>nnmiller</dc:creator>
      <dc:date>2015-10-29T20:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a universal forwarder lost data when forwarding to an indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202950#M40118</link>
      <description>&lt;P&gt;Great Thanks!&lt;BR /&gt;
We do some checking and troubleshooting, but there are still some problems. Please see the checking process below.&lt;BR /&gt;
 1. The search results are all coming from the same source.&lt;BR /&gt;
 2. The missing events are from one source file.&lt;BR /&gt;
 3. I think the log file permissions are OK, because we can receive most of the events in this log file.&lt;BR /&gt;
 4. We didn't set up to route data to different indices.&lt;BR /&gt;
 5. We checked splunkd.log and metrics.log.&lt;BR /&gt;
 6. We found there were a lot of error events about connection failed in splunkd.log.&lt;BR /&gt;
 7. We didn't find any error or warn event in metrics.log.&lt;BR /&gt;
 8. We enable indexer acknowledgment on the forwarder, and set the useACK attribute to true in outputs.conf. &lt;BR /&gt;
 9. It is effective, but we still can't receive all events, but there were more less than before. (Only lost less than 10 events per day after enabling indexer acknowledgment on the forwarder. If we don't enable indexer acknowledgment, it will lost much more than 10 events per day.)&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 04:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202950#M40118</guid>
      <dc:creator>ccie24806</dc:creator>
      <dc:date>2015-11-02T04:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a universal forwarder lost data when forwarding to an indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202951#M40119</link>
      <description>&lt;P&gt;Based on your trouble-shooting inside of Splunk ('connection failed'), I'd suggest:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Checking for network congestion&lt;/LI&gt;
&lt;LI&gt;Checking for system performance issues (mainly on the receiving side, but potentially on the sending side): system resource exhaustion (CPU/memory/filesystem I/O) and/or TCP stack issues&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Related to system performance: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/ReleaseNotes/SplunkandTHP"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/ReleaseNotes/SplunkandTHP&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Although this doesn't address the exact problem you are having, it may be helpful to see if there is an overall delay in indexing events: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Troubleshooting/Troubleshootingeventsindexingdelay"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Troubleshooting/Troubleshootingeventsindexingdelay&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Fairly thorough discussion of system performance analysis wrt Splunk here: &lt;A href="https://wiki.splunk.com/Community:PerformanceTroubleshooting"&gt;https://wiki.splunk.com/Community:PerformanceTroubleshooting&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 14:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202951#M40119</guid>
      <dc:creator>nnmiller</dc:creator>
      <dc:date>2015-11-02T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot why a universal forwarder lost data when forwarding to an indexer?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202952#M40120</link>
      <description>&lt;P&gt;Thanks！&lt;BR /&gt;
We will check our network first because we found a lot of packets were dropped.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 03:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-troubleshoot-why-a-universal-forwarder-lost-data-when/m-p/202952#M40120</guid>
      <dc:creator>ccie24806</dc:creator>
      <dc:date>2015-11-03T03:39:27Z</dc:date>
    </item>
  </channel>
</rss>

