<?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: ModularInput Can't connect to Splunk REST API token is invalid or SplunkD has exited HTTP 401 in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221694#M24296</link>
    <description>&lt;P&gt;Thanks for the inputs on this issue @Damien Dallimore &lt;/P&gt;

&lt;P&gt;Could you please help with below scenario?&lt;/P&gt;

&lt;P&gt;I am having similar issue running the app on splunk universal forwarder, running on s390x linux.&lt;/P&gt;

&lt;P&gt;when I enable the app,  it sends one set of jmx output and displays following error messages.&lt;/P&gt;

&lt;P&gt;ERROR Can't connect to Splunk REST API with the token, either the token is invalid or SplunkD has exited : null&lt;/P&gt;

&lt;P&gt;"ERROR It has been determined via the REST API that all inputs have been disabled"&lt;/P&gt;

&lt;P&gt;and the PID from SPLUNK4JMX.pid file doesnt exist on running processes and doesnt trigger the modinput again ( I guess the inputs are disabled from the error message).  Enabling app through command line triggers another one time jmx output.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 13:25:22 GMT</pubDate>
    <dc:creator>kyaparla</dc:creator>
    <dc:date>2018-12-14T13:25:22Z</dc:date>
    <item>
      <title>ModularInput Can't connect to Splunk REST API token is invalid or SplunkD has exited HTTP 401</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221689#M24291</link>
      <description>&lt;P&gt;Hi Splunkers&lt;/P&gt;

&lt;P&gt;I have a problem with a Modular Input in Splunk. I'm using the Monitoring of Java Virtual Machines with JMX app to push JMX data into Splunk.&lt;BR /&gt;
This works with a new Installation from a heavy forwarder very well. After a time, the Java process exits with the following message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ERROR ModularInput - Can't connect to Splunk REST API with the token [Splunk bgmFr7ozce8o6MsM_XSjtBctMT62B4QslXNLWRCLZUGHB_Dz9RjKGP8brkqFcpwdO97hb_0nqVFau7PVyBBGeQDzSmlFnKga98o6lutJODEz5d0ttl0knxtq0nF], either the token is invalid or SplunkD has exited : HTTP 401 -- &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;call not properly authenticated&amp;lt;/msg&amp;gt;
  &amp;lt;/messages&amp;gt;
&amp;lt;/response&amp;gt;
INFO  Mapping - Loading mapping descriptors from jar:file:/opt/splunk/etc/apps/SPLUNK4JMX/bin/lib/jmxmodinput.jar!/mapping.XML
ERROR ModularInput - It has been determined via the REST API that all inputs have been disabled
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does someone have an idea why this problem occurs? I changed nothing on the heavy forwarder.&lt;BR /&gt;
I can solve the Problem with a complete reinstallation of the heavy forwarder, but that cannot be the solution.&lt;/P&gt;

&lt;P&gt;I am glad of any help.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
Yanick&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 08:44:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221689#M24291</guid>
      <dc:creator>simony</dc:creator>
      <dc:date>2016-02-25T08:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: ModularInput Can't connect to Splunk REST API token is invalid or SplunkD has exited HTTP 401</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221690#M24292</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I can solve the Problem with a completreinstallation of the heavyforwarder.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Well , logic would tell me that it is something to do with your HF environment then.&lt;BR /&gt;
Is your stanza name for your JMX input unique ?  ie: there are no other inputs.conf stanzas anywhere in the deployment with the same name ?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 10:32:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221690#M24292</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2016-02-25T10:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: ModularInput Can't connect to Splunk REST API token is invalid or SplunkD has exited HTTP 401</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221691#M24293</link>
      <description>&lt;P&gt;Yes, my stanza name for JMX Input is unique in the whole /opt/splunk Directory:&lt;/P&gt;

&lt;P&gt;./etc/apps/SPLUNK4JMX/local/inputs.conf:[jmx://midw]&lt;/P&gt;

&lt;P&gt;Meanwhile i could solve the problem with the following command:&lt;/P&gt;

&lt;P&gt;/opt/splunk/bin/splunk enable app SPLUNK4JMX&lt;/P&gt;

&lt;P&gt;Why this works, i d'ont know. In my default/app.conf the state is enabled:&lt;/P&gt;

&lt;P&gt;[install]&lt;BR /&gt;
state = enabled&lt;BR /&gt;
is_configured = true&lt;/P&gt;

&lt;P&gt;The enable command writes only an app.conf in the local directory with state = enabled.&lt;BR /&gt;
Strange..&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Yanick&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 13:20:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221691#M24293</guid>
      <dc:creator>simony</dc:creator>
      <dc:date>2016-02-25T13:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: ModularInput Can't connect to Splunk REST API token is invalid or SplunkD has exited HTTP 401</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221692#M24294</link>
      <description>&lt;P&gt;What does your jmx://midw stanza look like ? &lt;BR /&gt;
Is the stanza enabled in local/inputs.conf ?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 09:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221692#M24294</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2016-02-26T09:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: ModularInput Can't connect to Splunk REST API token is invalid or SplunkD has exited HTTP 401</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221693#M24295</link>
      <description>&lt;P&gt;Yes the stanza is enabled in the local/inputs.conf:&lt;/P&gt;

&lt;P&gt;[jmx://midw]&lt;BR /&gt;
config_file = config.xml&lt;BR /&gt;
polling_frequency = 60&lt;BR /&gt;
sourcetype = jmx&lt;BR /&gt;
index = jmxitd&lt;BR /&gt;
disabled = 0&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221693#M24295</guid>
      <dc:creator>simony</dc:creator>
      <dc:date>2020-09-29T09:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: ModularInput Can't connect to Splunk REST API token is invalid or SplunkD has exited HTTP 401</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221694#M24296</link>
      <description>&lt;P&gt;Thanks for the inputs on this issue @Damien Dallimore &lt;/P&gt;

&lt;P&gt;Could you please help with below scenario?&lt;/P&gt;

&lt;P&gt;I am having similar issue running the app on splunk universal forwarder, running on s390x linux.&lt;/P&gt;

&lt;P&gt;when I enable the app,  it sends one set of jmx output and displays following error messages.&lt;/P&gt;

&lt;P&gt;ERROR Can't connect to Splunk REST API with the token, either the token is invalid or SplunkD has exited : null&lt;/P&gt;

&lt;P&gt;"ERROR It has been determined via the REST API that all inputs have been disabled"&lt;/P&gt;

&lt;P&gt;and the PID from SPLUNK4JMX.pid file doesnt exist on running processes and doesnt trigger the modinput again ( I guess the inputs are disabled from the error message).  Enabling app through command line triggers another one time jmx output.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 13:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/ModularInput-Can-t-connect-to-Splunk-REST-API-token-is-invalid/m-p/221694#M24296</guid>
      <dc:creator>kyaparla</dc:creator>
      <dc:date>2018-12-14T13:25:22Z</dc:date>
    </item>
  </channel>
</rss>

