View connector status
This section describes how to view connector status usingsnctl, pulsarctl, pulsar-admin, Rest API, and console.
If you want to monitor connectors using
snctl, pulsarctl or pulsar-admin, Rest API, make sure you have set up your client tool. For more information, see set up client tools.test.
- snctl
- pulsarctl
- pulsar-admin
- Console
- Rest API
To check the status of the source connector
test, run the following command:View connector logs
View the connector logs using snctl
This section describes how to view connector logs using snctl.
This example assumes you have installed snctl and initialized snctl configurations.
snctl logs command to view logs for a specific connector. This table outlines the configuration options that are used for viewing connector logs. For details about all supported fields, you can use the snctl logs -h command to list more information.
The following command example shows how to view up to 60 lines of the
data1 sink connector’s logs within the last 5 hours.
View the connector logs from log topics
StreamNative Cloud provide an alternative implementation of the Pulsar Functions log topic(see Pulsar Functions log topic) feature calledsidecar mode, which supports using such feature in Connectors.
To enable the sidecar mode, user should provide the following configurations when deploying the connector:
custom-runtime-options, see Custom runtime options.
Once the connector is deployed with the sidecar mode, you can configure consumers to consume messages from the log topic.