<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#0050d0">
    Dont forget to leave the mailing list on the list of recips :-)<br>
    <br>
    Anyway, its still commented out in your log {} block. If the log
    block has no source, it wont log anything.<br>
    <div>log {</div>
    <div># &nbsp; &nbsp;source(src_eventdb);</div>
    <div>&nbsp; &nbsp; filter(f_at_least_warn);</div>
    <div># &nbsp; &nbsp; filter(f_syslog);</div>
    <div>&nbsp; &nbsp; destination(d_eventdb);</div>
    <div>};<br>
      <br>
    </div>
    <br>
    -Patrick<br>
    <br>
    <br>
    <br>
    Sent: Mon Sep 19 2011 14:43:08 GMT-0600 (MST)<br>
    From: rek2 <a class="moz-txt-link-rfc2396E" href="mailto:rek2gnulinux@gmail.com">&lt;rek2gnulinux@gmail.com&gt;</a><br>
    To: Patrick H. <a class="moz-txt-link-rfc2396E" href="mailto:syslogng@feystorm.net">&lt;syslogng@feystorm.net&gt;</a> <br>
    Subject: Re: [syslog-ng] Problem sending logs to central log
    server..
    <blockquote
cite="mid:CAL+4sRJAQ=xuhb5a5-pVnxKErj-ZGqNJaizMsi74vOjmsbWrTA@mail.gmail.com"
      type="cite">Hi Patrick, thanks for your reply, yes you right sorry
      I did the copy and paste before I uncomented some lines since Im
      testing here and there..
      <div><br>
      </div>
      <div>this is how I have it now.. the last part:</div>
      <div><br>
      </div>
      <div>&nbsp;#syslog-ng2mysql destinations
        <div><br>
        </div>
        <div>source src_eventdb {</div>
        <div>&nbsp; &nbsp; unix-stream("/dev/log");</div>
        <div>&nbsp; &nbsp; udp(ip(0.0.0.0) port(514));</div>
        <div>};</div>
        <div><br>
        </div>
        <div>destination d_eventdb {</div>
        <div>&nbsp; &nbsp; pipe(</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; "/usr/local/icinga/var/rw/syslog-ng.pipe",</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp;
template("$HOST\t$SOURCEIP\t$PRI\t$YEAR-$MONTH-$DAY\t$HOUR:$MIN:$SEC\t$PROGRAM\t$MSG\n")</div>
        <div>&nbsp; &nbsp; &nbsp; &nbsp; template_escape(no)</div>
        <div>&nbsp; &nbsp; );</div>
        <div>};</div>
        <div><br>
        </div>
        <div>filter f_at_least_warn {</div>
        <div># &nbsp; &nbsp;level(warn..emerg);</div>
        <div># &nbsp; &nbsp; level(notice..emerg);</div>
        <div>&nbsp; &nbsp; &nbsp;level(info, notice, warn, crit, err, debug);</div>
        <div>};</div>
        <div><br>
        </div>
        <div>log {</div>
        <div># &nbsp; &nbsp;source(src_eventdb);</div>
        <div>&nbsp; &nbsp; filter(f_at_least_warn);</div>
        <div># &nbsp; &nbsp; filter(f_syslog);</div>
        <div>&nbsp; &nbsp; destination(d_eventdb);</div>
        <div>};</div>
        <div><br>
        </div>
        <div>#log {</div>
        <div># &nbsp; &nbsp; &nbsp; &nbsp;source(src_eventdb);</div>
        <div># &nbsp; &nbsp; &nbsp; &nbsp;filter(f_auth);</div>
        <div># &nbsp; &nbsp; &nbsp; &nbsp;destination(d_eventdb);</div>
        <div>#};</div>
        <div><br>
        </div>
        <br>
        <div class="gmail_quote">2011/9/19 Patrick H. <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:syslogng@feystorm.net">syslogng@feystorm.net</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div bgcolor="#ffffff" text="#0050d0"> In your server
              config, the only listener you have on udp port 514 is
              defined in src_eventdb, and all src_eventdb entries are
              commented out.<br>
              <br>
              -Patrick<br>
              <br>
              <br>
              Sent: Mon Sep 19 2011 11:40:15 GMT-0600 (MST)<br>
              From: rek2 <a moz-do-not-send="true"
                href="mailto:rek2gnulinux@gmail.com" target="_blank">&lt;rek2gnulinux@gmail.com&gt;</a><br>
              To: <a moz-do-not-send="true"
                href="mailto:syslog-ng@lists.balabit.hu" target="_blank">syslog-ng@lists.balabit.hu</a>
              <br>
              Subject: [syslog-ng] Problem sending logs to central log
              server..
              <blockquote type="cite">
                <div>
                  <div class="h5">Hello, I'm trying to sent all my logs
                    from one openbsd server with syslog-ng to a linux
                    ubuntu central log server also with syslog-ng of
                    course but only the syslog-ng logs are been logged..
                    <div>also when I do a "logger test" for example it
                      gets log locally but not remotely to the log
                      server...</div>
                    <div>here are my configs:</div>
                    <div><br>
                    </div>
                    <div>for the log server is basically the defaul of
                      ubuntu with my addtions at the end.. you will see</div>
                    <div>some commented is me trying to fix this issue.</div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div>
                      <div>cat syslog-ng/syslog-ng.conf&nbsp;</div>
                      <div>#</div>
                      <div># Configuration file for syslog-ng under
                        Debian</div>
                      <div>#</div>
                      <div># attempts at reproducing default syslog
                        behavior</div>
                      <div><br>
                      </div>
                      <div> # the standard syslog levels are (in
                        descending order of priority):</div>
                      <div># emerg alert crit err warning notice info
                        debug</div>
                      <div># the aliases "error", "panic", and "warn"
                        are deprecated</div>
                      <div># the "none" priority found in the original
                        syslogd configuration is</div>
                      <div># only used in internal messages created by
                        syslogd</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>######</div>
                      <div># options</div>
                      <div> <br>
                      </div>
                      <div>options {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # disable the chained hostname format
                        in logs</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (default is enabled)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; chain_hostnames(0);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # the time to wait before a died
                        connection is re-established</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (default is 60)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; time_reopen(10);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # the time to wait before an idle
                        destination file is closed</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (default is 60)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; time_reap(360);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # the number of lines buffered before
                        written to file</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # you might want to increase this if
                        your disk isn't catching with</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # all the log messages you get or if
                        you want less disk activity</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (say on a laptop)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (default is 0)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; #sync(0);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # the number of lines fitting in the
                        output queue</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; log_fifo_size(2048);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # enable or disable directory
                        creation for destination files</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; create_dirs(yes);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # default owner, group, and
                        permissions for log files</div>
                      <div> &nbsp; &nbsp; &nbsp; &nbsp; # (defaults are 0, 0, 0600)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; #owner(root);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; group(adm);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; perm(0640);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # default owner, group, and
                        permissions for created directories</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (defaults are 0, 0, 0700)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; #dir_owner(root);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; #dir_group(root);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; dir_perm(0755);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # enable or disable DNS usage</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # syslog-ng blocks on DNS queries, so
                        enabling DNS may lead to</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # a Denial of Service attack</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (default is yes)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; use_dns(yes);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # maximum length of message in bytes</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # this is only limited by the program
                        listening on the /dev/log Unix</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # socket, glibc can handle arbitrary
                        length log messages, but -- for</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # example -- syslogd accepts only
                        1024 bytes</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (default is 2048)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; #log_msg_size(2048);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; #Disable statistic log messages.</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; stats_freq(0);</div>
                      <div><br>
                      </div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # Some program send log messages
                        through a private implementation.</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # and sometimes that implementation
                        is bad. If this happen syslog-ng</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # may recognise the program name as
                        hostname. Whit this option</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # we tell the syslog-ng that if a
                        hostname match this regexp than that</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # is not a real hostname.</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; bad_hostname("^gconfd$");</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; keep_hostname (yes);</div>
                      <div><br>
                      </div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>######</div>
                      <div># sources</div>
                      <div><br>
                      </div>
                      <div># all known message sources</div>
                      <div>source s_all {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # message generated by Syslog-NG</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; internal();</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # standard Linux log source (this is
                        the default place for the syslog()</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # function to send logs to)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; unix-stream("/dev/log");</div>
                      <div> &nbsp; &nbsp; &nbsp; &nbsp; # messages from the kernel</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; file("/proc/kmsg" log_prefix("kernel:
                        "));</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # use the following line if you want
                        to receive remote UDP logging messages</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # (this is equivalent to the "-r"
                        syslogd flag)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; # udp();</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>######</div>
                      <div># destinations</div>
                      <div><br>
                      </div>
                      <div># some standard log files</div>
                      <div>destination df_auth {
                        file("/var/log/auth.log"); };</div>
                      <div>destination df_syslog {
                        file("/var/log/syslog"); };</div>
                      <div>destination df_cron {
                        file("/var/log/cron.log"); };</div>
                      <div>destination df_daemon {
                        file("/var/log/daemon.log"); };</div>
                      <div> destination df_kern {
                        file("/var/log/kern.log"); };</div>
                      <div>destination df_lpr {
                        file("/var/log/lpr.log"); };</div>
                      <div>destination df_mail {
                        file("/var/log/mail.log"); };</div>
                      <div>destination df_user {
                        file("/var/log/user.log"); };</div>
                      <div>destination df_uucp {
                        file("/var/log/uucp.log"); };</div>
                      <div><br>
                      </div>
                      <div># these files are meant for the mail system
                        log files</div>
                      <div># and provide re-usable destinations for
                        {mail,cron,...}.info,</div>
                      <div># {mail,cron,...}.notice, etc.</div>
                      <div>destination df_facility_dot_info {
                        file("/var/log/$FACILITY.info"); };</div>
                      <div>destination df_facility_dot_notice {
                        file("/var/log/$FACILITY.notice"); };</div>
                      <div>destination df_facility_dot_warn {
                        file("/var/log/$FACILITY.warn"); };</div>
                      <div>destination df_facility_dot_err {
                        file("/var/log/$FACILITY.err"); };</div>
                      <div>destination df_facility_dot_crit {
                        file("/var/log/$FACILITY.crit"); };</div>
                      <div><br>
                      </div>
                      <div># these files are meant for the news system,
                        and are kept separated</div>
                      <div># because they should be owned by "news"
                        instead of "root"</div>
                      <div>destination df_news_dot_notice {
                        file("/var/log/news/news.notice" owner("news"));
                        };</div>
                      <div>destination df_news_dot_err {
                        file("/var/log/news/news.err" owner("news")); };</div>
                      <div>destination df_news_dot_crit {
                        file("/var/log/news/news.crit" owner("news"));
                        };</div>
                      <div> <br>
                      </div>
                      <div># some more classical and useful files found
                        in standard syslog configurations</div>
                      <div>destination df_debug {
                        file("/var/log/debug"); };</div>
                      <div>destination df_messages {
                        file("/var/log/messages"); };</div>
                      <div><br>
                      </div>
                      <div># pipes</div>
                      <div># a console to view log messages under X</div>
                      <div>destination dp_xconsole {
                        pipe("/dev/xconsole"); };</div>
                      <div><br>
                      </div>
                      <div># consoles</div>
                      <div># this will send messages to everyone logged
                        in</div>
                      <div>destination du_all { usertty("*"); };</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>######</div>
                      <div># filters</div>
                      <div><br>
                      </div>
                      <div># all messages from the auth and authpriv
                        facilities</div>
                      <div>filter f_auth { facility(auth, authpriv); };</div>
                      <div><br>
                      </div>
                      <div># all messages except from the auth and
                        authpriv facilities</div>
                      <div>filter f_syslog { not facility(auth,
                        authpriv); };</div>
                      <div><br>
                      </div>
                      <div># respectively: messages from the cron,
                        daemon, kern, lpr, mail, news, user,</div>
                      <div># and uucp facilities</div>
                      <div>filter f_cron { facility(cron); };</div>
                      <div>filter f_daemon { facility(daemon); };</div>
                      <div>filter f_kern { facility(kern); };</div>
                      <div>filter f_lpr { facility(lpr); };</div>
                      <div>filter f_mail { facility(mail); };</div>
                      <div>filter f_news { facility(news); };</div>
                      <div>filter f_user { facility(user); };</div>
                      <div>filter f_uucp { facility(uucp); };</div>
                      <div><br>
                      </div>
                      <div># some filters to select messages of priority
                        greater or equal to info, warn,</div>
                      <div># and err</div>
                      <div># (equivalents of syslogd's *.info, *.warn,
                        and *.err)</div>
                      <div>filter f_at_least_info { level(info..emerg);
                        };</div>
                      <div>filter f_at_least_notice {
                        level(notice..emerg); };</div>
                      <div>filter f_at_least_warn { level(warn..emerg);
                        };</div>
                      <div>filter f_at_least_err { level(err..emerg); };</div>
                      <div>filter f_at_least_crit { level(crit..emerg);
                        };</div>
                      <div><br>
                      </div>
                      <div># all messages of priority debug not coming
                        from the auth, authpriv, news, and</div>
                      <div> # mail facilities</div>
                      <div>filter f_debug { level(debug) and not
                        facility(auth, authpriv, news, mail); };</div>
                      <div><br>
                      </div>
                      <div># all messages of info, notice, or warn
                        priority not coming form the auth,</div>
                      <div># authpriv, cron, daemon, mail, and news
                        facilities</div>
                      <div>filter f_messages {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; level(info,notice,warn)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and not
                        facility(auth,authpriv,cron,daemon,mail,news);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># messages with priority emerg</div>
                      <div> filter f_emerg { level(emerg); };</div>
                      <div><br>
                      </div>
                      <div># complex filter for messages usually sent to
                        the xconsole</div>
                      <div>filter f_xconsole {</div>
                      <div>&nbsp; &nbsp; facility(daemon,mail)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; or level(debug,info,notice,warn)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; or (facility(news)</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and level(crit,err,notice));</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>######</div>
                      <div># logs</div>
                      <div># order matters if you use "flags(final);" to
                        mark the end of processing in a</div>
                      <div># "log" statement</div>
                      <div><br>
                      </div>
                      <div># these rules provide the same behavior as
                        the commented original syslogd rules</div>
                      <div><br>
                      </div>
                      <div># auth,authpriv.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        /var/log/auth.log</div>
                      <div> log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_auth);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_auth);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># *.*;auth,authpriv.none &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;-/var/log/syslog</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_syslog);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_syslog);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># this is commented out in the default
                        syslog.conf</div>
                      <div># cron.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        /var/log/cron.log</div>
                      <div>#log {</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp;source(s_all);</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp;filter(f_cron);</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp;destination(df_cron);</div>
                      <div>#};</div>
                      <div><br>
                      </div>
                      <div># daemon.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;-/var/log/daemon.log</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_daemon);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_daemon);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># kern.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;-/var/log/kern.log</div>
                      <div> log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_kern);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_kern);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># lpr.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        -/var/log/lpr.log</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_lpr);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_lpr);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># mail.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;-/var/log/mail.log</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_mail);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_mail);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># user.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;-/var/log/user.log</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_user);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_user);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># uucp.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;/var/log/uucp.log</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_uucp);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_uucp);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># <a moz-do-not-send="true"
                          href="http://mail.info" target="_blank">mail.info</a>
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -/var/log/<a
                          moz-do-not-send="true" href="http://mail.info"
                          target="_blank">mail.info</a></div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_mail);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_at_least_info);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_facility_dot_info);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># mail.warn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        -/var/log/mail.warn</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_mail);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_at_least_warn);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_facility_dot_warn);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># mail.err &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;/var/log/mail.err</div>
                      <div> log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_mail);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_at_least_err);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_facility_dot_err);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># news.crit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        /var/log/news/news.crit</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_news);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_at_least_crit);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_news_dot_crit);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># news.err &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;/var/log/news/news.err</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_news);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_at_least_err);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_news_dot_err);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># news.notice &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        /var/log/news/news.notice</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_news);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_at_least_notice);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_news_dot_notice);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div># *.=debug;\</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp; auth,authpriv.none;\</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp; news.none;mail.none &nbsp; &nbsp;
                        -/var/log/debug</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_debug);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(df_debug);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div># *.=info;*.=notice;*.=warn;\</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp; auth,authpriv.none;\</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp; cron,daemon.none;\</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp; mail,news.none &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp;-/var/log/messages</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_messages);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(d_eventdb);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div># *.emerg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *</div>
                      <div>log {</div>
                      <div> &nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_emerg);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(du_all);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div># daemon.*;mail.*;\</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp; news.crit;news.err;news.notice;\</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp; *.=debug;*.=info;\</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp; *.=notice;*.=warn &nbsp; &nbsp; &nbsp;
                        |/dev/xconsole</div>
                      <div>log {</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; source(s_all);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; filter(f_xconsole);</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; destination(dp_xconsole);</div>
                      <div>};</div>
                      <div>#syslog-ng2mysql destinations</div>
                      <div><br>
                      </div>
                      <div>source src_eventdb {&nbsp;</div>
                      <div>&nbsp; &nbsp; unix-stream("/dev/log");</div>
                      <div>&nbsp; &nbsp; udp(ip(0.0.0.0) port(514));&nbsp;</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div> destination d_eventdb {</div>
                      <div>&nbsp; &nbsp; pipe(</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp;
                        "/usr/local/icinga/var/rw/syslog-ng.pipe",</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp;
template("$HOST\t$SOURCEIP\t$PRI\t$YEAR-$MONTH-$DAY\t$HOUR:$MIN:$SEC\t$PROGRAM\t$MSG\n")</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; template_escape(no)</div>
                      <div>&nbsp; &nbsp; );</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div>filter f_at_least_warn {&nbsp;</div>
                      <div># &nbsp; &nbsp;level(warn..emerg);</div>
                      <div>&nbsp; &nbsp; &nbsp;level(notice..emerg);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div> log {</div>
                      <div># &nbsp; &nbsp;source(src_eventdb);</div>
                      <div>&nbsp; &nbsp; filter(f_at_least_warn);</div>
                      <div># &nbsp; &nbsp; filter(f_syslog);</div>
                      <div>&nbsp; &nbsp; destination(d_eventdb);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div>#log {</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp;source(src_eventdb);</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp;filter(f_auth);</div>
                      <div># &nbsp; &nbsp; &nbsp; &nbsp;destination(d_eventdb);</div>
                      <div>#};</div>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div><br>
                    </div>
                    <div>HERE FOR THE BSD/CLIENT SIDE: same here is the
                      default with openbsd syslog-ng install</div>
                    <div>with my additions at the end.</div>
                    <div><br>
                    </div>
                    <div>
                      <div>cat /etc/syslog-ng.conf &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
                      <div>#</div>
                      <div># Syslog-ng example configuration for for
                        Debian GNU/Linux</div>
                      <div>#</div>
                      <div># Copyright (c) 1999 anonymous</div>
                      <div># Copyright (c) 1999 Balazs Scheidler</div>
                      <div># $Id: syslog-ng.conf.sample,v 1.3 2003/05/20
                        08:57:27 asd Exp $</div>
                      <div>#</div>
                      <div># Syslog-ng configuration file, compatible
                        with default Debian syslogd</div>
                      <div># installation.&nbsp;</div>
                      <div>#</div>
                      <div><br>
                      </div>
                      <div>options { long_hostnames(off); sync(0);
                        keep_hostname(yes); use_dns(yes); stats (3600);
                        };</div>
                      <div><br>
                      </div>
                      <div>#source src { unix-stream("/dev/log");
                        internal(); };</div>
                      <div>source src { unix-dgram("/dev/log");
                        internal(); };</div>
                      <div>source net { udp(); };</div>
                      <div><br>
                      </div>
                      <div>destination authlog {
                        file("/var/log/auth.log"); };</div>
                      <div>destination syslog { file("/var/log/syslog");
                        };</div>
                      <div>destination cron { file("/var/log/cron.log");
                        };</div>
                      <div>destination daemon {
                        file("/var/log/daemon.log"); };</div>
                      <div>destination kern { file("/var/log/kern.log");
                        };</div>
                      <div>destination lpr { file("/var/log/lpr.log");
                        };</div>
                      <div>destination user { file("/var/log/user.log");
                        };</div>
                      <div>destination uucp { file("/var/log/uucp.log");
                        };</div>
                      <div>destination ppp { file("/var/log/ppp.log");
                        };</div>
                      <div>destination mail { file("/var/log/mail.log");
                        };</div>
                      <div><br>
                      </div>
                      <div>destination mailinfo { file("/var/log/<a
                          moz-do-not-send="true" href="http://mail.info"
                          target="_blank">mail.info</a>"); };</div>
                      <div>destination mailwarn {
                        file("/var/log/mail.warn"); };</div>
                      <div>destination mailerr {
                        file("/var/log/mail.err"); };</div>
                      <div><br>
                      </div>
                      <div>destination newscrit {
                        file("/var/log/news/news.crit"); };</div>
                      <div>destination newserr {
                        file("/var/log/news/news.err"); };</div>
                      <div>destination newsnotice {
                        file("/var/log/news/news.notice"); };</div>
                      <div><br>
                      </div>
                      <div>destination debug { file("/var/log/debug");
                        };</div>
                      <div>destination messages {
                        file("/var/log/messages"); };</div>
                      <div>destination console { usertty("root"); };</div>
                      <div>destination console_all { file("/dev/tty12");
                        };</div>
                      <div>#destination loghost { udp("loghost"
                        port(999)); };</div>
                      <div><br>
                      </div>
                      <div> <br>
                      </div>
                      <div>destination xconsole { pipe("/dev/xconsole");
                        };</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>#ssh filter</div>
                      <div>filter f_sshderr &nbsp; &nbsp;{ match('^sshd\[[0-9]+\]:
                        error:'); };</div>
                      <div>filter f_sshd &nbsp; &nbsp; &nbsp; {
                        match('^sshd\[[0-9]+\]:'); };</div>
                      <div>#</div>
                      <div>filter f_auth { facility(auth); };</div>
                      <div>filter f_authpriv { facility(auth, authpriv);
                        };</div>
                      <div>filter f_syslog { not facility(authpriv,
                        mail); };</div>
                      <div>filter f_cron { facility(cron); };</div>
                      <div>filter f_daemon { facility(daemon); };</div>
                      <div>filter f_kern { facility(kern); };</div>
                      <div>filter f_lpr { facility(lpr); };</div>
                      <div>filter f_mail { facility(mail); };</div>
                      <div>filter f_user { facility(user); };</div>
                      <div>filter f_uucp { facility(cron); };</div>
                      <div>filter f_ppp { facility(local2); };</div>
                      <div>filter f_news { facility(news); };</div>
                      <div>filter f_debug { not facility(auth, authpriv,
                        news, mail); };</div>
                      <div>filter f_messages { level(info..warn)&nbsp;</div>
                      <div>&nbsp; &nbsp; &nbsp; &nbsp; and not facility(auth, authpriv,
                        mail, news); };</div>
                      <div>filter f_emergency { level(emerg); };</div>
                      <div><br>
                      </div>
                      <div>filter f_info { level(info); };</div>
                      <div>filter f_notice { level(notice); };</div>
                      <div> filter f_warn { level(warn); };</div>
                      <div>filter f_crit { level(crit); };</div>
                      <div>filter f_err { level(err); };</div>
                      <div><br>
                      </div>
                      <div>log { source(src); filter(f_authpriv);
                        destination(authlog); };</div>
                      <div>log { source(src); filter(f_syslog);
                        destination(syslog); };</div>
                      <div>log { source(src); filter(f_cron);
                        destination(cron); };</div>
                      <div>log { source(src); filter(f_daemon);
                        destination(daemon); };</div>
                      <div>log { source(src); filter(f_kern);
                        destination(kern); };</div>
                      <div>log { source(src); filter(f_lpr);
                        destination(lpr); };</div>
                      <div>log { source(src); filter(f_mail);
                        destination(mail); };</div>
                      <div>log { source(src); filter(f_user);
                        destination(user); };</div>
                      <div>log { source(src); filter(f_uucp);
                        destination(uucp); };</div>
                      <div>log { source(src); filter(f_mail);
                        filter(f_info); destination(mailinfo); };</div>
                      <div>log { source(src); filter(f_mail);
                        filter(f_warn); destination(mailwarn); };</div>
                      <div>log { source(src); filter(f_mail);
                        filter(f_err); destination(mailerr); };</div>
                      <div>log { source(src); filter(f_news);
                        filter(f_crit); destination(newscrit); };</div>
                      <div>log { source(src); filter(f_news);
                        filter(f_err); destination(newserr); };</div>
                      <div>log { source(src); filter(f_news);
                        filter(f_notice); destination(newsnotice); };</div>
                      <div>log { source(src); filter(f_debug);
                        destination(debug); };</div>
                      <div>log { source(src); filter(f_messages);
                        destination(messages); };</div>
                      <div>log { source(src); filter(f_emergency);
                        destination(console); };</div>
                      <div>log { source(src); filter(f_ppp);
                        destination(ppp); };</div>
                      <div>log { source(src); destination(console_all);
                        };</div>
                      <div><br>
                      </div>
                      <div>#sent to our central log server running
                        eventdb&nbsp;</div>
                      <div>destination loghost { udp("192.168.xxx.xxx"
                        port(514)); };</div>
                      <div>log { source(src); filter(f_info);
                        destination(loghost); };</div>
                      <div>log { source(src); filter(f_syslog);
                        destination(loghost); };</div>
                      <div>log { source(src); filter(f_authpriv);
                        destination(loghost); };</div>
                      <div>log { source(src); filter(f_user);
                        destination(loghost); };</div>
                      <div> log { source(src); filter(f_emergency);
                        destination(loghost); };</div>
                      <div>log { source(src); filter(f_sshd);
                        destination(loghost); };</div>
                      <div>log { source(src); filter(f_sshderr);
                        destination(loghost); };</div>
                      <div>log { source(src); filter(f_kern);
                        destination(loghost); };</div>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
                <pre><fieldset></fieldset>
______________________________________________________________________________
Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a moz-do-not-send="true" href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a>

</pre>
              </blockquote>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </body>
</html>