Save sudo logs on a remote computer

Collection Point

Client Configuration for Secure Data Transmission

To let the client know to which system to send the sudo logs, use visudo to add the following statements to the sudoers file:

Defaults log_servers=<IP address>:30344(tls)
Defaults log_server_cabundle=/etc/pki/tls/cert.pem

Of course, you will need to replace <IP address> with the IP address of the system on which you just set up the sudo_logsrvd service. From now on, the client's sudo session logs will end up on the central logging system. A call to sudoreplay -l should confirm this.


In the new 1.9 version, sudo now offers the ability to store I/O logs on remote systems. A new sudo_logsrvd service exists for this purpose, and it can communicate with clients over a secure TLS channel. To structure the data to be transmitted, sudo uses Google's Protocol Buffer Language [4].


  1. New features in sudo version 1.9.0:
  2. sudo source code:
  3. sudo download:
  4. Google Protocol Buffer Language:

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs

Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>


		<div class=