<?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 log4j2 configuration for Splunk HEC on EC2 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/log4j2-configuration-for-Splunk-HEC-on-EC2/m-p/524751#M88608</link>
    <description>&lt;P&gt;I have my log4j2.xml as below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;Configuration status="info" name="example" packages="com.splunk.logging"&amp;gt;
    &amp;lt;Appenders&amp;gt;
        &amp;lt;SplunkHttp
                name="splunk"
                url="http://localhost:8088"
                token="sometoken"
                index="someindex"
                messageFormat="text"
                source="somesource"
                sourceType="log4j"
                batch_size_count="1"
                disableCertificateValidation="true"
        &amp;gt;

            &amp;lt;PatternLayout pattern="%m"/&amp;gt;
        &amp;lt;/SplunkHttp&amp;gt;

    &amp;lt;/Appenders&amp;gt;

    &amp;lt;Loggers&amp;gt;
        &amp;lt;Root level="INFO"&amp;gt;
            &amp;lt;AppenderRef ref="splunk"/&amp;gt;
        &amp;lt;/Root&amp;gt;
    &amp;lt;/Loggers&amp;gt;
&amp;lt;/Configuration&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set up Splunk with HEC on an EC2 instance. The same configuration works for a Splunk instance on my Windows machine.&lt;/P&gt;&lt;P&gt;I used tcpdump to trace packets on port 8088 and it seems there is no packet reaching to that port. Did I miss anything on the configuration?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2020 01:20:41 GMT</pubDate>
    <dc:creator>crippled-ankle</dc:creator>
    <dc:date>2020-10-15T01:20:41Z</dc:date>
    <item>
      <title>log4j2 configuration for Splunk HEC on EC2</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log4j2-configuration-for-Splunk-HEC-on-EC2/m-p/524751#M88608</link>
      <description>&lt;P&gt;I have my log4j2.xml as below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;Configuration status="info" name="example" packages="com.splunk.logging"&amp;gt;
    &amp;lt;Appenders&amp;gt;
        &amp;lt;SplunkHttp
                name="splunk"
                url="http://localhost:8088"
                token="sometoken"
                index="someindex"
                messageFormat="text"
                source="somesource"
                sourceType="log4j"
                batch_size_count="1"
                disableCertificateValidation="true"
        &amp;gt;

            &amp;lt;PatternLayout pattern="%m"/&amp;gt;
        &amp;lt;/SplunkHttp&amp;gt;

    &amp;lt;/Appenders&amp;gt;

    &amp;lt;Loggers&amp;gt;
        &amp;lt;Root level="INFO"&amp;gt;
            &amp;lt;AppenderRef ref="splunk"/&amp;gt;
        &amp;lt;/Root&amp;gt;
    &amp;lt;/Loggers&amp;gt;
&amp;lt;/Configuration&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set up Splunk with HEC on an EC2 instance. The same configuration works for a Splunk instance on my Windows machine.&lt;/P&gt;&lt;P&gt;I used tcpdump to trace packets on port 8088 and it seems there is no packet reaching to that port. Did I miss anything on the configuration?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 01:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log4j2-configuration-for-Splunk-HEC-on-EC2/m-p/524751#M88608</guid>
      <dc:creator>crippled-ankle</dc:creator>
      <dc:date>2020-10-15T01:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: log4j2 configuration for Splunk HEC on EC2</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log4j2-configuration-for-Splunk-HEC-on-EC2/m-p/524838#M88614</link>
      <description>&lt;P&gt;Have you checked your firewall?&amp;nbsp; Is Splunk listening on port 8088?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 12:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log4j2-configuration-for-Splunk-HEC-on-EC2/m-p/524838#M88614</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-15T12:33:45Z</dc:date>
    </item>
  </channel>
</rss>

