<?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: Why am I getting error &amp;quot;No appropriate protocol (protocol is disabled or cipher suites are inappropriate)&amp;quot; running a search through the Splunk Java SDK? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202805#M58871</link>
    <description>&lt;P&gt;You'll want to change the scheme back to https in your .splunkrc.&lt;/P&gt;

&lt;P&gt;If you're using Oracle JDK try commenting out the following line from your java.security file.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;#jdk.tls.disabledAlgorithms=SSLv3&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I'm running CentOS 7 and modifying this line from &lt;B&gt;/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/security/java.security&lt;/B&gt; on the default OpenJDK install worked for me.&lt;/P&gt;

&lt;P&gt;From:&lt;BR /&gt;
&lt;CODE&gt;jdk.tls.disabledAlgorithms=SSLv3, MD5withRSA, DH keySize &amp;lt; 768&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;To:&lt;BR /&gt;
&lt;CODE&gt;jdk.tls.disabledAlgorithms=MD5withRSA, DH keySize &amp;lt; 768&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The SDK uses SSLv3 by default which is disabled in the security settings.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:56:22 GMT</pubDate>
    <dc:creator>shaskell_splunk</dc:creator>
    <dc:date>2020-09-29T09:56:22Z</dc:date>
    <item>
      <title>Why am I getting error "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)" running a search through the Splunk Java SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202802#M58868</link>
      <description>&lt;P&gt;I am getting the following error when I am running a search through the Splunk Java SDK:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;java.lang.RuntimeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am using &lt;STRONG&gt;splunk-sdk-java-1.5.0&lt;/STRONG&gt; and ran the command: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;java -jar dist/examples/search.jar "sourcetype=SplunkRabbitMQ_messaging | spath input=msg_body | where '3' &amp;gt; 0" --output_mode=csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jun 2016 08:03:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202802#M58868</guid>
      <dc:creator>maximus_reborn</dc:creator>
      <dc:date>2016-06-10T08:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)" running a search through the Splunk Java SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202803#M58869</link>
      <description>&lt;P&gt;Have a look at this thread.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/209379/no-appropriate-protocol-protocol-is-disabled-or-ci.html"&gt;https://answers.splunk.com/answers/209379/no-appropriate-protocol-protocol-is-disabled-or-ci.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 16:20:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202803#M58869</guid>
      <dc:creator>shaskell_splunk</dc:creator>
      <dc:date>2016-06-10T16:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)" running a search through the Splunk Java SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202804#M58870</link>
      <description>&lt;P&gt;Hi shaskell,&lt;BR /&gt;
Thanks I went through but I am getting the following error now. &lt;BR /&gt;
I am using SDK 1.5.0 and JRE7.&lt;BR /&gt;
Do you know how to resolve it? I have changed https to http in .splunkrc file. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;java.lang.RuntimeException: Connection reset
at com.splunk.HttpService.send(HttpService.java:427)
at com.splunk.Service.send(Service.java:1293)
at com.splunk.HttpService.post(HttpService.java:308)
at com.splunk.Service.login(Service.java:1122)
at com.splunk.Service.login(Service.java:1101)
at com.splunk.Service.connect(Service.java:187)
at com.splunk.examples.search.Program.run(Unknown Source)
at com.splunk.examples.search.Program.main(Unknown Source)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:196)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:690)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:661)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1324)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
at com.splunk.HttpService.send(HttpService.java:425)
... 7 more
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Jun 2016 02:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202804#M58870</guid>
      <dc:creator>maximus_reborn</dc:creator>
      <dc:date>2016-06-11T02:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)" running a search through the Splunk Java SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202805#M58871</link>
      <description>&lt;P&gt;You'll want to change the scheme back to https in your .splunkrc.&lt;/P&gt;

&lt;P&gt;If you're using Oracle JDK try commenting out the following line from your java.security file.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;#jdk.tls.disabledAlgorithms=SSLv3&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I'm running CentOS 7 and modifying this line from &lt;B&gt;/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.el7_2.x86_64/jre/lib/security/java.security&lt;/B&gt; on the default OpenJDK install worked for me.&lt;/P&gt;

&lt;P&gt;From:&lt;BR /&gt;
&lt;CODE&gt;jdk.tls.disabledAlgorithms=SSLv3, MD5withRSA, DH keySize &amp;lt; 768&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;To:&lt;BR /&gt;
&lt;CODE&gt;jdk.tls.disabledAlgorithms=MD5withRSA, DH keySize &amp;lt; 768&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The SDK uses SSLv3 by default which is disabled in the security settings.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202805#M58871</guid>
      <dc:creator>shaskell_splunk</dc:creator>
      <dc:date>2020-09-29T09:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)" running a search through the Splunk Java SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202806#M58872</link>
      <description>&lt;P&gt;Actually, when i am using https and did enableSplunkdSSL = true, it did not work but when i did http and did enableSplunkdSSL = false it worked. I commented the required line in java.security also.&lt;BR /&gt;
I know it's not recommended but do you have any workaround?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 07:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202806#M58872</guid>
      <dc:creator>maximus_reborn</dc:creator>
      <dc:date>2016-06-11T07:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)" running a search through the Splunk Java SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202807#M58873</link>
      <description>&lt;P&gt;Also, &lt;CODE&gt;sourcetype=SplunkRabbitMQ_messaging | spath input=msg_body | where '3' &amp;gt; 0&lt;/CODE&gt; is not working though it did in Web. &lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
(Not working)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;java -jar dist/examples/search_oneshot.jar "sourcetype=SplunkRabbitMQ_messaging | spath input=msg_body | where '3' &amp;gt; 0" --output_mode=json
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(Working)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;java -jar dist/examples/search_oneshot.jar "search * |  tail 10" --output_mode=json
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any way to use sourcetype in CLI? I am getting Unknown search command 'sourcetype'. It worked in Splunk Web.&lt;/P&gt;

&lt;P&gt;Update: By putting 'search' ahead of the command, it worked.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 07:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202807#M58873</guid>
      <dc:creator>maximus_reborn</dc:creator>
      <dc:date>2016-06-11T07:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)" running a search through the Splunk Java SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202808#M58874</link>
      <description>&lt;P&gt;I had the same issue with the Splunk Java SDK 1.5 and Java8. Adding the following line before the connect() fixed it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Aug 2016 15:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202808#M58874</guid>
      <dc:creator>GregZillgitt</dc:creator>
      <dc:date>2016-08-12T15:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)" running a search through the Splunk Java SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202809#M58875</link>
      <description>&lt;P&gt;While trying to solve this issue I found all sorts of stuff about swapping java versions and performing custom builds of the SDK. This was the solution that worked for me. Thank you Greg!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:22:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-No-appropriate-protocol-protocol-is/m-p/202809#M58875</guid>
      <dc:creator>gesangbaer</dc:creator>
      <dc:date>2017-01-25T20:22:43Z</dc:date>
    </item>
  </channel>
</rss>

