<?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: Syslog-ng filter filter props/transforms for data routing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-ng-filter-filter-props-transforms-for-data-routing/m-p/446757#M77726</link>
    <description>&lt;P&gt;Thank you Casello,&lt;/P&gt;

&lt;P&gt;That is the syslog file and not sure what kind of regex i have to build. &lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 17:28:23 GMT</pubDate>
    <dc:creator>Splunk_citizen</dc:creator>
    <dc:date>2018-09-10T17:28:23Z</dc:date>
    <item>
      <title>Syslog-ng filter filter props/transforms for data routing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-ng-filter-filter-props-transforms-for-data-routing/m-p/446755#M77724</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;Earlier we were using central syslog-ng server to capture all /var/log/messages from hosts  now we have installed UF on unix servers and we are going with UF monitoring instead of syslog route&lt;BR /&gt;
 We dont  want capture all events in /var/log/messages, below ones is previous filters in syslog-ng.conf files in host.&lt;BR /&gt;
So now my question is how i can write a transform/props to reflects same like below  syslog-ng.conf file and deploy locally in forwards i  order to capture /var/log/messages to monitor.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# destinations
destination d_sshpam { file("/var/adm/syslog/sshd.log"); };
destination d_sshpamb { file("/var/adm/syslog/sshd.log"); };
#destination d_sapdelete { file("/dev/null"); };
#destination d_sapruntime { file("/dev/null"); };
#destination d_emfbackground { file("/dev/null"); };
destination d_messages { file("/var/adm/syslog/syslog.log"); };

destination d_logserver {syslog("xx.xx.xx.xx" transport(tcp)); };

log { source(s_local); filter(f_sshpam); destination(d_sshpam); flags(final); };

log { source(s_local); filter(f_sshpamb); destination(d_sshpamb); flags(final); };

#log { source(s_local); filter(f_sapdelete); destination(d_sapdelete); flags(final); };
#
#log { source(s_local); filter(f_sapruntime); destination(d_sapruntime); flags(final); };

#log { source(s_local); filter(f_emfbackground); destination(d_emfbackground); flags(final); };

log {
source(s_local);

destination(d_messages);
destination(d_logserver);
};
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Sep 2018 19:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-ng-filter-filter-props-transforms-for-data-routing/m-p/446755#M77724</guid>
      <dc:creator>Splunk_citizen</dc:creator>
      <dc:date>2018-09-09T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog-ng filter filter props/transforms for data routing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-ng-filter-filter-props-transforms-for-data-routing/m-p/446756#M77725</link>
      <description>&lt;P&gt;Hi Splunk_citizen,&lt;BR /&gt;
you can filter data on Indexers or on Heavy Forwarders.&lt;BR /&gt;
To filter events you can see at &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Forwarding/Routeandfilterdatad" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;
In easy words, you have to:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;identify regexes of the logs you want to index or to discard,&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;indert in props.con the following row in the sourcetype of your syslog:&lt;/P&gt;

&lt;P&gt;[my_sourcetype]&lt;BR /&gt;
TRANSFORMS-filter = setnull,setparsing&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;insert in transforms.conf the following rows (beware that the stanza's names are the same of     TRANSFORMS command:&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;
[setparsing]&lt;BR /&gt;
REGEX = my_regex&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-ng-filter-filter-props-transforms-for-data-routing/m-p/446756#M77725</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T21:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog-ng filter filter props/transforms for data routing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-ng-filter-filter-props-transforms-for-data-routing/m-p/446757#M77726</link>
      <description>&lt;P&gt;Thank you Casello,&lt;/P&gt;

&lt;P&gt;That is the syslog file and not sure what kind of regex i have to build. &lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 17:28:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-ng-filter-filter-props-transforms-for-data-routing/m-p/446757#M77726</guid>
      <dc:creator>Splunk_citizen</dc:creator>
      <dc:date>2018-09-10T17:28:23Z</dc:date>
    </item>
  </channel>
</rss>

