---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create a test topic

# Create a test topic in Hermes using the Kafka client {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Create a topic for sending and receiving test messages in the Hermes Kafka cluster.

## Vorbereitungen

* 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](https://servicenow-prod.fluidtopics.net/E9eFecp0xYW~Av3YxMUT9w "Secure your Kafka topics by generating a ServiceNow instance-signed certificate.").
* Download and install Apache Kafka. See [Prepare your Apache Kafka client environment](https://servicenow-prod.fluidtopics.net/ZYiWlqUuWuaSEoXKY4w3kg "Install the Apache Kafka binaries on your Unix or Windows client machine.").
{#create-hermes-topic__ul_ryb_fwk_w1c}

Role required: admin

## Warum und wann dieser Vorgang ausgeführt wird

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 ID

  The topic you create belongs to this application. Specify either of the following:
  * `sn_logstoanalytics` for Log Export Service topics
  * `sn_streamconnect` for Stream Connect topics
  {#create-hermes-topic__ul_nf4_hch_1xb}
* `<topic_name>` is the unique name for your topic
{#create-hermes-topic__ul_nyw_fch_1xb}  
Hinweis:  
The full topic name is case-sensitive and limited to 200 characters.

## Prozedur

1. Navigate to the config directory where you extracted Kafka.
   * For example, on Unix:

         cd /home/user/Software/kafka/config

   * For example, on Windows:

         cd C:\Software\kafka\config

   {#create-hermes-topic__choices_fgv_zqt_w1c}
2. Configure a producer.
   1. Open the producer.properties file.
   2. Configure the following SSL properties:  

          security.protocol=SSL

          ssl.truststore.password=<truststore password>

          ssl.truststore.location=<path to truststore.p12>

          ssl.truststore.type=PKCS12

          ssl.keystore.password=<keystore password>

          ssl.keystore.location=<path to keystore.p12>

          ssl.keystore.type=PKCS12

          ssl.key.password=<keystore password>

      Replace the following placeholder variables:
      * `<truststore password>` with your truststore password
      * `<path to truststore.p12>` with the path to your truststore file
      * `<keystore password>` with your keystore password
      * `<path to keystore.p12>` with the path to your keystore file
      {#create-hermes-topic__ul_tvh_twp_twb}
   3. Save your changes in plain text.
   {#create-hermes-topic__substeps_jt5_lwp_twb}
3. Navigate to your Kafka directory.
4. Create a test topic by running the following command:
   * Unix:

         ./bin/kafka-topics.sh --create --topic snc.<instance_name>.<namespace>.sn_<app_id>.<topic_name> --command-config ./config/producer.properties --bootstrap-server <instance_name>.service-now.com:4000,<instance_name>.service-now.com:4001,<instance_name>.service-now.com:4002,<instance_name>.service-now.com:4003

   * Windows:

         bin\windows\kafka-topics.bat --create --topic snc.<instance_name>.<namespace>.sn_<app_id>.<topic_name> --command-config config\producer.properties --bootstrap-server <instance_name>.service-now.com:4000,<instance_name>.service-now.com:4001,<instance_name>.service-now.com:4002,<instance_name>.service-now.com:4003

   {#create-hermes-topic__choices_tvp_w3b_mxb}  
   Replace the following placeholder variables:
   * `<instance_name>` with your instance name (case-sensitive)
   * `<namespace>` with the namespace of the domain your Kafka topic belongs to (optional)
   * `<app_id>` with the application ID (case-sensitive)
   * `<topic_name>` with the unique topic name you want to use (case-sensitive)
   {#create-hermes-topic__ul_ogc_zch_1xb}

## Ergebnisse

A test topic is created in the Hermes Kafka cluster.

## Nächste Maßnahme

[Produce test messages to a Hermes topic using the Kafka client](https://servicenow-prod.fluidtopics.net/Z1US2uFaPjqGrMMt7EVNQw "Produce test messages to a Hermes topic by configuring a producer client.")

