<?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 How to enforce TLS v1.2 in Java program talking to Splunk server via log4j2 ? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-enforce-TLS-v1-2-in-Java-program-talking-to-Splunk-server/m-p/398192#M6826</link>
    <description>&lt;P&gt;I am trying to get our Java client application talking to a Splunk server provided by one of our vendors.&lt;BR /&gt;
The communication is supposed to be simple. Our client app will send just plain text messages once a while.&lt;BR /&gt;
I am using log4j2 as a platform for communication with the Splunk server.&lt;BR /&gt;
Below are Splunk related appender and logger defined in the log4j2.xml file.&lt;BR /&gt;
Vendor claims they do not receive messages from us. &lt;BR /&gt;
However they see some traffic originating from our server where the application runs.&lt;BR /&gt;
They suggest to enforce TLS v1.2 protocol on communication with their Splunk server.&lt;BR /&gt;
How can we do that?&lt;BR /&gt;
log4j2 configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Appenders&amp;gt;
    &amp;lt;Http name="httpSplunk"
                url="...some.server.com:8088/services/collector/event"
                token="some-token"
                host="$${env:COMPUTERNAME}"
                index=""
                source=""
                sourcetype=""
                middleware=""
                batch_size_bytes="10240"
                batch_size_count="10"
                batch_interval="1000"
                disableCertificateValidation="true"&amp;gt;
        &amp;lt;PatternLayout pattern="%m"/&amp;gt;
    &amp;lt;/Http&amp;gt;
&amp;lt;/Appenders&amp;gt;
&amp;lt;Loggers&amp;gt;
    &amp;lt;Root level="warn"&amp;gt;
        &amp;lt;AppenderRef ref="httpSplunk"/&amp;gt;
    &amp;lt;/Root&amp;gt;
    &amp;lt;Logger name="splunk.Ellenby" level="info"&amp;gt;
        &amp;lt;AppenderRef ref="httpSplunk"/&amp;gt;
    &amp;lt;/Logger&amp;gt;
&amp;lt;/Loggers&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
Maciej Kwiecinski&lt;/P&gt;</description>
    <pubDate>Mon, 14 May 2018 20:39:05 GMT</pubDate>
    <dc:creator>maciej_kw</dc:creator>
    <dc:date>2018-05-14T20:39:05Z</dc:date>
    <item>
      <title>How to enforce TLS v1.2 in Java program talking to Splunk server via log4j2 ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-enforce-TLS-v1-2-in-Java-program-talking-to-Splunk-server/m-p/398192#M6826</link>
      <description>&lt;P&gt;I am trying to get our Java client application talking to a Splunk server provided by one of our vendors.&lt;BR /&gt;
The communication is supposed to be simple. Our client app will send just plain text messages once a while.&lt;BR /&gt;
I am using log4j2 as a platform for communication with the Splunk server.&lt;BR /&gt;
Below are Splunk related appender and logger defined in the log4j2.xml file.&lt;BR /&gt;
Vendor claims they do not receive messages from us. &lt;BR /&gt;
However they see some traffic originating from our server where the application runs.&lt;BR /&gt;
They suggest to enforce TLS v1.2 protocol on communication with their Splunk server.&lt;BR /&gt;
How can we do that?&lt;BR /&gt;
log4j2 configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Appenders&amp;gt;
    &amp;lt;Http name="httpSplunk"
                url="...some.server.com:8088/services/collector/event"
                token="some-token"
                host="$${env:COMPUTERNAME}"
                index=""
                source=""
                sourcetype=""
                middleware=""
                batch_size_bytes="10240"
                batch_size_count="10"
                batch_interval="1000"
                disableCertificateValidation="true"&amp;gt;
        &amp;lt;PatternLayout pattern="%m"/&amp;gt;
    &amp;lt;/Http&amp;gt;
&amp;lt;/Appenders&amp;gt;
&amp;lt;Loggers&amp;gt;
    &amp;lt;Root level="warn"&amp;gt;
        &amp;lt;AppenderRef ref="httpSplunk"/&amp;gt;
    &amp;lt;/Root&amp;gt;
    &amp;lt;Logger name="splunk.Ellenby" level="info"&amp;gt;
        &amp;lt;AppenderRef ref="httpSplunk"/&amp;gt;
    &amp;lt;/Logger&amp;gt;
&amp;lt;/Loggers&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
Maciej Kwiecinski&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 20:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-enforce-TLS-v1-2-in-Java-program-talking-to-Splunk-server/m-p/398192#M6826</guid>
      <dc:creator>maciej_kw</dc:creator>
      <dc:date>2018-05-14T20:39:05Z</dc:date>
    </item>
  </channel>
</rss>

