<?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: Can I stop splunk universal forwarder at once from deployment server or any other apps? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200279#M80</link>
    <description>&lt;P&gt;No, not natively from the central deployment server. If you accidently stopped all the universal forwarders from the deployment server, you could be in some pretty big trouble, as you wouldn't be able to restart the remote Splunk services if they were all stopped.&lt;/P&gt;

&lt;P&gt;Next best option is to remove the applications and allow the forwarders to remain active, polling the deployment server in case you make configuration changes or push out their applications again.&lt;/P&gt;

&lt;P&gt;Allowing the forwarders to remain active in the OS would probably be best, and only use minimal resources sitting in memory doing nothing.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2015 06:18:55 GMT</pubDate>
    <dc:creator>milesbrennan</dc:creator>
    <dc:date>2015-12-23T06:18:55Z</dc:date>
    <item>
      <title>Can I stop splunk universal forwarder at once from deployment server or any other apps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200276#M77</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;There are lots of splunk universal forwarders installed in application servers, and managed by deployment server. Can I stop all the UFs at once from deployment server? Or from any other apps?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 02:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200276#M77</guid>
      <dc:creator>Moon629</dc:creator>
      <dc:date>2015-12-23T02:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can I stop splunk universal forwarder at once from deployment server or any other apps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200277#M78</link>
      <description>&lt;P&gt;I found the easiest way is to remove all the associated applications from the serverclass, and reload the deployment server. Then once the deployment client checks back in, it removes the application, and will not collect or send any data.&lt;/P&gt;

&lt;P&gt;The fishbucket keeps track of the data logs you have already collected, so when you re-apply the applications, you don't get a double-up of event entries.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Enable the DHCP input from Splunk_TA_windows
[serverClass:WinDHCP]
whitelist.0 = DCSERVER-AU
whitelist.1 = DCSERVER-UK
whitelist.2 = DCSERVER-US
whitelist.3 = DCSERVER-EU
whitelist.4 = DCSERVER-NZ
#[serverClass:WinDHCP:app:deploymentclient]        &amp;lt;-- remark out the application association
#[serverClass:WinDHCP:app:output_all]              &amp;lt;-- remark out the application association
#[serverClass:WinDHCP:app:Splunk_TA_windows]       &amp;lt;-- remark out the application association
#[serverClass:WinDHCP:app:AAA_windows_dhcp]        &amp;lt;-- remark out the application association
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Save the "serverclass.conf" file and issue the deployment server a reload.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk reload deploy-server
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Dec 2015 05:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200277#M78</guid>
      <dc:creator>milesbrennan</dc:creator>
      <dc:date>2015-12-23T05:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I stop splunk universal forwarder at once from deployment server or any other apps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200278#M79</link>
      <description>&lt;P&gt;Thank you and yes, we can remove the configuration applied to the application servers. But can we stop the ufs? like running: ./splunk stop.....which don't need to login to application servers?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 05:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200278#M79</guid>
      <dc:creator>Moon629</dc:creator>
      <dc:date>2015-12-23T05:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can I stop splunk universal forwarder at once from deployment server or any other apps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200279#M80</link>
      <description>&lt;P&gt;No, not natively from the central deployment server. If you accidently stopped all the universal forwarders from the deployment server, you could be in some pretty big trouble, as you wouldn't be able to restart the remote Splunk services if they were all stopped.&lt;/P&gt;

&lt;P&gt;Next best option is to remove the applications and allow the forwarders to remain active, polling the deployment server in case you make configuration changes or push out their applications again.&lt;/P&gt;

&lt;P&gt;Allowing the forwarders to remain active in the OS would probably be best, and only use minimal resources sitting in memory doing nothing.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 06:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200279#M80</guid>
      <dc:creator>milesbrennan</dc:creator>
      <dc:date>2015-12-23T06:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I stop splunk universal forwarder at once from deployment server or any other apps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200280#M81</link>
      <description>&lt;P&gt;You could always deploy an app that contains a Python, PowerShell or whatever other script language you want to use and run a splunk stop from there. &lt;/P&gt;

&lt;P&gt;Splunk should run this and stop itself in theory. &lt;/P&gt;

&lt;P&gt;But keep in mind you won't be able to undo this very easily. If your script creates a schedule or cron task that starts splunk automatically after a certain period, you might be able to overcome the issue. &lt;/P&gt;

&lt;P&gt;Hope that helps. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 06:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200280#M81</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-23T06:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I stop splunk universal forwarder at once from deployment server or any other apps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200281#M82</link>
      <description>&lt;P&gt;Thank you. Since the admin of the application servers concern that if ufs spent lots of resource, and influence the application, he hope that we can stop all at once. &lt;/P&gt;

&lt;P&gt;but I think you are correct. if ufs spent lots of resource, which means read and forward lots of data. So remove the inputs and outputs configuration maybe the effective way. &lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 06:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200281#M82</guid>
      <dc:creator>Moon629</dc:creator>
      <dc:date>2015-12-23T06:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I stop splunk universal forwarder at once from deployment server or any other apps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200282#M83</link>
      <description>&lt;P&gt;Any app already created in splunk apps for this?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 06:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200282#M83</guid>
      <dc:creator>Moon629</dc:creator>
      <dc:date>2015-12-23T06:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can I stop splunk universal forwarder at once from deployment server or any other apps?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200283#M84</link>
      <description>&lt;P&gt;I don't think so.&lt;BR /&gt;
Depending on your needs and your environment you could use PowerShell on Windows hosts and Python everywhere else. Or just use Python everywhere.&lt;/P&gt;

&lt;P&gt;Take a look at the following posts and see if that helps. All you need to do is to deploy your app that runs your script via inputs.conf:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/212331/can-i-use-a-python-script-on-a-windows-universal-f.html"&gt;https://answers.splunk.com/answers/212331/can-i-use-a-python-script-on-a-windows-universal-f.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/StartSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/StartSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you are running 6.3 you can natively run PowerShell scripts too. See the following links:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/AddOns/latest/MSPowerShell/Configuration"&gt;http://docs.splunk.com/Documentation/AddOns/latest/MSPowerShell/Configuration&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://technet.microsoft.com/en-us/library/ee177005.aspx"&gt;https://technet.microsoft.com/en-us/library/ee177005.aspx&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For instance, your inputs.conf could be something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Restart SplunkForwarder on Windows on December 24th (note this will run every year so make sure you disable the app)
[powershell://Restart-Splunk]
script = Stop-Service SplunkForwarder
schedule = 0 10 24 12 *
sourcetype = MySourceType
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2015 22:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-I-stop-splunk-universal-forwarder-at-once-from-deployment/m-p/200283#M84</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-23T22:41:00Z</dc:date>
    </item>
  </channel>
</rss>

