<?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 Unable to connect Splunk HEC using https in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-connect-Splunk-HEC-using-https/m-p/488700#M83631</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;
I'm trying to push logs to Splunk using Splunk HTTP appender in Log4j. &lt;BR /&gt;
If I disable SSL in HTTP event Collector Global Settings, I can push the logs to Splunk successfully whereas if I enable SSL, I cannot see any logs. Is there some configuration missing as part of my log4j ? Please help. &lt;/P&gt;

&lt;P&gt;mule:log.splunk.url : &lt;A href="http://localhost:8088"&gt;http://localhost:8088&lt;/A&gt;   --&amp;gt; disabling SSL&lt;BR /&gt;
mule:log.splunk.url : &lt;A href="https://localhost:8088"&gt;https://localhost:8088&lt;/A&gt; --&amp;gt; enabling SSL&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;SplunkHttp name="splunk" url="${mule:log.splunk.url}" 
                token="${mule:log.splunk.token}" batch_size_count="1" disableCertificateValidation="true" &amp;gt;
             &amp;lt;JSONLayout complete="false" compact="false"&amp;gt;
                &amp;lt;KeyValuePair key="timestamp" value="$${date:MM-dd-yyyy}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_name" value="${mule:log.api.name}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_version" value="${mule:log.api.version}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_type" value="${mule:log.api.type}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_domain" value="${sys:domain}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_worker_index" value="${sys:worker.id}"/&amp;gt;
            &amp;lt;/JSONLayout&amp;gt; 
        &amp;lt;/SplunkHttp&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 21 Sep 2019 04:41:36 GMT</pubDate>
    <dc:creator>kamal1988</dc:creator>
    <dc:date>2019-09-21T04:41:36Z</dc:date>
    <item>
      <title>Unable to connect Splunk HEC using https</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-connect-Splunk-HEC-using-https/m-p/488700#M83631</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I'm trying to push logs to Splunk using Splunk HTTP appender in Log4j. &lt;BR /&gt;
If I disable SSL in HTTP event Collector Global Settings, I can push the logs to Splunk successfully whereas if I enable SSL, I cannot see any logs. Is there some configuration missing as part of my log4j ? Please help. &lt;/P&gt;

&lt;P&gt;mule:log.splunk.url : &lt;A href="http://localhost:8088"&gt;http://localhost:8088&lt;/A&gt;   --&amp;gt; disabling SSL&lt;BR /&gt;
mule:log.splunk.url : &lt;A href="https://localhost:8088"&gt;https://localhost:8088&lt;/A&gt; --&amp;gt; enabling SSL&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;SplunkHttp name="splunk" url="${mule:log.splunk.url}" 
                token="${mule:log.splunk.token}" batch_size_count="1" disableCertificateValidation="true" &amp;gt;
             &amp;lt;JSONLayout complete="false" compact="false"&amp;gt;
                &amp;lt;KeyValuePair key="timestamp" value="$${date:MM-dd-yyyy}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_name" value="${mule:log.api.name}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_version" value="${mule:log.api.version}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_type" value="${mule:log.api.type}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_domain" value="${sys:domain}"/&amp;gt;
                &amp;lt;KeyValuePair key="api_worker_index" value="${sys:worker.id}"/&amp;gt;
            &amp;lt;/JSONLayout&amp;gt; 
        &amp;lt;/SplunkHttp&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Sep 2019 04:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-connect-Splunk-HEC-using-https/m-p/488700#M83631</guid>
      <dc:creator>kamal1988</dc:creator>
      <dc:date>2019-09-21T04:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect Splunk HEC using https</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-connect-Splunk-HEC-using-https/m-p/488701#M83632</link>
      <description>&lt;P&gt;from Splunk docs inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;enableSSL = [0|1]
* Whether or not the HTTP Event Collector uses SSL.
* HEC shares SSL settings with the Splunk management server and cannot have
  SSL enabled when the Splunk management server has SSL disabled.
* Default: 1 (enabled).

serverCert = 
* The full path to the server certificate PEM format file.
* The same file may also contain a private key.
* The Splunk software automatically generates certificates when it first
  starts.
* You may replace the auto-generated certificate with your own certificate.
* Default: $SPLUNK_HOME/etc/auth/server.pem.

sslPassword = 
* The server certificate password.
* Initially set to a plain-text password.
* Upon first use, Splunk software encrypts and rewrites the password.
* Default: "password".
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you have to configure above under stanza  [http://]  on the Splunk Enterprise where you have enabled HEC.&lt;/P&gt;

&lt;P&gt;No point having Splunk internal certificates as sslPassword is known to all. Try to use 3rd party certificates.&lt;/P&gt;

&lt;P&gt;refer below if you have any doubts.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/462131/securing-http-event-collector.html"&gt;https://answers.splunk.com/answers/462131/securing-http-event-collector.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2019 12:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-connect-Splunk-HEC-using-https/m-p/488701#M83632</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2019-09-21T12:50:20Z</dc:date>
    </item>
  </channel>
</rss>

