<?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: How do you filter windows logs by level? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445693#M77545</link>
    <description>&lt;P&gt;Filtering by blacklisting specific EventCodes works as well. Good thinking.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Dec 2018 08:30:14 GMT</pubDate>
    <dc:creator>whrg</dc:creator>
    <dc:date>2018-12-28T08:30:14Z</dc:date>
    <item>
      <title>How do you filter windows logs by level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445690#M77542</link>
      <description>&lt;P&gt;Is there any way to get only critical and error logs from Windows?&lt;/P&gt;

&lt;P&gt;I mean, Windows generates logs using different levels (Critical, Warning, Error, Information...) and I don't want the Information logs on Splunk, so I would like to configure the forwarder to not send them.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 21:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445690#M77542</guid>
      <dc:creator>crsupportddc</dc:creator>
      <dc:date>2018-12-26T21:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter windows logs by level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445691#M77543</link>
      <description>&lt;P&gt;Hello @crsupportddc,&lt;/P&gt;

&lt;P&gt;So I assume the Windows events (which are multiline) contain this line which you want to base your filter on:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Type=Information
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out this page on how to filter specific events: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.1/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;Discard specific events and keep the rest&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;On your heavy forwarder/indexer (whatever system comes after the Universal Forwarder), add the following lines to props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Application]
TRANSFORMS-filter = filter_information
[WinEventLog:Security]
TRANSFORMS-filter = filter_information
[WinEventLog:System]
TRANSFORMS-filter = filter_information
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;WinEventLog:Application, WinEventLog:Security and WinEventLog:System refer to the sourcetypes.&lt;/P&gt;

&lt;P&gt;And add the following lines to transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[filter_information]
REGEX = Type=Information
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do not forget to restart Splunk after making these changes.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 22:43:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445691#M77543</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-26T22:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter windows logs by level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445692#M77544</link>
      <description>&lt;P&gt;Thank you for the help.&lt;BR /&gt;
I managed to create a &lt;EM&gt;blacklist&lt;/EM&gt; and avoid some specific logs but I'll implement what you mentioned to completely ignore the Information logs.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 19:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445692#M77544</guid>
      <dc:creator>crsupportddc</dc:creator>
      <dc:date>2018-12-27T19:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you filter windows logs by level?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445693#M77545</link>
      <description>&lt;P&gt;Filtering by blacklisting specific EventCodes works as well. Good thinking.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 08:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-filter-windows-logs-by-level/m-p/445693#M77545</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-28T08:30:14Z</dc:date>
    </item>
  </channel>
</rss>

