make svn logs human readable and send off to a syslog server
in /etc/apache2/sites-enabled/000-svn
# set customlog variable
LogLevel warn
LogFormat "%{%Y-%m-%d %T}t %u@%h %>s repo:%{SVN-REPOS-NAME}e %{SVN-ACTION}e %B Bytes in %T Sec" svn_log
# customlog and send to syslog
CustomLog "|/usr/bin/tee -a /var/svn/logs/svn_logfile | /usr/bin/logger -thttpd -plocal6.notice" svn_log env=SVN-ACTION
in /etc/rsyslog.d/50-default.conf
local6.* @remotesyslog
what remote syslog shows:
2018-02-01 16:34:45 buildbot@6.6.6.6 207 repo:repos get-dir /hell r160669 props 575 Bytes in 0 Sec
what standard apache access logs see:
6.6.6.6 - buildbot [01/Feb/2018:16:34:45 -0500] "PROPFIND /svn/repos/hell HTTP/1.1" 207 397 "-" "SVN/6.6.6 (r40053) neon/0.66.0"
Thursday, February 1, 2018
svn logs to syslog
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment