# man > sudo_sendlog(8)

[SUDO_SENDLOG(8)](https://www.chedong.com/phpMan.php/man/SUDOSENDLOG/8/markdown)           BSD System Manager's Manual          [SUDO_SENDLOG(8)](https://www.chedong.com/phpMan.php/man/SUDOSENDLOG/8/markdown)

## 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
     **sudo**___**sendlog** can be used to send the existing **sudoers** I/O log _path_ to a remote log server such
     as [sudo_logsrvd(8)](https://www.chedong.com/phpMan.php/man/sudologsrvd/8/markdown) for central storage.

     The options are as follows:

### -A --accept-only
                 Only send the accept event, not the I/O associated with the log.  This can be used
                 to test the logging of accept events without any associated I/O.

### -b --ca-bundle
                 The path to a certificate authority bundle file, in PEM format, to use instead of
                 the system's default certificate authority database when authenticating the log
                 server.  The default is to use the system's default certificate authority database.

### -c --cert
                 when the connection to the remote log server is secured with TLS.

     **--help**      Display a short help message to the standard output and exit.

### -h --host

### -i --iolog-id
                 Use the specified _iolog-id_ when restarting a log transfer.  The _iolog-id_ is re‐
                 ported by the server when it creates the remote I/O log.  This option may only be
                 used in conjunction with the **-r** option.

### -k --key
                 when the connection to the remote log server is secured with TLS.

### -n --no-verify
                 If specified, the server's certificate will not be verified during the TLS hand‐
                 shake.  By default, **sudo**___**sendlog** verifies that the server's certificate is valid
                 and that it contains either the server's host name or its IP address.  This setting
                 is only supported when the connection to the remote log server is secured with TLS.

### -p --port
                 fault, port 30344.

### -r --restart
                 Restart an interrupted connection to the log server.  The specified _restart-point_
                 is used to tell the server the point in time at which to continue the log.  The
                 _restart-point_ is specified in the form “seconds,nanoseconds” and is usually the
                 last commit point received from the server.  The **-i** option must also be specified
                 when restarting a transfer.

### -R --reject
                 Send a reject event for the command using the specified _reject-reason_, even though
                 it was actually accepted locally.  This can be used to test the logging of reject
                 events; no I/O will be sent.

### -s --stop-after
                 Stop sending log records and close the connection when _stop-point_ is reached.  This
                 can be used for testing purposes to send a partial I/O log to the server.  Partial
                 logs can be restarted using the **-r** option.  The _stop-point_ is an elapsed time spec‐
                 ified in the form “seconds,nanoseconds”.

### -t --test
                 log file on each one.  This option is useful for performance testing.

### -V --version
                 Print the **sudo**___**sendlog** version and exit.

### Debugging sendlog
     **sudo**___**sendlog** supports a flexible debugging framework that is configured via Debug lines in the
     [sudo.conf(5)](https://www.chedong.com/phpMan.php/man/sudo.conf/5/markdown) file.

     For more information on configuring [sudo.conf(5)](https://www.chedong.com/phpMan.php/man/sudo.conf/5/markdown), please refer to its manual.

## FILES
     /etc/sudo.conf            Sudo front-end configuration

## SEE ALSO
     [sudo.conf(5)](https://www.chedong.com/phpMan.php/man/sudo.conf/5/markdown), [sudo(8)](https://www.chedong.com/phpMan.php/man/sudo/8/markdown), [sudo_logsrvd(8)](https://www.chedong.com/phpMan.php/man/sudologsrvd/8/markdown)

## AUTHORS
     Many people have worked on **sudo** over the years; this version consists of code written primarily
     by:

           Todd C. Miller

     See the CONTRIBUTORS file in the **sudo** distribution (<https://www.sudo.ws/contributors.html>) for
     an exhaustive list of people who have contributed to **sudo**.

## BUGS
     If you feel you have found a bug in **sudo**___**sendlog**, please submit a bug report at
     <https://bugzilla.sudo.ws/>

## SUPPORT
     Limited free support is available via the sudo-users mailing list, see
     <https://www.sudo.ws/mailman/listinfo/sudo-users> to subscribe or search the archives.

## DISCLAIMER
     **sudo**___**sendlog** is provided “AS IS” and any express or implied warranties, including, but not lim‐
     ited to, the implied warranties of merchantability and fitness for a particular purpose are
     disclaimed.  See the LICENSE file distributed with **sudo** or <https://www.sudo.ws/license.html> for
     complete details.

## Sudo 1.9.9                    September 17, 2021                    Sudo 1.9.9
