OSSP CVS Repository

ossp - Check-in [3316]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3316
Date: 2003-Apr-03 10:16:22 (local)
2003-Apr-03 08:16:22 (UTC)
User:thl
Branch:
Comment: add postfix example to syslog-fsl; add static-fsl; indentation
Tickets:
Inspections:
Files:
ossp-web/pkg/lib/fsl/faq.wml      1.2 -> 1.3     54 inserted, 27 deleted

ossp-web/pkg/lib/fsl/faq.wml 1.2 -> 1.3

--- faq.wml      2003/03/24 19:44:31     1.2
+++ faq.wml      2003/04/03 08:16:22     1.3
@@ -36,17 +36,17 @@
 <faq id="syslog-debug"
      title="I want fsl to forward to syslog. How can i find out if syslog.conf(5) is correct?">
     <pre>
-       $ logger -p mail.info "message"
-       $ tail /var/log/maillog
-       Mar 24 17:01:36 host user: message 
+        $ logger -p mail.info "message"
+        $ tail /var/log/maillog
+        Mar 24 17:01:36 host user: message 
     </pre>
 </faq>
 
 <faq id="syslog-l2spec-local"
      title="I want fsl to forward to syslog. Which l2spec logs to syslogd locally?">
     <pre>
-       $ echo "from l2, loc" \
-       | fsl-l2tool 'syslog(facility=mail, ident=info, target="local")'
+        $ echo "from l2, loc" \
+        | fsl-l2tool 'syslog(facility=mail, ident=info, target="local")'
     </pre>
 </faq>
 
@@ -58,35 +58,62 @@
     certain order of the remotehost, remoteport an target
     keywords, see <a href="http://cvs.ossp.org/chngview?cn=3313">CVS</a>.
      <pre>
-     $ echo "from l2, net" \
-     | fsl-l2tool 'syslog(facility=mail, ident=info, 
-                          remotehost="127.0.0.1", remoteport="514", target="remote")'
-
+        $ echo "from l2, net" \
+        | fsl-l2tool 'syslog(facility=mail, 
+                             ident=info, 
+                             remotehost="127.0.0.1", 
+                             remoteport="514", 
+                             target="remote"
+                             )'
      </pre>
 </faq>
 
 <faq id="syslog-fsl"
      title="I want fsl to forward to syslog. Which fsl config logs to syslogd remotely?">
     <pre>
-    ##
-    ##  fsl.openssh -- OSSP fsl configuration for openssh
-    ##
-
-    ident (ssh(d|-.+)?|scp|sftp(-server)?)/.+ q{
-        prefix(
-            prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
-        ) 
-        -> {
-            debug: file(
-                path="/usr/opkg/var/openssh/sshd.log",
-                append=1, perm=0644
-            );
-            debug: syslog(
-                facility=mail, ident=info,
-                remotehost="127.0.0.1", remoteport="514", target="remote"
+        ##
+        ##  fsl.openssh -- OSSP fsl configuration for openssh
+        ##
+        ident (ssh(d|-.+)?|scp|sftp(-server)?)/.+ q{
+            prefix(
+                prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
+            ) 
+            -> {
+                debug: file(
+                    path="/usr/opkg/var/openssh/sshd.log",
+                    append=1, perm=0644
+                );
+                debug: syslog(
+                    facility=mail, ident=info,
+                    remotehost="127.0.0.1", remoteport="514", target="remote"
+                )
+            }
+        };
+        ##
+        ##  fsl.postfix -- OSSP fsl configuration for Postfix
+        ##
+        ident (postfix/.+)/.+ q{
+            prefix(
+                prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
             )
-        }
-    };
+            -> {
+                debug: syslog(
+                        facility=mail,
+                            ident=postfix,
+                            remotehost="127.0.0.1",
+                            remoteport="514",
+                            target="remote"
+                )
+            }
+        };
     </pre>
 </faq>
+
+<faq id="static-fsl"
+</faq>
+     title="How can i find out if a statically linked program is using fsl?">
+    <pre>
+        $ strings /cw12/sbin/postfix | grep '@(#)OSSP fsl'
+        @(#)OSSP fsl 1.0.8 (13-Feb-2003)
+    </pre>
 </ol>

CVSTrac 2.0.1