Guided setup for MID Server consumers

  • Release version: Australia
  • Updated March 12, 2026
  • 8 minutes to read
  • Implement the following steps for a complete guided setup for MID Server consumers.

    Before you begin

    Navigate to Log Export Service (LES) > MID Server Consumer > Guided Setup. Select the type of setup you wish to configure and select Continue.
    Note:
    During the Log Export Service application installation, ServiceNow will provision the underlying Hermes Messaging Service infrastructure. Be aware that this process can take up to a couple of hours to complete from the time you request the Log Export Service application installation.

    Role required: admin

    Procedure

    1. Review Hermes Messaging Service Diagnostics.

      It is recommended that you verify that the Hermes Messaging Service is up and running with the Hermes diagnostic tool, which displays on screen during this step. If you see a "Page not found" error on this page, Hermes is not installed and you should contact your system admin.

      • Setup information: The following bootstrap information is used to connect to the Hermes Messaging Service. The "Producer Bootstrap" is the connection used to send messages into Hermes and "Consumer Bootstrap 1 & 2" are used to retrieve messages from Hermes.
        • Producer Bootstrap
        • Consumer Bootstrap 1
        • Consumer Bootstrap 2
      • Instance PKI: The Instance Public Key Infrastructure (PKI) component allows a ServiceNow instance to act as an issuer in a X.509 trust hierarchy.
      • Bootstrap Connectivity: Select Run Test to confirm external client is able to connect to the defined instance ports (producer and consumer).
      • Instance Connectivity: Select Run Test to confirm the instance is able to send and receive messages.
      • View Topics: Select the listed topic to retrieve the timestamp of the last known message.
      Note:
      You can access Hermes Diagnostics in the future to troubleshoot potential connectivity issues by returning to this step of the guided setup or by navigating to All > Hermes Messaging Service > Diagnostics.
    2. Generate certificates for a secure connection to Hermes Messaging Service and pull log events from it.

      Setup secure connection to Hermes Messaging Service. See Set up a secure connection to the Hermes Messaging Service for LES for more information. You will need these certificates for authentication and authorization in the client which will pull the logs from Hermes.

      Note:
      admin or Hermes_admin roles are required for this step.
    3. Configure Log Producer: Choose log sources to export and configure their filters.
      Complete the following tasks to configure the Log Producer.
      • Configure log sources to export: Create one Source record for each of the log sources that you want to export.
        Note:
        admin or sn_logstoanalytics.admin roles are required to complete this step

        To create a new Source, navigate to Log Export Service > Sources

        1. Select New at the top right corner
        2. Select a Source Type
        3. Select a Table
        4. Select a Log Level that can be used to control logging output
        5. Select or create a topic to which that log source will be exported. If you are creating a new topic, fill out the following fields:
          • Name: Name of the topic you're creating
          • Application ID: Enter sn_logstoanalytics
          • Namespace: Enter Default Namespace
          • Partition: The partition field of a topic in Hermes refers to the partitions into which the topic’s data is divided. It plays a key role in scalability and parallelism.
        6. Select a Filter Type condition to forward logs selectively.
          Note:
          Filter Type options differ depending on the selected source type.
        7. Select Update
        When successfully created, it will display the name of the Hermes topic to which that log source will be exported to. Write down the topic name, you will need it later when configuring your log consumer system.

        The Active field controls whether or not that log source is going to be exported or not. If you see errors, go back to the Check Hermes Diagnostics task and verify Hermes status.

      • Validate Log Producer: Once you have created a Source to produce logs from, you can see live log records in the topic using Hermes Messaging Service > Hermes Topic Inspector.
        1. Select External Topics
        2. Select List Topics
        3. Select row with your topic from previous step (listed in Sources)
        4. Adjust message start date if necessary
        5. Select View to see a log message that was exported to the topic
    4. Install MID Server: You must install and configure a dedicated MID Server running Vancouver or later.
      Complete the following tasks to install the MID Server.
      • Install dedicated MID Server: The MID Server that Log Export Service uses should be dedicated for only this purpose and should not be expected to run other processes. This is important to ensure timely delivery of exported log messages to your REST endpoint. You can install the new MID Server either by using the Use MID Server guided setup or by installing it manually. For the manual installation, follow the Configure MID Server network connectivity documentation first and then the Installing the MID Server documentation after that.
      • Validate MID Server: You must manually validate the MID Server after it is installed to enable it to execute automation tasks. To validate the MID Server you are dedicating for LES, see Validate the MID Server
      Note:
      If you configure a MID Server for this application, MID Server proxy settings do not apply to Hermes connectivity. MID Server proxy configuration applies only to HTTP-based communication. Because Hermes uses Kafka-native TCP connections, traffic to the Hermes cluster bypasses proxy settings regardless of MID Server configuration.
    5. Configure Log REST Push Destination: Setup the MID Server to be able to push logs to your log analytics system (such as Splunk).
      Complete the following tasks to configure log REST push destination.
      • Add MID Properties: You must add MID Server properties so that it’s able to connect to Hermes. Navigate to MID Server >Properties and set the appropriate values for each of the properties listed below.
        Name Value
        mid.les.kafka.ssl.truststore.password <password>
        mid.les.kafka.ssl.keystore.password <password>
        mid.les.kafka.ssl.key.password <password>
        mid.les.kafka.ssl.truststore.location <your_path>/<truststore>.p12
        mid.les.kafka.ssl.keystore.location <your_path>/<keystore>.p12
        mid.les.kafka.ssl.truststore.type PKCS12
        mid.les.kafka.ssl.keystore.type PKCS12
        mid.les.kafka.client.id <instance_name>
        mid.les.kafka.group.id snc.<instance_name>.group1
        mid.les.kafka.bootstrap.servers <instance_name>.servicenow.com:4100,<instance_name>.servicenow.com:4101,<instance_name>.servicenow.com:4102,<instance_name>.servicenow.com:4103
        mid.les.kafka.set2.bootstrap.servers <instance_name>.servicenow.com:4200,<instance_name>.servicenow.com:4201,<instance_name>.servicenow.com:4202,<instance_name>.servicenow.com:4203
        Follow these notes on how to obtain some of the above values
        • <password> is the password you set for the keystore and truststore
        • <your_path> is the file path to the directory where you keep the keystore and truststore files you downloaded. The certificates need to be on the server where you are running MID
        • <instance_name> is the name of your ServiceNow instance. If you are not sure, you can find it in the sys_properties table
        • You can obtain the values for both mid.les.kafka.bootstrap.servers and mid.les.kafka.set2.bootstrap.servers from the Hermes Diagnostics page. Navigate to Hermes Messaging Service > Diagnostics and copy the strings under Consumer Bootstrap 1 and Consumer Bootstrap 2 respectively.
      • Configure Destination: Create a new Destination Configuration record, which defines the REST endpoint that this Extension will forward logs to.
        Note:
        admin or sn_logstoanalytics.admin roles are required to complete this step.
        1. Navigate to Log Export Service (LES) > Destination Configurations
        2. Create a new configuration record
        3. Specify the URL for your desired endpoint for the exported log sources
        4. Search for or create new credentials to connect to your endpoint. When creating credentials for your endpoint, note that only the following credential types are valid with LES: Basic Auth and OAuth
        5. Search for or create a new transform script. We ship with the prewritten script, SplunkTransform for Splunk
    6. Configure LOG Consumer: Follow these tasks to configure your MID Server Extension for Log Export Service purposes.
      • Configure LES Consumer Context: In this step, you will update the LES Consumer record to execute on the dedicated MID server you just installed for the Log Export Service. Navigate to MID Server > Extensions > LES Consumer Context and update the LES Consumer record by setting the following fields:
        • Select on 'LES Consumer' to open the MID Server context record
        • Select Specific MID Server for the "Execute on" field
        • Enter the name of the MID you validated in the previous step for the “MID Server” field
        Note:
        • Each Consumer is designed to process data from a single Hermes topic using its own Consumer Context.
        • Each Consumer Context runs on a dedicated MID Server to ensure optimal performance.
        • We recommend configuring a separate MID Server for each Consumer Context you create.
      • Configure Consumer: Create a new Consumer record, which represents the process that’s part of the Log Export Service MID Server Extension. Navigate to Log Export Service (LES) > Consumers and create a new configuration record specifying the Hermes topic to retrieve log messages from and the Destination to relay them to. When you select the Consumers module, it shows information about the consumer name and the destination configuration.
        1. Create new Consumer record
        2. Choose a source topic from the dropdown
        3. Choose destination configuration
      • Test MID Connection: Verify connectivity from the MID Server environment to the Hermes cluster before starting the Consumer.

        Roles required: admin or sn_logstoanalytics.admin

        Navigate to Log Export Service (LES) > Consumers and test the connection:
        1. Open the existing Consumer record.
        2. Click the Test MID Connection UI Action
          1. This validates connectivity between the MID Server environment and the Hermes cluster
          2. The Status field will change to “Checking Kafka Network Connectivity”
        3. Wait for the test to complete, then refresh the page
        4. Review the Status and Status Detail fields
        5. If successful: Network connectivity is confirmed. Refresh the page and verify the Status and Status Detail fields reflect success.

          Start the consumer.

        6. If unsuccessful: Please pause before proceeding. Review the MID Server agent logs to understand the cause. Common areas to verify include:
          1. MID Server properties are correctly configured
          2. Network connectivity is available between the MID Server and the Hermes cluster
        Note:
        The Test MID Connection must succeed before starting the Consumer.
      • Verify MID Server integration: Navigate to  Log Export Service (LES) > Consumer Status and view the  Status and Status Details fields of the record defined. The information in these fields reports the current state of the process running on the MID server, including any errors that may have been encountered while relaying messages to the REST endpoint. This is a status view page only. Navigate to Log Export Service (LES) > Consumers if you want to create a new consumer record.  If the Consumer status indicates that the process has started, you should be able to inspect your endpoint to view the logs that have been relayed to it.  Additionally, you can view the logs on the MID Server to see if there are additional details about any errors that might be encountered. You can also enable Debug logging on the MID Server to get additional information if needed.
        Note:
        If you make any change in one of the Consumer records, it shows up on the Consumer Status view page. If you select a consumer record name on the Consumer Status list, the Consumer form for the selected record opens. You can then update the Name and Destination Configuration of the selected record.