SUDO_SENDLOG(8)
๐ SUDO_SENDLOG(8) ๐
System Manager's Manual ๐ this is the page for sudo_sendlog, bestie, so grab a snack ๐
โจ NAME โจ
sudo_sendlog โ send sudo I/O log to log server ๐ฆ
๐ SYNOPSIS ๐
sudo_sendlog [-AnV] [-b ca_bundle] [-c cert_file] [-h host]
[-i iolog-id] [-k key_file] [-p port] [-r restart-point]
[-R reject-reason] [-s stop-point] [-t number] path
๐ธ DESCRIPTION ๐ธ
okay so sudo_sendlog takes an existing sudoers I/O log path and ships it off to a remote log server, like sudo_logsrvd(8), for central storage. lowkey the perfect way to keep all your logs in one safe place ๐ซถ
The options are as follows:
-A,--accept-onlyโ only sends the accept event and skips the I/O tied to the log. Super handy if you wanna test accept event logging without any I/O attached ๐-b,--ca-bundleโ the path to a certificate authority bundle file (PEM format) that gets used instead of the system's default certificate authority database when authenticating the log server. By default it just uses the system's default CA database, so no drama ๐-c,--certโ the path to the client's certificate file in PEM format. This one is required when the connection to the remote log server is secured with TLS ๐--helpโ shows a short help message on standard output and then exits. iconic ๐-h,--hostโ connects to the host you specify instead of localhost ๐ง-i,--iolog-idโ uses the iolog-id you give it when restarting a log transfer. The server reports this ID when it creates the remote I/O log. This option can only be used together with-r๐-k,--keyโ the path to the client's private key file in PEM format. Also required for TLS connections to the remote log server ๐-n,--no-verifyโ skips verifying the server's certificate during the TLS handshake. By default,sudo_sendlogchecks that the server's certificate is valid and that it contains either the server's host name or its IP address. This only works when the connection is TLS-secured ๐-p,--portโ connects to the log server on the network port you pick, instead of the default one, port30344๐ฆ-r,--restartโ restarts an interrupted connection to the log server. The restart-point you give tells the server where to pick the log back up. It's written as โseconds,nanosecondsโ and is usually the last commit point the server sent you โฐ You also have to specify-iwhen restarting, no skipping!-R,--rejectโ sends a reject event for the command using the reject-reason you provide, even though the command was actually accepted locally. Perfect for testing reject event logging. No I/O gets sent here โจ-s,--stop-afterโ stops sending log records and closes the connection once the stop-point is reached. This is a testing move for sending a partial I/O log to the server. Partial logs can be picked back up with-r. The stop-point is an elapsed time written as โseconds,nanosecondsโ ๐-t,--testโ opensnumbersimultaneous connections to the log server and sends the specified I/O log file over each one. This is clutch for performance testing ๐ฅ-V,--versionโ prints thesudo_sendlogversion and exits ๐
๐ง Debugging sendlog ๐ง
sudo_sendlog has a flexible debugging framework that you configure with Debug lines in the sudo.conf(5) file. It's giving full control ๐
For more info on setting up sudo.conf(5), check out its manual, bestie ๐
๐ FILES ๐
/etc/sudo.confโ Sudo front-end configuration โ๏ธ
๐ SEE ALSO ๐
sudo.conf(5), sudo_logsrv.proto(5), sudo(8), sudo_logsrvd(8) ๐ซถ
๐ AUTHORS ๐
Many people have worked on sudo over the years, but this version is mostly code written by:
- Todd C. Miller ๐
For an exhaustive list of everyone who's contributed to sudo, check the CONTRIBUTORS.md file in the sudo distribution, at https://www.sudo.ws/about/contributors/ ๐ธ
๐ BUGS ๐
If you think you've found a bug in sudo_sendlog, you can file a bug report in the sudo bug database at https://bugzilla.sudo.ws/, or open an issue at https://github.com/sudo-project/sudo/issues. If email is more your thing, you can message the sudo-workers mailing list, https://www.sudo.ws/mailman/listinfo/sudo-workers (public), or <sudo@sudo.ws> (private) ๐ง
๐จ Please do NOT report security vulnerabilities through public GitHub issues, Bugzilla, or mailing lists! Instead, email them to<Todd.Miller@sudo.ws>. You can encrypt your message with PGP if you want, using the key found athttps://www.sudo.ws/dist/PGPKEYS. Security stuff needs to stay private, periodt ๐
๐ซง SUPPORT ๐ซง
Limited free support is available through the sudo-users mailing list. Check https://www.sudo.ws/mailman/listinfo/sudo-users to subscribe or to search the archives ๐ฌ
๐ซ DISCLAIMER ๐ซ
sudo_sendlog is provided โAS ISโ, and any express or implied warranties are disclaimed, including (but not limited to) the implied warranties of merchantability and fitness for a particular purpose. For complete details, see the LICENSE.md file distributed with sudo or https://www.sudo.ws/about/license/ ๐
okay bestie, that's the whole page! ๐ This was SUDO_SENDLOG(8) from sudo 1.9.17p2, dated July 14, 2024, and it's literally the most iconic little tool ๐โจ Now go send those logs, slay ๐ ๐
๐ฆ where this page comes from
- alpine 3.24: sudo-doc 1.9.17_p2-r2 ยท custom ISC
- arch rolling: sudo 1.9.17.p2-6 ยท custom
- fedora 43: sudo-logsrvd 1.9.17-7.p2.fc43 ยท ISC
- fedora 44: sudo-logsrvd 1.9.17-10.p2.fc44 ยท ISC
- fedora 44: sudo-logsrvd 1.9.17-7.p2.fc44 ยท ISC
- nixos 26.05: sudo 1.9.17p2
- nixpkgs unstable: sudo 1.9.17p2
- ๐ the page's license: ISC
- Copyright (c) 2019-2024 Todd C. Miller <Todd.Miller@sudo.ws>
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms