You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
MediaWiki UDP logging: Difference between revisions
Jump to navigation
Jump to search
imported>Krinkle (+{{Navigation Wikimedia infrastructure|expand=logging}}) |
imported>Gergő Tisza No edit summary |
||
Line 1: | Line 1: | ||
{{Navigation Wikimedia infrastructure|expand=logging}} | {{Navigation Wikimedia infrastructure|expand=logging}} | ||
All of the MediaWiki error [[logs]] should now be configured to be sent to udp://10.0.5.8:8420/[log_name]. On the relevant host, udp2log is installed (from udplog in svn). It runs in a root screen, with no command-line parameters. | All of the MediaWiki error [[logs]] should now be configured to be sent to udp://10.0.5.8:8420/[log_name]. On the relevant host, udp2log is installed (from udplog in svn). It runs in a root screen, with no command-line parameters. On the MediaWiki side, logging is configured via the global <code>$wmfUdp2logDest</code>. | ||
All logs are sent to /home/wikipedia/logs/[log_name].log . They are rotated daily to /home/wikipedia/logs/archive with 180 days kept, as per the defacto privacy policy. | All logs are sent to /home/wikipedia/logs/[log_name].log . They are rotated daily to /home/wikipedia/logs/archive with 180 days kept, as per the defacto privacy policy. |
Revision as of 20:46, 27 September 2016
All of the MediaWiki error logs should now be configured to be sent to udp://10.0.5.8:8420/[log_name]. On the relevant host, udp2log is installed (from udplog in svn). It runs in a root screen, with no command-line parameters. On the MediaWiki side, logging is configured via the global $wmfUdp2logDest
.
All logs are sent to /home/wikipedia/logs/[log_name].log . They are rotated daily to /home/wikipedia/logs/archive with 180 days kept, as per the defacto privacy policy.
Configuration files are as follows:
/etc/udp2log
flush pipe 1 python /usr/local/bin/demux.py flush file 1 /home/wikipedia/logs/everything.log
/etc/logrotate.d/mw-udp2log
/home/wikipedia/logs/*.log { daily olddir /home/wikipedia/logs/archive notifempty maxage 180 rotate 1000 dateext postrotate /usr/bin/killall -HUP udp2log endscript }
/usr/local/bin/demux.py
Copied from svn with the base directory changed to /home/wikipedia/logs.