<?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: Redirecting Log4j logs to Splunk in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Redirecting-Log4j-logs-to-Splunk/m-p/520469#M9304</link>
    <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/FormateventsforHTTPEventCollector#Format_events_for_HTTP_Event_Collector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/FormateventsforHTTPEventCollector#Format_events_for_HTTP_Event_Collector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Event format is very important. you need to incorporate your event in event attribute below:&lt;/P&gt;&lt;PRE&gt;curl -k -H "Authorization: Splunk 12345678-1234-1234-1234-1234567890AB" https://mysplunkserver.example.com:8088/services/collector/event -d '{"sourcetype": "my_sample_data", "event": "http auth ftw!"}'&lt;/PRE&gt;</description>
    <pubDate>Sun, 20 Sep 2020 08:47:01 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-09-20T08:47:01Z</dc:date>
    <item>
      <title>Redirecting Log4j logs to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Redirecting-Log4j-logs-to-Splunk/m-p/520184#M9303</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to redirect the logs generated by my java project to splunk. I am using below appenders to redirect the logs and created a HTTP Event token for the same. I am able to receive the simple message sent using curl as in splunk documentation for HEC. But not able to recieve the logs in splunk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;appender.mycomp.type = http&lt;BR /&gt;appender.mycomp.name = mycomp&lt;BR /&gt;appender.mycomp.url = http://localhost:8088/services/collector&lt;BR /&gt;appender.mycomp.token = 9548e361-xxxx-xxxx-xxxx-xxxxxxxxxxx&lt;BR /&gt;appender.mycomp.layout.type = PatternLayout&lt;BR /&gt;appender.mycomp.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n&lt;/P&gt;&lt;P&gt;Any other configuration required to receive the logs in Splunk 8.x .&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 17:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Redirecting-Log4j-logs-to-Splunk/m-p/520184#M9303</guid>
      <dc:creator>riswana</dc:creator>
      <dc:date>2020-09-17T17:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting Log4j logs to Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Redirecting-Log4j-logs-to-Splunk/m-p/520469#M9304</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/FormateventsforHTTPEventCollector#Format_events_for_HTTP_Event_Collector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/FormateventsforHTTPEventCollector#Format_events_for_HTTP_Event_Collector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Event format is very important. you need to incorporate your event in event attribute below:&lt;/P&gt;&lt;PRE&gt;curl -k -H "Authorization: Splunk 12345678-1234-1234-1234-1234567890AB" https://mysplunkserver.example.com:8088/services/collector/event -d '{"sourcetype": "my_sample_data", "event": "http auth ftw!"}'&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Sep 2020 08:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Redirecting-Log4j-logs-to-Splunk/m-p/520469#M9304</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-20T08:47:01Z</dc:date>
    </item>
  </channel>
</rss>

