Modified:
/HOWTO_receive_logs.wiki
=======================================
--- /HOWTO_receive_logs.wiki Tue Aug 2 06:53:02 2011
+++ /HOWTO_receive_logs.wiki Tue Aug 2 13:12:13 2011
@@ -23,6 +23,18 @@
= 2. Default syslog server =
-If you use some kind of syslog server (rsyslog, SyslogNG)
-
-{{TODO}}
+If you use some kind of syslog server (rsyslog, SyslogNG), you can setup
LogcatUDP to send logs to this server.
+
+*Rsyslog* can be configured to listen remote logs on UDP port. Default
port is 514. To enable listening uncomment this two lines in
`/etc/rsyslog.conf`:
+{{{
+$ModLoad imudp
+$UDPServerRun 514
+}}}
+You can of course change the number of port. With this configuration
syslog writes log to number of log files (/var/log/syslog,
/var/log/messages, ...). If you want to filter log lines from android and
write them only to one special file, you must set up syslog rules. Create
file in `/etc/rsyslog.d/` with name that is in front of other files in this
directory. For example if the first file is `20-uwf.conf`, then you can
name it `10-logcat.conf`. Write this rule to it:
+{{{
+# process remote messages
+if $fromhost-ip startswith '192.168.2.' then /var/log/android
+& ~
+# only local messages past this point
+}}}
+The third line (`"& ~"`) is important. This is discard message after write
to file.