<?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 - stops forwarding after restarting splunk service in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-stops-forwarding-after-restarting-splunk/m-p/38101#M6987</link>
    <description>&lt;P&gt;Hello Gekoner,&lt;/P&gt;

&lt;P&gt;After issuing "splunk monitor /var/log/squid/access.log -sourcetype squid" command, the following is appended to the inputs.conf file in the "/opt/splunkforwarder/etc/apps/search/local" directory:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/squid/access.log]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = squid&lt;/P&gt;

&lt;P&gt;And after the "splunk add forward-server 192.168.2.2:9997" command, the following gets appended to the outputs.conf file in the "/opt/splunkforwarder/etc/system/local" directory:&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = 192.168.2.2_9997&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;[tcpout:192.168.2.2_9997]&lt;BR /&gt;
server = 192.168.2.2:9997&lt;/P&gt;

&lt;P&gt;[tcpout-server://192.168.2.2:9997]&lt;/P&gt;

&lt;P&gt;So I believe that what you are talking about is being done when I give splunk the commands mentioned above. I am not sure what other inputs.conf or outputs.conf are there for me to put the info in.&lt;/P&gt;

&lt;P&gt;Even after a restart, if I issue the add monitor command again, it won't let me because it says the file is already being monitored. So there must be a file somewhere that knows I already issued the add monitor command. Even after I delete the info in the inputs.conf file and reissue the add monitor command, it still won't let me because it thinks I am already monitoring it.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2011 18:32:32 GMT</pubDate>
    <dc:creator>carbonegg</dc:creator>
    <dc:date>2011-12-20T18:32:32Z</dc:date>
    <item>
      <title>Universal Forwarder - stops forwarding after restarting splunk service</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-stops-forwarding-after-restarting-splunk/m-p/38100#M6986</link>
      <description>&lt;P&gt;I installed the universal forwarder 4.2.5 on my remote Linux machine and set it to monitor my squid access logs.&lt;/P&gt;

&lt;P&gt;After installing it, I run the following commands to have the data sent to my Splunk server:&lt;/P&gt;

&lt;H1&gt;Start the server&lt;/H1&gt;

&lt;P&gt;/opt/splunkforwarder/bin/splunk start&lt;/P&gt;

&lt;H1&gt;Add server address&lt;/H1&gt;

&lt;P&gt;/opt/splunkforwarder/bin/splunk add forward-server 192.168.2.2:9997&lt;/P&gt;

&lt;H1&gt;Monitor File&lt;/H1&gt;

&lt;P&gt;/opt/splunkforwarder/bin/splunk monitor /var/log/squid/access.log -sourcetype squid&lt;/P&gt;

&lt;P&gt;Immediately after issuing the last command which monitors the access.log file, the events start flowing into the server and I can view them on the Squid App and Search app. Everything works fine. &lt;/P&gt;

&lt;P&gt;The problem starts when I restart Splunk. After issuing the ./splunk restart command, Splunk starts up okay, but the logs are no longer forwarded to the server. I have not seen any errors. I am not sure why it stops sending logs to the server after restarting it.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 17:34:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-stops-forwarding-after-restarting-splunk/m-p/38100#M6986</guid>
      <dc:creator>carbonegg</dc:creator>
      <dc:date>2011-12-20T17:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder - stops forwarding after restarting splunk service</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-stops-forwarding-after-restarting-splunk/m-p/38101#M6987</link>
      <description>&lt;P&gt;Hello Gekoner,&lt;/P&gt;

&lt;P&gt;After issuing "splunk monitor /var/log/squid/access.log -sourcetype squid" command, the following is appended to the inputs.conf file in the "/opt/splunkforwarder/etc/apps/search/local" directory:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/squid/access.log]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = squid&lt;/P&gt;

&lt;P&gt;And after the "splunk add forward-server 192.168.2.2:9997" command, the following gets appended to the outputs.conf file in the "/opt/splunkforwarder/etc/system/local" directory:&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = 192.168.2.2_9997&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;[tcpout:192.168.2.2_9997]&lt;BR /&gt;
server = 192.168.2.2:9997&lt;/P&gt;

&lt;P&gt;[tcpout-server://192.168.2.2:9997]&lt;/P&gt;

&lt;P&gt;So I believe that what you are talking about is being done when I give splunk the commands mentioned above. I am not sure what other inputs.conf or outputs.conf are there for me to put the info in.&lt;/P&gt;

&lt;P&gt;Even after a restart, if I issue the add monitor command again, it won't let me because it says the file is already being monitored. So there must be a file somewhere that knows I already issued the add monitor command. Even after I delete the info in the inputs.conf file and reissue the add monitor command, it still won't let me because it thinks I am already monitoring it.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 18:32:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-stops-forwarding-after-restarting-splunk/m-p/38101#M6987</guid>
      <dc:creator>carbonegg</dc:creator>
      <dc:date>2011-12-20T18:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Universal Forwarder - stops forwarding after restarting splunk service</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-stops-forwarding-after-restarting-splunk/m-p/38102#M6988</link>
      <description>&lt;P&gt;OK, yes I see that those commands do add the correct stanza to the conf files. Run a splunk list forward-server after you restart splunk on the universal forwarder. And let us know the output.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 20:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-Forwarder-stops-forwarding-after-restarting-splunk/m-p/38102#M6988</guid>
      <dc:creator>gekoner</dc:creator>
      <dc:date>2011-12-20T20:54:31Z</dc:date>
    </item>
  </channel>
</rss>

