<?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 a universal forwarder be restarted via REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-universal-forwarder-be-restarted-via-REST-API/m-p/364311#M66320</link>
    <description>&lt;P&gt;Hi @xiyangyang,&lt;/P&gt;

&lt;P&gt;Yes, you can restart UF via REST API (ref doc. &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/RESTREF/RESTsystem#server.2Fcontrol.2Frestart"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.1/RESTREF/RESTsystem#server.2Fcontrol.2Frestart&lt;/A&gt; )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme &lt;A href="https://localhost:8089/services/server/control/restart" target="test_blank"&gt;https://localhost:8089/services/server/control/restart&lt;/A&gt; -X POST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to run above command from remote server then you need to change default password for admin user otherwise you will get below error.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;messages&amp;gt;
    &amp;lt;msg type="WARN"&amp;gt;Remote login has been disabled for 'admin' with the default password. Either set the password, or override by changing the 'allowRemoteLogin' setting in your server.conf file.&amp;lt;/msg&amp;gt;
  &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2017 08:59:24 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2017-12-22T08:59:24Z</dc:date>
    <item>
      <title>Can a universal forwarder be restarted via REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-universal-forwarder-be-restarted-via-REST-API/m-p/364309#M66318</link>
      <description>&lt;P&gt;Can UF be restart via REST API?&lt;BR /&gt;
What other things can be done to UF via REST API?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 07:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-a-universal-forwarder-be-restarted-via-REST-API/m-p/364309#M66318</guid>
      <dc:creator>xiyangyang</dc:creator>
      <dc:date>2017-12-22T07:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can a universal forwarder be restarted via REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-universal-forwarder-be-restarted-via-REST-API/m-p/364310#M66319</link>
      <description>&lt;P&gt;Hi xiyangyang,&lt;BR /&gt;
I don't know why you want to restart a UF using REST API, I think that the easiest way is a remote shell script.&lt;BR /&gt;
Anyway you can find all the information about REST API features at &lt;A href="http://dev.splunk.com/restapi"&gt;http://dev.splunk.com/restapi&lt;/A&gt; .&lt;/P&gt;

&lt;P&gt;Bye.&lt;/P&gt;

&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 07:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-a-universal-forwarder-be-restarted-via-REST-API/m-p/364310#M66319</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-22T07:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can a universal forwarder be restarted via REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-a-universal-forwarder-be-restarted-via-REST-API/m-p/364311#M66320</link>
      <description>&lt;P&gt;Hi @xiyangyang,&lt;/P&gt;

&lt;P&gt;Yes, you can restart UF via REST API (ref doc. &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/RESTREF/RESTsystem#server.2Fcontrol.2Frestart"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.1/RESTREF/RESTsystem#server.2Fcontrol.2Frestart&lt;/A&gt; )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:changeme &lt;A href="https://localhost:8089/services/server/control/restart" target="test_blank"&gt;https://localhost:8089/services/server/control/restart&lt;/A&gt; -X POST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to run above command from remote server then you need to change default password for admin user otherwise you will get below error.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
  &amp;lt;messages&amp;gt;
    &amp;lt;msg type="WARN"&amp;gt;Remote login has been disabled for 'admin' with the default password. Either set the password, or override by changing the 'allowRemoteLogin' setting in your server.conf file.&amp;lt;/msg&amp;gt;
  &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 08:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-a-universal-forwarder-be-restarted-via-REST-API/m-p/364311#M66320</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-22T08:59:24Z</dc:date>
    </item>
  </channel>
</rss>

