<?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: What are the basic troubleshooting steps in case of universal forwarder and heavy forwarder not forwarding data to Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456365#M78908</link>
    <description>&lt;UL&gt;
&lt;LI&gt;The Splunk forwarder basically acts as an agent for log collection from remote machines. &lt;/LI&gt;
&lt;LI&gt;The role of the Splunk forwarder is to collect the logs from remote machines and forward them to the indexer for further processing and storage. &lt;/LI&gt;
&lt;LI&gt;Splunk universal Forwarders provide reliable, secure data collection from remote sources and forward that data into Splunk Enterprise for indexing and consolidation. &lt;/LI&gt;
&lt;LI&gt;Below are the few most common checks which will help in identifying the problem and resolving it efficiently.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;check if Splunk process is running on Splunk forwarder&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;For Windows check services | for Linux use below command&lt;/P&gt;

&lt;P&gt;ps -ef |grep splunkd&lt;BR /&gt;
Or &lt;BR /&gt;
cd $SPLUNK HOME/bin&lt;BR /&gt;
./splunk status&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check if Splunk forwarder forwarding port is open by using below command&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;netstat -an | grep 9997&lt;BR /&gt;
If output of above command is blank, then your port is not open. You need to open it.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check on indexer if receiving is enabled on port 9997 and port 9997 is open on indexer&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Check if receiving is configured : on indexer, go to setting&amp;gt;&amp;gt;forwarding and receiving &amp;gt;&amp;gt; check if receiving is enabled on port 9997. If not, enable it.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check if you are able to ping indexer from forwarder host&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;ping indexer name&lt;BR /&gt;
If you are not able to ping to the server, then check network issue&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Confirm on indexer if your file is already indexed or not by using the below search query&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In the Splunk UI, run the following search - index=_internal "FileInputTracker" **&lt;/P&gt;

&lt;P&gt;As output of the search query, you will get a list of log files indexed.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check if forwarder has completed processing log file (i.e. tailing process by using below URL)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunk" target="_blank"&gt;https://splunk&lt;/A&gt; forwarder server name:8089/services/admin/inputstatus/TailingProcessor:FileStatus&lt;BR /&gt;
In tailing process output you can check if forwarder is having an issue for processing file&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check out log file permissions which you are sending to Splunk. Verify if Splunk user has access to log file&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Checkout filesystem for last modification and verify if the forwarder is monitoring it&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Verify inputs.conf and outputs.conf for proper configuration&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Below are sample configuration files for comparison:&lt;/P&gt;

&lt;H2&gt;Inputs.conf example:&lt;/H2&gt;

&lt;P&gt;[monitor:///var/log/secure]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = linux_secure&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/messages]&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;H2&gt;sourcetype = syslog&lt;/H2&gt;

&lt;H2&gt;Outputs.conf example:&lt;/H2&gt;

&lt;P&gt;outputs.conf example:&lt;BR /&gt;
[tcpout:imp_A]&lt;BR /&gt;
server = impAserver01.domain:9997,impAserver02.domain:9997&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
[tcpout]&lt;BR /&gt;
defaultGroup = imp_B&lt;BR /&gt;
[tcpout:imp_B]&lt;BR /&gt;
server = impBserver01.domain:9997,impBserver02.domain:9997&lt;/P&gt;

&lt;H2&gt;autoLB = true&lt;/H2&gt;

&lt;P&gt;&lt;STRONG&gt;Checkout disk space availability on the indexer&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;**Check splunkd.log on forwarder at location $SPLUNK_HOME/var/log/splunk for any errors. Like for messages that are from 'TcpOutputProc', they should give you an indication as to what is occurring when the forwarder tries to connect to the indexer&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;tcpdump port 9997 data for any errors&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;tcpdump -i etho port 9997&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check out ulimit if you have installed forwarder on linux. and set it to unlimites or max (65535 -Splunk recommended)&lt;/STRONG&gt;&lt;BR /&gt;
- ulimit is limit set by default in linux is limit for number files opened by a process&lt;BR /&gt;
- check ulimit command: ulimit -n&lt;BR /&gt;
- set ulimit command: ulimit -n expected size&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Finally, try restarting Splunk on the forwarder&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:51:01 GMT</pubDate>
    <dc:creator>dkolekar_splunk</dc:creator>
    <dc:date>2020-09-29T21:51:01Z</dc:date>
    <item>
      <title>What are the basic troubleshooting steps in case of universal forwarder and heavy forwarder not forwarding data to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456364#M78907</link>
      <description>&lt;P&gt;Most of the time, we are seeing that the Splunk universal forwarder or heavy forwarder is failing to forward data to the indexer. In this scenario, what troubleshooting steps should we take to investigate why this is happening? &lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456364#M78907</guid>
      <dc:creator>dkolekar_splunk</dc:creator>
      <dc:date>2018-10-31T14:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: What are the basic troubleshooting steps in case of universal forwarder and heavy forwarder not forwarding data to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456365#M78908</link>
      <description>&lt;UL&gt;
&lt;LI&gt;The Splunk forwarder basically acts as an agent for log collection from remote machines. &lt;/LI&gt;
&lt;LI&gt;The role of the Splunk forwarder is to collect the logs from remote machines and forward them to the indexer for further processing and storage. &lt;/LI&gt;
&lt;LI&gt;Splunk universal Forwarders provide reliable, secure data collection from remote sources and forward that data into Splunk Enterprise for indexing and consolidation. &lt;/LI&gt;
&lt;LI&gt;Below are the few most common checks which will help in identifying the problem and resolving it efficiently.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;check if Splunk process is running on Splunk forwarder&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;For Windows check services | for Linux use below command&lt;/P&gt;

&lt;P&gt;ps -ef |grep splunkd&lt;BR /&gt;
Or &lt;BR /&gt;
cd $SPLUNK HOME/bin&lt;BR /&gt;
./splunk status&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check if Splunk forwarder forwarding port is open by using below command&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;netstat -an | grep 9997&lt;BR /&gt;
If output of above command is blank, then your port is not open. You need to open it.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check on indexer if receiving is enabled on port 9997 and port 9997 is open on indexer&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Check if receiving is configured : on indexer, go to setting&amp;gt;&amp;gt;forwarding and receiving &amp;gt;&amp;gt; check if receiving is enabled on port 9997. If not, enable it.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check if you are able to ping indexer from forwarder host&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;ping indexer name&lt;BR /&gt;
If you are not able to ping to the server, then check network issue&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Confirm on indexer if your file is already indexed or not by using the below search query&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In the Splunk UI, run the following search - index=_internal "FileInputTracker" **&lt;/P&gt;

&lt;P&gt;As output of the search query, you will get a list of log files indexed.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check if forwarder has completed processing log file (i.e. tailing process by using below URL)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunk" target="_blank"&gt;https://splunk&lt;/A&gt; forwarder server name:8089/services/admin/inputstatus/TailingProcessor:FileStatus&lt;BR /&gt;
In tailing process output you can check if forwarder is having an issue for processing file&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check out log file permissions which you are sending to Splunk. Verify if Splunk user has access to log file&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Checkout filesystem for last modification and verify if the forwarder is monitoring it&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Verify inputs.conf and outputs.conf for proper configuration&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Below are sample configuration files for comparison:&lt;/P&gt;

&lt;H2&gt;Inputs.conf example:&lt;/H2&gt;

&lt;P&gt;[monitor:///var/log/secure]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = linux_secure&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/messages]&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;H2&gt;sourcetype = syslog&lt;/H2&gt;

&lt;H2&gt;Outputs.conf example:&lt;/H2&gt;

&lt;P&gt;outputs.conf example:&lt;BR /&gt;
[tcpout:imp_A]&lt;BR /&gt;
server = impAserver01.domain:9997,impAserver02.domain:9997&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
[tcpout]&lt;BR /&gt;
defaultGroup = imp_B&lt;BR /&gt;
[tcpout:imp_B]&lt;BR /&gt;
server = impBserver01.domain:9997,impBserver02.domain:9997&lt;/P&gt;

&lt;H2&gt;autoLB = true&lt;/H2&gt;

&lt;P&gt;&lt;STRONG&gt;Checkout disk space availability on the indexer&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;**Check splunkd.log on forwarder at location $SPLUNK_HOME/var/log/splunk for any errors. Like for messages that are from 'TcpOutputProc', they should give you an indication as to what is occurring when the forwarder tries to connect to the indexer&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;tcpdump port 9997 data for any errors&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;tcpdump -i etho port 9997&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Check out ulimit if you have installed forwarder on linux. and set it to unlimites or max (65535 -Splunk recommended)&lt;/STRONG&gt;&lt;BR /&gt;
- ulimit is limit set by default in linux is limit for number files opened by a process&lt;BR /&gt;
- check ulimit command: ulimit -n&lt;BR /&gt;
- set ulimit command: ulimit -n expected size&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Finally, try restarting Splunk on the forwarder&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:51:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456365#M78908</guid>
      <dc:creator>dkolekar_splunk</dc:creator>
      <dc:date>2020-09-29T21:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: What are the basic troubleshooting steps in case of universal forwarder and heavy forwarder not forwarding data to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456366#M78909</link>
      <description>&lt;P&gt;Hi dkolekar [Splunk],&lt;BR /&gt;
to perform troubleshooting on Splunk data ingestion you can see at&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.0/Data/Troubleshoottheinputprocess"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.0/Data/Troubleshoottheinputprocess&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/Troubleshooting/IntrototroubleshootingSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/Troubleshooting/IntrototroubleshootingSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Anyway, if you're not receiving any log from UF you could perform these tests:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;check if ports are open using telnet,&lt;/LI&gt;
&lt;LI&gt;see Splunk logs on UF ($SPLUNK_HOME/var/log/splunk/splunkd.log)&lt;/LI&gt;
&lt;LI&gt;search on _internal on Splunk Enterprise.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If instead the problem is that UF is sending data (there are events in _internal) but there arent logs, check the log path and file names, probably they are wrong.&lt;BR /&gt;
Check also the timestamp format, maybe UF failed in timestamp parsing and you have your logs with a wrong timestamp.&lt;/P&gt;

&lt;P&gt;In other words, fix your checks to be sure that:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;UF is sending,&lt;/LI&gt;
&lt;LI&gt;logs arrive on Indexer,&lt;/LI&gt;
&lt;LI&gt;logs have the correct timestamp format.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The above documentation can support you in your debugging.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456366#M78909</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-10-31T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: What are the basic troubleshooting steps in case of universal forwarder and heavy forwarder not forwarding data to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456367#M78910</link>
      <description>&lt;P&gt;Most useful is &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/Troubleshooting/Cantfinddata"&gt;I can't find my data!&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456367#M78910</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-10-31T15:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: What are the basic troubleshooting steps in case of universal forwarder and heavy forwarder not forwarding data to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456368#M78911</link>
      <description>&lt;P&gt;@SloshBurch This could maybe be &lt;CODE&gt;validated_best_practice&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 04:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456368#M78911</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-03-07T04:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: What are the basic troubleshooting steps in case of universal forwarder and heavy forwarder not forwarding data to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456369#M78912</link>
      <description>&lt;P&gt;Yup! Actually our friends in Professional Services have a similar article that we've been talking about publishing.&lt;/P&gt;

&lt;P&gt;Thanks for drawing my attention!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 21:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-the-basic-troubleshooting-steps-in-case-of-universal/m-p/456369#M78912</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2019-03-15T21:36:47Z</dc:date>
    </item>
  </channel>
</rss>

