Use the lttng command line tool to monitor events as they arrive.
Procedure
- Ensure that the microservice you wish to trace is not running.
- On a Unix command line prompt, create a live tracing session by entering the following command:
- Enable Log4j logging with the following command:
- Start the tracing session with the following command:
- Start the microservice.
- To see incoming events live, enter the following command:
Results
LTTng starts receiving events as they arrive with a one-second interval by default. Refer to
http://lttng.org/docs/#doc-lttng-live for more information about supported live logging options, including the monitoring of a remote microservice.