anjuna-log-receiver

anjuna-log-receiver --enclave-name <enclave-name> [OPTIONS...]

A service that receives enclave log messages.

anjuna-log-receiver is an optional syslog receiver service that runs on the host VM and receives enclave log messages. anjuna-log-receiver is useful when you want to view the enclave logs, which you can do by directing the logs into a file.

anjuna-log-receiver must be run prior to starting an enclave.

If the enclave is using an enclave name (--enclave-name), the log receiver should use the same enclave name (same --enclave-name parameter).

Options

Usage

anjuna-log-receiver --enclave-name <enclave-name> [OPTIONS...]

-n, --enclave-name

(Recommended) Custom name assigned to the enclave by the user, used to uniquely identify an enclave (default: enclave)

Global options

The following options are available for all commands.

Global options

-h, --help

Prints the help information for the command

-v, --version

Prints version information

Exit status

  • 0 on success

  • > 0 on error

Example

In the following example, anjuna-log-receiver is used to direct the logs of an enclave named example into the file log.txt:

$ anjuna-nitro-netd-parent --enclave-name example --expose 80 --daemonize
$ anjuna-log-receiver --enclave-name example > log.txt &
$ sleep 2
$ anjuna-nitro-cli run-enclave --enclave-name example --cpu-count 2 \
  --memory 2048 \
  --eif-path app.eif

You can view the logs in real-time using tail -f:

$ tail -f log.txt