Create a test topic in Hermes using the Kafka client
Create a topic for sending and receiving test messages in the Hermes Kafka cluster.
Before you begin
- Secure your Kafka topics by generating a ServiceNow® instance-signed certificate and keystore. You must provide truststore and keystore details when you configure a producer to create a topic in Hermes. See Set up a secure connection to the Hermes Messaging Service.
- Download and install Apache Kafka. See Prepare your Apache Kafka client environment.
Role required: admin
About this task
The full Hermes Kafka topic name is composed of the following elements:
snc.<instance_name>.<namespace>.<app_id>.<topic_name>
where:
<instance_name>is the name of your instance<namespace>is the namespace of the domain your Kafka topic belongs to (optional)<app_id>is your application IDThe topic you create belongs to this application. Specify either of the following:
sn_logstoanalyticsfor Log Export Service topicssn_streamconnectfor Stream Connect topics
<topic_name>is the unique name for your topic
Note:
The full topic name is case-sensitive and limited to 200 characters.
Procedure
Result
A test topic is created in the Hermes Kafka cluster.
What to do next
Produce test messages to a Hermes topic using the Kafka client