<?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: Heavy Forwarder, Syslog filter in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Heavy-Forwarder-Syslog-filter/m-p/78472#M16063</link>
    <description>&lt;P&gt;here is your answer :  Keep specific events and discard the rest&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/Deploy/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/Deploy/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here is an example, please time the regex to your events.&lt;BR /&gt;
In props.conf, set the TRANSFORMS rule for any syslog soucretype&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[syslog]&lt;BR /&gt;
TRANSFORMS-filtersyslog= setnull,keeponlyloginlogout&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
Create a corresponding stanza in transforms.conf.&lt;BR /&gt;
`&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[keeponlyloginlogout]&lt;BR /&gt;
REGEX = (login|logout)&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;
`&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2012 16:39:25 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2012-10-03T16:39:25Z</dc:date>
    <item>
      <title>Heavy Forwarder, Syslog filter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Heavy-Forwarder-Syslog-filter/m-p/78471#M16062</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;How can I create a filter that sends just Syslog login and logout events? I have a Syslog on different machines that send syslog events to each their own forwarders and then come to indexer. How can I create a filter that has as sourcetype syslog?&lt;/P&gt;

&lt;P&gt;thanks in advance,&lt;BR /&gt;
Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2012 16:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Heavy-Forwarder-Syslog-filter/m-p/78471#M16062</guid>
      <dc:creator>benedetto</dc:creator>
      <dc:date>2012-10-03T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Heavy Forwarder, Syslog filter</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Heavy-Forwarder-Syslog-filter/m-p/78472#M16063</link>
      <description>&lt;P&gt;here is your answer :  Keep specific events and discard the rest&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/Deploy/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/Deploy/Routeandfilterdatad#Keep_specific_events_and_discard_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here is an example, please time the regex to your events.&lt;BR /&gt;
In props.conf, set the TRANSFORMS rule for any syslog soucretype&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[syslog]&lt;BR /&gt;
TRANSFORMS-filtersyslog= setnull,keeponlyloginlogout&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
Create a corresponding stanza in transforms.conf.&lt;BR /&gt;
`&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[keeponlyloginlogout]&lt;BR /&gt;
REGEX = (login|logout)&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;
`&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2012 16:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Heavy-Forwarder-Syslog-filter/m-p/78472#M16063</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-10-03T16:39:25Z</dc:date>
    </item>
  </channel>
</rss>

