<?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 Splunk throwing HTTP 401 not authorized error when called from Java SDK in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-throwing-HTTP-401-not-authorized-error-when-called-from/m-p/209160#M3695</link>
    <description>&lt;P&gt;I have multiple GetSplunk processors running using a Cron driven scheduling strategy. The Cron expression looks like '0 30 13 * * ?'. They all successfully execute the query the first time it's run. But, the next day it errors out with a 401 error from Splunk. The error from nifi-app.log is as below. The Cron scheduler in NiFi is a QuartzScheduler.&lt;BR /&gt;
   &lt;CODE&gt;WARN [Timer-Driven Process Thread-7] o.a.n.c.t.ContinuallyRunProcessorTask Administratively Yielding GetSplunk[id=01581009-026c-114b-5e2e-401ebea6427d] due to uncaught Exception: com.splunk.HttpException: HTTP 401 -- call not properly authenticated&lt;BR /&gt;
    2016-12-21 13:30:00,300 WARN [Timer-Driven Process Thread-2] o.a.n.c.t.ContinuallyRunProcessorTask&lt;BR /&gt;
    com.splunk.HttpException: HTTP 401 -- call not properly authenticated&lt;BR /&gt;
        at com.splunk.HttpException.create(HttpException.java:84) ~[na:na]&lt;BR /&gt;
        at com.splunk.HttpService.send(HttpService.java:452) ~[na:na]&lt;BR /&gt;
        at com.splunk.Service.send(Service.java:1293) ~[na:na]&lt;BR /&gt;
        at com.splunk.HttpService.get(HttpService.java:165) ~[na:na]&lt;BR /&gt;
        at com.splunk.Service.export(Service.java:222) ~[na:na]&lt;BR /&gt;
        at com.splunk.Service.export(Service.java:237) ~[na:na]&lt;BR /&gt;
        at org.apache.nifi.processors.splunk.GetSplunk.onTrigger(GetSplunk.java:461) ~[na:na]&lt;BR /&gt;
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1064) ~[nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at org.apache.nifi.controller.scheduling.QuartzSchedulingAgent$2.run(QuartzSchedulingAgent.java:165) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]&lt;BR /&gt;
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The GetSplunk processor makes use of Java SDK for Splunk. My earliest time is '-24h' and latest time is 'now'. I am hitting splunkd with port 8089. &lt;BR /&gt;
Help appreciated. &lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2016 03:08:40 GMT</pubDate>
    <dc:creator>raghav130593</dc:creator>
    <dc:date>2016-12-28T03:08:40Z</dc:date>
    <item>
      <title>Splunk throwing HTTP 401 not authorized error when called from Java SDK</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-throwing-HTTP-401-not-authorized-error-when-called-from/m-p/209160#M3695</link>
      <description>&lt;P&gt;I have multiple GetSplunk processors running using a Cron driven scheduling strategy. The Cron expression looks like '0 30 13 * * ?'. They all successfully execute the query the first time it's run. But, the next day it errors out with a 401 error from Splunk. The error from nifi-app.log is as below. The Cron scheduler in NiFi is a QuartzScheduler.&lt;BR /&gt;
   &lt;CODE&gt;WARN [Timer-Driven Process Thread-7] o.a.n.c.t.ContinuallyRunProcessorTask Administratively Yielding GetSplunk[id=01581009-026c-114b-5e2e-401ebea6427d] due to uncaught Exception: com.splunk.HttpException: HTTP 401 -- call not properly authenticated&lt;BR /&gt;
    2016-12-21 13:30:00,300 WARN [Timer-Driven Process Thread-2] o.a.n.c.t.ContinuallyRunProcessorTask&lt;BR /&gt;
    com.splunk.HttpException: HTTP 401 -- call not properly authenticated&lt;BR /&gt;
        at com.splunk.HttpException.create(HttpException.java:84) ~[na:na]&lt;BR /&gt;
        at com.splunk.HttpService.send(HttpService.java:452) ~[na:na]&lt;BR /&gt;
        at com.splunk.Service.send(Service.java:1293) ~[na:na]&lt;BR /&gt;
        at com.splunk.HttpService.get(HttpService.java:165) ~[na:na]&lt;BR /&gt;
        at com.splunk.Service.export(Service.java:222) ~[na:na]&lt;BR /&gt;
        at com.splunk.Service.export(Service.java:237) ~[na:na]&lt;BR /&gt;
        at org.apache.nifi.processors.splunk.GetSplunk.onTrigger(GetSplunk.java:461) ~[na:na]&lt;BR /&gt;
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1064) ~[nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at org.apache.nifi.controller.scheduling.QuartzSchedulingAgent$2.run(QuartzSchedulingAgent.java:165) [nifi-framework-core-1.1.0-SNAPSHOT.jar:1.1.0-SNAPSHOT]&lt;BR /&gt;
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]&lt;BR /&gt;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]&lt;BR /&gt;
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The GetSplunk processor makes use of Java SDK for Splunk. My earliest time is '-24h' and latest time is 'now'. I am hitting splunkd with port 8089. &lt;BR /&gt;
Help appreciated. &lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 03:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-throwing-HTTP-401-not-authorized-error-when-called-from/m-p/209160#M3695</guid>
      <dc:creator>raghav130593</dc:creator>
      <dc:date>2016-12-28T03:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk throwing HTTP 401 not authorized error when called from Java SDK</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-throwing-HTTP-401-not-authorized-error-when-called-from/m-p/209161#M3696</link>
      <description>&lt;P&gt;@raghav130593,  which version of the Splunk SDK are you using?&lt;BR /&gt;
I'm having this issue as well with version 1.3.2.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 15:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-throwing-HTTP-401-not-authorized-error-when-called-from/m-p/209161#M3696</guid>
      <dc:creator>jantreassian</dc:creator>
      <dc:date>2017-01-31T15:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk throwing HTTP 401 not authorized error when called from Java SDK</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-throwing-HTTP-401-not-authorized-error-when-called-from/m-p/209162#M3697</link>
      <description>&lt;P&gt;I found the issue. It was a lazy authorization issue within Apache Nifi's GetSplunk processor and not really Splunk's issue. The session that getting created used to expire and a new session wasn't getting created consecutive times within the cron scheduler.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 23:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-throwing-HTTP-401-not-authorized-error-when-called-from/m-p/209162#M3697</guid>
      <dc:creator>raghav130593</dc:creator>
      <dc:date>2017-01-31T23:17:16Z</dc:date>
    </item>
  </channel>
</rss>

