Reputation: 1507
I want to Monitor name/E-mail/IP id of User's who Successfully logged in to my Jenkins's server. I am the system Administrator. Please help.
Upvotes: 11
Views: 28567
Reputation: 231
Should look like this -
Logs would look like this -
Upvotes: 23
Reputation: 11
Using Audit trail you can achieve this by adding the following parameter (login|logout|loginError). One issue with this approach is it will give the logout and loginError properly but login info is not satisfactory .
Upvotes: 1
Reputation: 2444
If you want to see who is doing what, I would install the Audit Trail Plugin: https://wiki.jenkins-ci.org/display/JENKINS/Audit+Trail+Plugin and if you're really hardcore, I would install the Audit to Database Plugin: https://wiki.jenkins-ci.org/display/JENKINS/Audit+To+Database+Plugin
Upvotes: 2
Reputation: 10382
You can enable access log by adding these lines to /etc/default/jenkins above JENKINS_ARGS:
# Enable access log
JENKINS_ACCESSLOG="--accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access.log"
Enable log rotation: edit /etc/logrotate.d/jenkins and change /var/log/jenkins/jenkins.log to /var/log/jenkins/*.log
Copy from here.
Does it help?
Upvotes: 1