Jenkins logging directly to MySQL database

There are cases if you like to send the log output from Jenkins directly to a database for better querying or just as a step for further processing them. As Jenkins is not really admin-friendly with redirecting logs, we have to use the „init.d“ feature of Jenkins (https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Jenkins+upon+start+up). Thus you can simply put an init.groovy […]