Developing for Splunk Enterprise

[Fatal Error] :1:1: Content is not allowed in prolog.

New Member

Hi, using splunk-sdk-java is being developed.
Login method call in development of the following error has occurred.

POST => [Fatal Error]: 1:1: Content is not allowed in prolog.
com.splunk.HttpException: HTTP 400
at com.splunk.HttpException.create ( 59)
at com.splunk.HttpService.send ( 366)
at com.splunk.Service.send ( 644)
at ( 226)
at com.splunk.Service.login ( 556)
at com.splunk.ServiceTest.main ( 321)

What would I have to solve please answer.

Thank you.

Tags (2)
0 Karma

Splunk Employee
Splunk Employee

wrong URL. you can't sent REST calls to SplunkWeb. try port 8089.


Thank you SO MUCH for the question and the answer. Just made my day.

So I suggest you accept the answer as it give the solution (was having the same problem, switching to port 8089 solved it)

0 Karma