anjuna-log-receiver

A service that receives enclave log messages.

SYNOPSIS

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

DESCRIPTION

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 [Options]

Options:
  -n, --enclave-name string  Name of the enclave (default: “enclave”)
      --help                 Display usage info

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