Create a test topic in Hermes using the Kafka client
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Now Platform Capabilities
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:
<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_logstoanalytics
for Log Export Service topicssn_streamconnect
for Stream Connect topics
<topic_name>
is the unique name for your topic
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
Related Content
- Prepare your Apache Kafka client environment
Install the Apache Kafka binaries on your Unix or Windows client machine.
- Produce test messages to a Hermes topic using the Kafka client
Produce test messages to a Hermes topic by configuring a producer client.
- Consume test messages from a Hermes topic using the Kafka client
Consume test messages from a Hermes topic by configuring two consumer clients.