<?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: Log4j Selective logging in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Log4j-Selective-logging/m-p/532509#M9560</link>
    <description>&lt;P&gt;Okay, i found a way to do this. I used RegexFilter within log4j2's SplunkHttp Appender to capture very specific logs and only those now flow to Splunk.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 18:08:47 GMT</pubDate>
    <dc:creator>viranis</dc:creator>
    <dc:date>2020-12-09T18:08:47Z</dc:date>
    <item>
      <title>Log4j Selective logging</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Log4j-Selective-logging/m-p/531903#M9559</link>
      <description>&lt;P&gt;I have a setup where I have configured Log4j2 within a springboot service and have setup HEC on Splunk. The setup is working brilliantly where the logs are pushed to splunk without any issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, is there a mechanism where i can control the kinds of logs pushed via HEC ? For example, my log file prints a lot of information like queries, logged in user data, application's exception stack traces, etc. and currently everything goes to Splunk. Is there a way where I can control to push maybe just the exceptions or just the logged in user info, etc ? Is this possible ?&lt;/P&gt;&lt;P&gt;If not, are there any other options that I should explore ?&lt;/P&gt;&lt;P&gt;Appreciate in advance&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Log4j-Selective-logging/m-p/531903#M9559</guid>
      <dc:creator>viranis</dc:creator>
      <dc:date>2020-12-03T18:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Log4j Selective logging</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Log4j-Selective-logging/m-p/532509#M9560</link>
      <description>&lt;P&gt;Okay, i found a way to do this. I used RegexFilter within log4j2's SplunkHttp Appender to capture very specific logs and only those now flow to Splunk.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 18:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Log4j-Selective-logging/m-p/532509#M9560</guid>
      <dc:creator>viranis</dc:creator>
      <dc:date>2020-12-09T18:08:47Z</dc:date>
    </item>
  </channel>
</rss>

