<?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 to rsyslog in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/576527#M101871</link>
    <description>&lt;P&gt;Thanks so much for the very informative reply.&lt;/P&gt;&lt;P&gt;I'll try out your suggestions which I'm sure will do the trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My setup is such that Logs come in from external clients and all these (including the logs of the local rsyslog server itself)&amp;nbsp; go to a splunkforwarder.&amp;nbsp; Well for now it's just the audit logs that are forwarded, but all logs including those of the log server are collected under directories.&lt;/P&gt;&lt;P&gt;So in effect the local logs per se, are also going to land up under a directory under syslog-to-splunk.&lt;/P&gt;&lt;P&gt;Your config makes good sense to me. Once again, thanks for that. I'll try it out and update here.&lt;/P&gt;</description>
    <pubDate>Sun, 28 Nov 2021 13:23:38 GMT</pubDate>
    <dc:creator>dmed</dc:creator>
    <dc:date>2021-11-28T13:23:38Z</dc:date>
    <item>
      <title>syslog-ng to rsyslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/576489#M101865</link>
      <description>&lt;P&gt;Hi dear splunk community,&lt;/P&gt;&lt;P&gt;Can someone help me to convert/translate the following syslog-ng config to the corresponding rsyslog server side config please ?&lt;/P&gt;&lt;P&gt;The standard syslog-ng.conf file simply includes the statements below which are in a file in the conf.d dir like so:&lt;/P&gt;&lt;P&gt;@include "/etc/syslog-ng/conf.d/*.conf"&lt;/P&gt;&lt;P&gt;I'd really appreciate it.&amp;nbsp; It doesn't have to be perfect or exact or even completely converted, as long as most of it can be&amp;nbsp; translated...the main concerns being the audit logs and all the rest of the program logs...&lt;/P&gt;&lt;P&gt;Thanks so very much,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;source s_remote { syslog(port(514), transport(tcp), flags(), max-connections(100),log-fetch-limit(100),log_iw_size(20000)); };&lt;/P&gt;&lt;P&gt;destination d_kern { file("/var/log/syslog-to-splunk/$HOST/kernel.log" create-dirs(yes)); };&lt;BR /&gt;destination d_mail { file("/var/log/syslog-to-splunk/$HOST/mail.log" create-dirs(yes)); };&lt;BR /&gt;destination d_daemon { file("/var/log/syslog-to-splunk/$HOST/daemon.log" create-dirs(yes)); };&lt;BR /&gt;destination d_auth { file("/var/log/syslog-to-splunk/$HOST/auth.log" create-dirs(yes)); };&lt;BR /&gt;destination d_cron { file("/var/log/syslog-to-splunk/$HOST/cron.log" create-dirs(yes)); };&lt;BR /&gt;destination d_security { file("/var/log/syslog-to-splunk/$HOST/audit.log" create-dirs(yes)); };&lt;BR /&gt;# All else.&lt;BR /&gt;destination d_rest { file("/var/log/syslog-to-splunk/$HOST/program/$PROGRAM.log" create-dirs(yes)); };&lt;/P&gt;&lt;P&gt;filter f_kern { facility(kern); };&lt;BR /&gt;filter f_mail { facility(mail); };&lt;BR /&gt;filter f_daemon { facility(daemon, user, syslog); };&lt;BR /&gt;filter f_auth { facility(auth, authpriv, security); };&lt;BR /&gt;filter f_cron { facility(cron); };&lt;BR /&gt;filter f_security { facility(kern, auth, authpriv, security, local7); };&lt;BR /&gt;filter f_rest { not facility(auth, authpriv, cron, kern, mail, user, security, syslog); };&lt;/P&gt;&lt;P&gt;log { source(s_remote); filter(f_kern); destination(d_kern); };&lt;BR /&gt;log { source(s_remote); filter(f_mail); destination(d_mail); };&lt;BR /&gt;log { source(s_remote); filter(f_daemon); destination(d_daemon); };&lt;BR /&gt;log { source(s_remote); filter(f_auth); destination(d_auth); };&lt;BR /&gt;log { source(s_remote); filter(f_cron); destination(d_cron); };&lt;BR /&gt;log { source(s_remote); filter(f_security); destination(d_security); };&lt;BR /&gt;log { source(s_remote); filter(f_rest); destination(d_rest); };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 19:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/576489#M101865</guid>
      <dc:creator>dmed</dc:creator>
      <dc:date>2021-11-27T19:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: syslog-ng to rsyslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/576521#M101870</link>
      <description>&lt;P&gt;It's more of a question for rsyslog mailing list, not exactly a splunk one &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; But we'll see...&lt;/P&gt;&lt;P&gt;One caveat - if you use my supplied config as pasted into an existing config on your system you might get some issues with local logs interfering with received ones. If you use the config as the only configuration directives, you might lose local logging ability. You might simply want to run two different syslog daemons - system-supplied one for local logging and a collecting one for... well, collecting events from remote systems. Your mileage may vary.&lt;/P&gt;&lt;P&gt;The beginning is quite easy to translate. Just do&lt;/P&gt;&lt;PRE&gt;module(load="imptcp")
input(type="imptcp" port="514")&lt;/PRE&gt;&lt;P&gt;I'm not sure what the parameters in syslog-ng tcp input definition do, so you might want to tweak some parameters to the input call according to &lt;A href="https://www.rsyslog.com/doc/v8-stable/configuration/modules/imptcp.html" target="_blank" rel="noopener"&gt;https://www.rsyslog.com/doc/v8-stable/configuration/modules/imptcp.html&lt;/A&gt; but for starters this will do.&lt;/P&gt;&lt;P&gt;Then you have the "filer and write" part of your config.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;template(name="kernfile" type="string" string="/var/log/syslog-to-splunk/%hostname%/kernel.log")&lt;BR /&gt;template(name="mailfile" type="string" string="/var/log/syslog-to-splunk/%hostname%/mail.log")&lt;BR /&gt;[...]&lt;BR /&gt;template(name="defaultname" type="string" string="/var/log/syslog-to-splunk/%hostname%/program/%programname%.log")&lt;/PRE&gt;&lt;P&gt;Then you'd only have to do&lt;/P&gt;&lt;PRE&gt;kern.* action(type="omfile" dynafile="kernfile")&lt;BR /&gt;mail.* action(type="omfile" dynafile="mailfile")&lt;/PRE&gt;&lt;P&gt;And so on. In order to match multiple facilities, you separate them with a comma, so you can do it like that:&lt;/P&gt;&lt;PRE&gt;auth,authpriv,security.* action(...)&lt;/PRE&gt;&lt;P&gt;The only other trick we have to pull here is the last - default - rule which should match only those facilities that haven't been matched earlier. So we have to explicitly match only severity "none" in those facilities.&lt;/P&gt;&lt;PRE&gt;*.*;auth, authpriv, cron, kern, mail, user, security, syslog.none action(type="omfile" dynafile="defaultfile")&lt;/PRE&gt;&lt;P&gt;Mind you, that's a relatively simple rsyslog config. You can do so much more with rsyslog. Enrich your events, filter them and even send them straight to HEC.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 10:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/576521#M101870</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-28T10:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: syslog-ng to rsyslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/576527#M101871</link>
      <description>&lt;P&gt;Thanks so much for the very informative reply.&lt;/P&gt;&lt;P&gt;I'll try out your suggestions which I'm sure will do the trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My setup is such that Logs come in from external clients and all these (including the logs of the local rsyslog server itself)&amp;nbsp; go to a splunkforwarder.&amp;nbsp; Well for now it's just the audit logs that are forwarded, but all logs including those of the log server are collected under directories.&lt;/P&gt;&lt;P&gt;So in effect the local logs per se, are also going to land up under a directory under syslog-to-splunk.&lt;/P&gt;&lt;P&gt;Your config makes good sense to me. Once again, thanks for that. I'll try it out and update here.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 13:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/576527#M101871</guid>
      <dc:creator>dmed</dc:creator>
      <dc:date>2021-11-28T13:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: syslog-ng to rsyslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/577223#M101959</link>
      <description>&lt;P&gt;Hi PickleRick, Sorry for the delay. I just want to confirm your config is working fine for me. I appreciate your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll start using the rsyslog forums at&amp;nbsp;&lt;A href="https://thwack.solarwinds.com/product-forums/loggly/" target="_blank"&gt;https://thwack.solarwinds.com/product-forums/loggly/&lt;/A&gt;&amp;nbsp;and / or rsyslog.com forums ( if they even exist &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) going forward...&lt;/P&gt;&lt;P&gt;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 13:51:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/577223#M101959</guid>
      <dc:creator>dmed</dc:creator>
      <dc:date>2021-12-03T13:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: syslog-ng to rsyslog</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/577232#M101961</link>
      <description>&lt;P&gt;Solarwinds have nothing to do with rsyslog.&lt;/P&gt;&lt;P&gt;Rsyslog has a good old-fashioned mailing list. &lt;A href="https://lists.adiscon.net/mailman/listinfo/rsyslog" target="_blank"&gt;https://lists.adiscon.net/mailman/listinfo/rsyslog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, for some reason you have to subscribe to see archives.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 14:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syslog-ng-to-rsyslog/m-p/577232#M101961</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-12-03T14:33:05Z</dc:date>
    </item>
  </channel>
</rss>

