question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

splunk sdk : com.splunk.HttpException: HTTP 401 -- call not properly authenticated

See original GitHub issue

I am trying to search the string from splunk , i was getting 401 error. StringBuilder searchString = new StringBuilder();

    searchString.append("search").append(" XXX");

Service service = Service.connect(splunkArgs); Job job = service.getJobs().create(searchString.toString());

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:26 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
nmaioranacommented, Jan 21, 2017

HTTP 401 – {“messages”:[{“type”:“WARN”,“text”:“call not properly authenticated”}]}

We are seeing this error intermittently. From what I can tell, it happens after the request is submitted to the server. I even suspect the query itself is being executed. I suspect this because our Splunk team is reporting more concurrent sessions for our user than is possible for us.

Is it possible the error messes is incorrect? I ask this because we get this once in a while from a process that is running and submits the request in the same way every time.

1reaction
pawarakeshcommented, Dec 18, 2018

I was getting the same error. I have fixed this problem by upgrading splunk-sdk-java library from 1.3.2 to 1.6.5 (latest one). Now it’s working fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting "Status 401 call not properly aut...
Hello I am using Splunk java sdk 1.4.0.0 when I execute this query : String QUERY = "search \"ab_exper\" index=my_apache | rex.
Read more >
Splunk throwing HTTP 401 not authorized error when ...
After looking into the code for a few minutes, I think this is an issue in the NiFi processor. The first time the...
Read more >
Solved: Cron scheduling strategy with GetSplunk fails on s. ...
HttpException: HTTP 401 -- call not properly authenticated at com.splunk.HttpException.create(HttpException.java:84) ~[na:na] at com.splunk.
Read more >
Connect to Splunk with Python - hackerrolls
This post will cover the following: Connecting to Splunk with the Python SDK, executing a search and receiving the results Connecting to ...
Read more >
Failed opening seach.log - splunk-enterprise
HttpException: HTTP 401 -- call not properly authenticated at com.splunk.HttpException.create(HttpException.java:84) at com.splunk.DBXService.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found