<?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 Not able to send logs from Docker container to Splunk using log4j2 and logback (any) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-send-logs-from-Docker-container-to-Splunk-using/m-p/490993#M83917</link>
    <description>&lt;P&gt;I am trying to push Springboot application (running in docker container) logs to Splunk using log4j2 and logback. For this setup, I am using SplunkHttp appender of log4j2 and HttpEventCollectorLogbackAppender for logback. But not able to push logs using HTTP Event Collector.&lt;/P&gt;

&lt;P&gt;I have done so far-&lt;/P&gt;

&lt;P&gt;1- Having HTTP Event Collector token for authorisation.&lt;BR /&gt;
2- I used curl command in container to verify connection and its working.&lt;BR /&gt;
3- Having log4j2 and logback both configuration in Springboot application.&lt;BR /&gt;
4- Injected self signed certificate in /usr/lib/jvm/java/jre/lib/security/cacerts using Dockerfile.&lt;BR /&gt;
5- Using splunk-library-javalogging-1.7.3 artifact for supporting HTTP Event Collector. I also used artifact 1.6.0/1.6.2.&lt;/P&gt;

&lt;P&gt;But I am not getting any success to push logs from running container to Splunk.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 04:37:11 GMT</pubDate>
    <dc:creator>kumavine</dc:creator>
    <dc:date>2019-11-19T04:37:11Z</dc:date>
    <item>
      <title>Not able to send logs from Docker container to Splunk using log4j2 and logback (any)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-send-logs-from-Docker-container-to-Splunk-using/m-p/490993#M83917</link>
      <description>&lt;P&gt;I am trying to push Springboot application (running in docker container) logs to Splunk using log4j2 and logback. For this setup, I am using SplunkHttp appender of log4j2 and HttpEventCollectorLogbackAppender for logback. But not able to push logs using HTTP Event Collector.&lt;/P&gt;

&lt;P&gt;I have done so far-&lt;/P&gt;

&lt;P&gt;1- Having HTTP Event Collector token for authorisation.&lt;BR /&gt;
2- I used curl command in container to verify connection and its working.&lt;BR /&gt;
3- Having log4j2 and logback both configuration in Springboot application.&lt;BR /&gt;
4- Injected self signed certificate in /usr/lib/jvm/java/jre/lib/security/cacerts using Dockerfile.&lt;BR /&gt;
5- Using splunk-library-javalogging-1.7.3 artifact for supporting HTTP Event Collector. I also used artifact 1.6.0/1.6.2.&lt;/P&gt;

&lt;P&gt;But I am not getting any success to push logs from running container to Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 04:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-send-logs-from-Docker-container-to-Splunk-using/m-p/490993#M83917</guid>
      <dc:creator>kumavine</dc:creator>
      <dc:date>2019-11-19T04:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to send logs from Docker container to Splunk using log4j2 and logback (any)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-send-logs-from-Docker-container-to-Splunk-using/m-p/490994#M83918</link>
      <description>&lt;P&gt;Hi @kumavine, what kind of errors are you hitting exactly ? Did you successfully test your connectivity to HEC ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 10:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-send-logs-from-Docker-container-to-Splunk-using/m-p/490994#M83918</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-11-19T10:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to send logs from Docker container to Splunk using log4j2 and logback (any)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-send-logs-from-Docker-container-to-Splunk-using/m-p/490995#M83919</link>
      <description>&lt;P&gt;You can use Log4j's SocketAppender.  In Splunk's settings create a TCP Data Input and then configure the SocketAppender to point to it.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 20:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-send-logs-from-Docker-container-to-Splunk-using/m-p/490995#M83919</guid>
      <dc:creator>rgoers</dc:creator>
      <dc:date>2019-11-22T20:51:10Z</dc:date>
    </item>
  </channel>
</rss>

