[wiki.logcatudp] push by - Edited wiki page HOWTO_receive_logs through web user interface. on 2011-08-02 20:12 GMT

0 views
Skip to first unread message

logc...@googlecode.com

unread,
Aug 2, 2011, 4:12:57 PM8/2/11
to logcatud...@googlegroups.com
Revision: 37c07594196f
Author: jma...@gmail.com
Date: Tue Aug 2 13:12:13 2011
Log: Edited wiki page HOWTO_receive_logs through web user interface.
http://code.google.com/p/logcatudp/source/detail?repo=wiki&r=37c07594196f

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.

Reply all
Reply to author
Forward
0 new messages