To print the logs for a service, run:
kurtosis service logs $THE_ENCLAVE_IDENTIFIER $THE_SERVICE_IDENTIFIER
$THE_ENCLAVE_IDENTIFIER and the
$THE_SERVICE_IDENTIFIER are resource identifiers for the enclave and service, respectively. The service identifier (name or UUID) is printed upon inspecting an enclave.
By default, logs printed in the terminal from this command are truncated at 200 lines. For a stream of logs, we recommend the
-f flag. For a snapshot of the logs at a given point in time (e.g. after a change), we recommend the
The following optional arguments can be used:
-followcan be added to continue following the logs, similar to
--match=textcan be used for filtering the log lines containing the text.
--regex-match="regex"can be used for filtering the log lines containing the regex. This filter will also work for text but will have degraded performance.
--invert-matchcan be used to invert the filter condition specified by either
--regex-match. Log lines NOT containing the match will be returned.
--regex-match flags cannot be used at the same time. You should either use one or the other.