oh sorry Im used to list that will reply by defaul to the list. sorry about that..<div>I think I get what you mean..</div><div>so in the clients and in the server log I have to have similar filters ?</div><div><br></div><div>
Thanks<br><br><div class="gmail_quote">2011/9/19 Patrick H. <span dir="ltr">&lt;<a href="mailto:syslogng@feystorm.net">syslogng@feystorm.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>

  
    
  
  <div bgcolor="#ffffff" text="#0050d0">
    Seriously, dont remove the mailing list from the recipients. Others
    may catch things I miss, or I might be gone for a while, but someone
    else is around.<br>
    <br>
    That filter you have only logs warning through emerg, while by
    default logger uses notice, which is below warning.<br>
    <br>
    <br>
    -Patrick<br>
    <br>
    <br>
    <br>
    Sent: Mon Sep 19 2011 15:26:05 GMT-0600 (MST)<div><div></div><div class="h5"><br>
    From: rek2 <a href="mailto:rek2gnulinux@gmail.com" target="_blank">&lt;rek2gnulinux@gmail.com&gt;</a><br>
    To: Patrick H. <a href="mailto:syslogng@feystorm.net" target="_blank">&lt;syslogng@feystorm.net&gt;</a> <br>
    Subject: Re: [syslog-ng] Problem sending logs to central log
    server..
    <blockquote type="cite">ops! I forgot to uncoment that as well sorry.. so
      basically do I have everything else ok?
      <div>the thing is also that after I migrated to syslog-ng in the
        BSD things are not logging to their place</div>
      <div>in /var/log either Im getting most of the stuff on the
        /var/log/syslog  even tho as you can see in my other emails the
        default config already define the destinations for auth etc...<br>
        <br>
        <div class="gmail_quote">2011/9/19 Patrick H. <span dir="ltr">&lt;<a href="mailto:syslogng@feystorm.net" target="_blank">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"> 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.
              <div><br>
                <div>log {</div>
                <div>#    source(src_eventdb);</div>
                <div>    filter(f_at_least_warn);</div>
                <div>#     filter(f_syslog);</div>
                <div>    destination(d_eventdb);</div>
                <div>};<br>
                  <br>
                </div>
                <br>
              </div>
              -Patrick<br>
              <br>
              <br>
              <br>
              Sent: Mon Sep 19 2011 14:43:08 GMT-0600 (MST)
              <div><br>
                From: rek2 <a href="mailto:rek2gnulinux@gmail.com" target="_blank">&lt;rek2gnulinux@gmail.com&gt;</a><br>
              </div>
              To: Patrick H. <a href="mailto:syslogng@feystorm.net" target="_blank">&lt;syslogng@feystorm.net&gt;</a>
              <br>
              Subject: Re: [syslog-ng] Problem sending logs to central
              log server..
              <div>
                <div>
                  <blockquote 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> #syslog-ng2mysql destinations
                      <div><br>
                      </div>
                      <div>source src_eventdb {</div>
                      <div>    unix-stream(&quot;/dev/log&quot;);</div>
                      <div>    udp(ip(0.0.0.0) port(514));</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div>destination d_eventdb {</div>
                      <div>    pipe(</div>
                      <div>       
                        &quot;/usr/local/icinga/var/rw/syslog-ng.pipe&quot;,</div>
                      <div>       
template(&quot;$HOST\t$SOURCEIP\t$PRI\t$YEAR-$MONTH-$DAY\t$HOUR:$MIN:$SEC\t$PROGRAM\t$MSG\n&quot;)</div>
                      <div>        template_escape(no)</div>
                      <div>    );</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div>filter f_at_least_warn {</div>
                      <div>#    level(warn..emerg);</div>
                      <div>#     level(notice..emerg);</div>
                      <div>     level(info, notice, warn, crit, err,
                        debug);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div>log {</div>
                      <div>#    source(src_eventdb);</div>
                      <div>    filter(f_at_least_warn);</div>
                      <div>#     filter(f_syslog);</div>
                      <div>    destination(d_eventdb);</div>
                      <div>};</div>
                      <div><br>
                      </div>
                      <div>#log {</div>
                      <div>#        source(src_eventdb);</div>
                      <div>#        filter(f_auth);</div>
                      <div>#        destination(d_eventdb);</div>
                      <div>#};</div>
                      <div><br>
                      </div>
                      <br>
                      <div class="gmail_quote">2011/9/19 Patrick H. <span dir="ltr">&lt;<a href="mailto:syslogng@feystorm.net" target="_blank">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 href="mailto:rek2gnulinux@gmail.com" target="_blank">&lt;rek2gnulinux@gmail.com&gt;</a><br>
                            To: <a 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>Hello, I&#39;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 &quot;logger test&quot;
                                    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 </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 &quot;error&quot;, &quot;panic&quot;,
                                      and &quot;warn&quot; are deprecated</div>
                                    <div># the &quot;none&quot; 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>        # disable the chained
                                      hostname format in logs</div>
                                    <div>        # (default is enabled)</div>
                                    <div>        chain_hostnames(0);</div>
                                    <div><br>
                                    </div>
                                    <div>        # the time to wait
                                      before a died connection is
                                      re-established</div>
                                    <div>        # (default is 60)</div>
                                    <div>        time_reopen(10);</div>
                                    <div><br>
                                    </div>
                                    <div>        # the time to wait
                                      before an idle destination file is
                                      closed</div>
                                    <div>        # (default is 60)</div>
                                    <div>        time_reap(360);</div>
                                    <div><br>
                                    </div>
                                    <div>        # the number of lines
                                      buffered before written to file</div>
                                    <div>        # you might want to
                                      increase this if your disk isn&#39;t
                                      catching with</div>
                                    <div>        # all the log messages
                                      you get or if you want less disk
                                      activity</div>
                                    <div>        # (say on a laptop)</div>
                                    <div>        # (default is 0)</div>
                                    <div>        #sync(0);</div>
                                    <div><br>
                                    </div>
                                    <div>        # the number of lines
                                      fitting in the output queue</div>
                                    <div>        log_fifo_size(2048);</div>
                                    <div><br>
                                    </div>
                                    <div>        # enable or disable
                                      directory creation for destination
                                      files</div>
                                    <div>        create_dirs(yes);</div>
                                    <div><br>
                                    </div>
                                    <div>        # default owner, group,
                                      and permissions for log files</div>
                                    <div>         # (defaults are 0, 0,
                                      0600)</div>
                                    <div>        #owner(root);</div>
                                    <div>        group(adm);</div>
                                    <div>        perm(0640);</div>
                                    <div><br>
                                    </div>
                                    <div>        # default owner, group,
                                      and permissions for created
                                      directories</div>
                                    <div>        # (defaults are 0, 0,
                                      0700)</div>
                                    <div>        #dir_owner(root);</div>
                                    <div>        #dir_group(root);</div>
                                    <div>        dir_perm(0755);</div>
                                    <div><br>
                                    </div>
                                    <div>        # enable or disable DNS
                                      usage</div>
                                    <div>        # syslog-ng blocks on
                                      DNS queries, so enabling DNS may
                                      lead to</div>
                                    <div>        # a Denial of Service
                                      attack</div>
                                    <div>        # (default is yes)</div>
                                    <div>        use_dns(yes);</div>
                                    <div><br>
                                    </div>
                                    <div>        # maximum length of
                                      message in bytes</div>
                                    <div>        # this is only limited
                                      by the program listening on the
                                      /dev/log Unix</div>
                                    <div>        # socket, glibc can
                                      handle arbitrary length log
                                      messages, but -- for</div>
                                    <div>        # example -- syslogd
                                      accepts only 1024 bytes</div>
                                    <div>        # (default is 2048)</div>
                                    <div>        #log_msg_size(2048);</div>
                                    <div><br>
                                    </div>
                                    <div>        #Disable statistic log
                                      messages.</div>
                                    <div>        stats_freq(0);</div>
                                    <div><br>
                                    </div>
                                    <div>        # Some program send log
                                      messages through a private
                                      implementation.</div>
                                    <div>        # and sometimes that
                                      implementation is bad. If this
                                      happen syslog-ng</div>
                                    <div>        # may recognise the
                                      program name as hostname. Whit
                                      this option</div>
                                    <div>        # we tell the syslog-ng
                                      that if a hostname match this
                                      regexp than that</div>
                                    <div>        # is not a real
                                      hostname.</div>
                                    <div>       
                                      bad_hostname(&quot;^gconfd$&quot;);</div>
                                    <div>        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>        # message generated by
                                      Syslog-NG</div>
                                    <div>        internal();</div>
                                    <div>        # standard Linux log
                                      source (this is the default place
                                      for the syslog()</div>
                                    <div>        # function to send logs
                                      to)</div>
                                    <div>       
                                      unix-stream(&quot;/dev/log&quot;);</div>
                                    <div>         # messages from the
                                      kernel</div>
                                    <div>        file(&quot;/proc/kmsg&quot;
                                      log_prefix(&quot;kernel: &quot;));</div>
                                    <div>        # use the following
                                      line if you want to receive remote
                                      UDP logging messages</div>
                                    <div>        # (this is equivalent
                                      to the &quot;-r&quot; syslogd flag)</div>
                                    <div>        # 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(&quot;/var/log/auth.log&quot;); };</div>
                                    <div>destination df_syslog {
                                      file(&quot;/var/log/syslog&quot;); };</div>
                                    <div>destination df_cron {
                                      file(&quot;/var/log/cron.log&quot;); };</div>
                                    <div>destination df_daemon {
                                      file(&quot;/var/log/daemon.log&quot;); };</div>
                                    <div> destination df_kern {
                                      file(&quot;/var/log/kern.log&quot;); };</div>
                                    <div>destination df_lpr {
                                      file(&quot;/var/log/lpr.log&quot;); };</div>
                                    <div>destination df_mail {
                                      file(&quot;/var/log/mail.log&quot;); };</div>
                                    <div>destination df_user {
                                      file(&quot;/var/log/user.log&quot;); };</div>
                                    <div>destination df_uucp {
                                      file(&quot;/var/log/uucp.log&quot;); };</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(&quot;/var/log/$FACILITY.info&quot;);
                                      };</div>
                                    <div>destination
                                      df_facility_dot_notice {
                                      file(&quot;/var/log/$FACILITY.notice&quot;);
                                      };</div>
                                    <div>destination
                                      df_facility_dot_warn {
                                      file(&quot;/var/log/$FACILITY.warn&quot;);
                                      };</div>
                                    <div>destination df_facility_dot_err
                                      { file(&quot;/var/log/$FACILITY.err&quot;);
                                      };</div>
                                    <div>destination
                                      df_facility_dot_crit {
                                      file(&quot;/var/log/$FACILITY.crit&quot;);
                                      };</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 &quot;news&quot; instead of &quot;root&quot;</div>
                                    <div>destination df_news_dot_notice
                                      { file(&quot;/var/log/news/news.notice&quot;
                                      owner(&quot;news&quot;)); };</div>
                                    <div>destination df_news_dot_err {
                                      file(&quot;/var/log/news/news.err&quot;
                                      owner(&quot;news&quot;)); };</div>
                                    <div>destination df_news_dot_crit {
                                      file(&quot;/var/log/news/news.crit&quot;
                                      owner(&quot;news&quot;)); };</div>
                                    <div> <br>
                                    </div>
                                    <div># some more classical and
                                      useful files found in standard
                                      syslog configurations</div>
                                    <div>destination df_debug {
                                      file(&quot;/var/log/debug&quot;); };</div>
                                    <div>destination df_messages {
                                      file(&quot;/var/log/messages&quot;); };</div>
                                    <div><br>
                                    </div>
                                    <div># pipes</div>
                                    <div># a console to view log
                                      messages under X</div>
                                    <div>destination dp_xconsole {
                                      pipe(&quot;/dev/xconsole&quot;); };</div>
                                    <div><br>
                                    </div>
                                    <div># consoles</div>
                                    <div># this will send messages to
                                      everyone logged in</div>
                                    <div>destination du_all {
                                      usertty(&quot;*&quot;); };</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&#39;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>        level(info,notice,warn)</div>
                                    <div>            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>    facility(daemon,mail)</div>
                                    <div>        or
                                      level(debug,info,notice,warn)</div>
                                    <div>        or (facility(news)</div>
                                    <div>                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
                                      &quot;flags(final);&quot; to mark the end of
                                      processing in a</div>
                                    <div># &quot;log&quot; 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.*              
                                        /var/log/auth.log</div>
                                    <div> log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_auth);</div>
                                    <div>        destination(df_auth);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># *.*;auth,authpriv.none      
                                         -/var/log/syslog</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_syslog);</div>
                                    <div>        destination(df_syslog);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># this is commented out in the
                                      default syslog.conf</div>
                                    <div># cron.*                      
                                        /var/log/cron.log</div>
                                    <div>#log {</div>
                                    <div>#        source(s_all);</div>
                                    <div>#        filter(f_cron);</div>
                                    <div>#        destination(df_cron);</div>
                                    <div>#};</div>
                                    <div><br>
                                    </div>
                                    <div># daemon.*                    
                                         -/var/log/daemon.log</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_daemon);</div>
                                    <div>        destination(df_daemon);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># kern.*                      
                                         -/var/log/kern.log</div>
                                    <div> log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_kern);</div>
                                    <div>        destination(df_kern);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># lpr.*                        
                                        -/var/log/lpr.log</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_lpr);</div>
                                    <div>        destination(df_lpr);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># mail.*                      
                                         -/var/log/mail.log</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_mail);</div>
                                    <div>        destination(df_mail);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># user.*                      
                                         -/var/log/user.log</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_user);</div>
                                    <div>        destination(df_user);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># uucp.*                      
                                         /var/log/uucp.log</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_uucp);</div>
                                    <div>        destination(df_uucp);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># <a href="http://mail.info" target="_blank">mail.info</a>  
                                                          -/var/log/<a href="http://mail.info" target="_blank">mail.info</a></div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_mail);</div>
                                    <div>       
                                      filter(f_at_least_info);</div>
                                    <div>       
                                      destination(df_facility_dot_info);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># mail.warn                    
                                        -/var/log/mail.warn</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_mail);</div>
                                    <div>       
                                      filter(f_at_least_warn);</div>
                                    <div>       
                                      destination(df_facility_dot_warn);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># mail.err                    
                                         /var/log/mail.err</div>
                                    <div> log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_mail);</div>
                                    <div>        filter(f_at_least_err);</div>
                                    <div>       
                                      destination(df_facility_dot_err);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># news.crit                    
                                        /var/log/news/news.crit</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_news);</div>
                                    <div>       
                                      filter(f_at_least_crit);</div>
                                    <div>       
                                      destination(df_news_dot_crit);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># news.err                    
                                         /var/log/news/news.err</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_news);</div>
                                    <div>        filter(f_at_least_err);</div>
                                    <div>       
                                      destination(df_news_dot_err);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># news.notice                  
                                        /var/log/news/news.notice</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_news);</div>
                                    <div>       
                                      filter(f_at_least_notice);</div>
                                    <div>       
                                      destination(df_news_dot_notice);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div># *.=debug;\</div>
                                    <div>#         auth,authpriv.none;\</div>
                                    <div>#         news.none;mail.none  
                                        -/var/log/debug</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_debug);</div>
                                    <div>        destination(df_debug);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div># *.=info;*.=notice;*.=warn;\</div>
                                    <div>#         auth,authpriv.none;\</div>
                                    <div>#         cron,daemon.none;\</div>
                                    <div>#         mail,news.none      
                                         -/var/log/messages</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_messages);</div>
                                    <div>        destination(d_eventdb);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div># *.emerg                      
                                        *</div>
                                    <div>log {</div>
                                    <div>         source(s_all);</div>
                                    <div>        filter(f_emerg);</div>
                                    <div>        destination(du_all);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div># daemon.*;mail.*;\</div>
                                    <div>#        
                                      news.crit;news.err;news.notice;\</div>
                                    <div>#         *.=debug;*.=info;\</div>
                                    <div>#         *.=notice;*.=warn    
                                        |/dev/xconsole</div>
                                    <div>log {</div>
                                    <div>        source(s_all);</div>
                                    <div>        filter(f_xconsole);</div>
                                    <div>       
                                      destination(dp_xconsole);</div>
                                    <div>};</div>
                                    <div>#syslog-ng2mysql destinations</div>
                                    <div><br>
                                    </div>
                                    <div>source src_eventdb { </div>
                                    <div>    unix-stream(&quot;/dev/log&quot;);</div>
                                    <div>    udp(ip(0.0.0.0)
                                      port(514)); </div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div> destination d_eventdb {</div>
                                    <div>    pipe(</div>
                                    <div>       
                                      &quot;/usr/local/icinga/var/rw/syslog-ng.pipe&quot;,</div>
                                    <div>       
template(&quot;$HOST\t$SOURCEIP\t$PRI\t$YEAR-$MONTH-$DAY\t$HOUR:$MIN:$SEC\t$PROGRAM\t$MSG\n&quot;)</div>
                                    <div>        template_escape(no)</div>
                                    <div>    );</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div>filter f_at_least_warn { </div>
                                    <div>#    level(warn..emerg);</div>
                                    <div>     level(notice..emerg);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div> log {</div>
                                    <div>#    source(src_eventdb);</div>
                                    <div>    filter(f_at_least_warn);</div>
                                    <div>#     filter(f_syslog);</div>
                                    <div>    destination(d_eventdb);</div>
                                    <div>};</div>
                                    <div><br>
                                    </div>
                                    <div>#log {</div>
                                    <div>#        source(src_eventdb);</div>
                                    <div>#        filter(f_auth);</div>
                                    <div>#      
                                       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        
                                                                       
                                                                       
                                                                       
                                                                       
                                                         </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. </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(&quot;/dev/log&quot;);
                                      internal(); };</div>
                                    <div>source src {
                                      unix-dgram(&quot;/dev/log&quot;);
                                      internal(); };</div>
                                    <div>source net { udp(); };</div>
                                    <div><br>
                                    </div>
                                    <div>destination authlog {
                                      file(&quot;/var/log/auth.log&quot;); };</div>
                                    <div>destination syslog {
                                      file(&quot;/var/log/syslog&quot;); };</div>
                                    <div>destination cron {
                                      file(&quot;/var/log/cron.log&quot;); };</div>
                                    <div>destination daemon {
                                      file(&quot;/var/log/daemon.log&quot;); };</div>
                                    <div>destination kern {
                                      file(&quot;/var/log/kern.log&quot;); };</div>
                                    <div>destination lpr {
                                      file(&quot;/var/log/lpr.log&quot;); };</div>
                                    <div>destination user {
                                      file(&quot;/var/log/user.log&quot;); };</div>
                                    <div>destination uucp {
                                      file(&quot;/var/log/uucp.log&quot;); };</div>
                                    <div>destination ppp {
                                      file(&quot;/var/log/ppp.log&quot;); };</div>
                                    <div>destination mail {
                                      file(&quot;/var/log/mail.log&quot;); };</div>
                                    <div><br>
                                    </div>
                                    <div>destination mailinfo {
                                      file(&quot;/var/log/<a href="http://mail.info" target="_blank">mail.info</a>&quot;);
                                      };</div>
                                    <div>destination mailwarn {
                                      file(&quot;/var/log/mail.warn&quot;); };</div>
                                    <div>destination mailerr {
                                      file(&quot;/var/log/mail.err&quot;); };</div>
                                    <div><br>
                                    </div>
                                    <div>destination newscrit {
                                      file(&quot;/var/log/news/news.crit&quot;);
                                      };</div>
                                    <div>destination newserr {
                                      file(&quot;/var/log/news/news.err&quot;); };</div>
                                    <div>destination newsnotice {
                                      file(&quot;/var/log/news/news.notice&quot;);
                                      };</div>
                                    <div><br>
                                    </div>
                                    <div>destination debug {
                                      file(&quot;/var/log/debug&quot;); };</div>
                                    <div>destination messages {
                                      file(&quot;/var/log/messages&quot;); };</div>
                                    <div>destination console {
                                      usertty(&quot;root&quot;); };</div>
                                    <div>destination console_all {
                                      file(&quot;/dev/tty12&quot;); };</div>
                                    <div>#destination loghost {
                                      udp(&quot;loghost&quot; port(999)); };</div>
                                    <div><br>
                                    </div>
                                    <div> <br>
                                    </div>
                                    <div>destination xconsole {
                                      pipe(&quot;/dev/xconsole&quot;); };</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>#ssh filter</div>
                                    <div>filter f_sshderr    {
                                      match(&#39;^sshd\[[0-9]+\]: error:&#39;);
                                      };</div>
                                    <div>filter f_sshd       {
                                      match(&#39;^sshd\[[0-9]+\]:&#39;); };</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) </div>
                                    <div>        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 </div>
                                    <div>destination loghost {
                                      udp(&quot;192.168.xxx.xxx&quot; 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 href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a 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>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </div></div></div>

</blockquote></div><br></div>