Log Export Service (LES) is a ServiceNow application that forwards a copy of instance system and application logs to an external analytics tool as the events are generated. The events pass through the Hermes Messaging Service, a Kafka-based transport, and you choose what leaves the instance by creating a source record for each log source.
Which logs Log Export Service can export
LES draws from system log tables, audit tables and application node log files. The table lists the supported sources and what each one records. For background on outbound web service calls, see the outbound REST message concept.
| Log source | What it records |
|---|---|
| syslog | Warnings and errors for instance processes and records, plus non-critical events such as memory usage |
| syslog_transaction | Browser activity for the instance |
| sys_outbound_http_log | Requests and responses for outbound web services such as REST and SOAP |
| sys_audit | Changes made to tables chosen for auditing |
| sys_audit_delete | Record deletions on audited tables |
| sys_audit_relation | Changes to tracked reference fields on audited records |
| sys_flow_log | Execution details and status of flow engine processes |
| sys_user_login_history | Login attempts and authentication events |
| Node log files | Errors recorded in the localhost log files on each application node |
Version 3.6 of the application added four of these tables: sys_flow_log, sys_user_login_history, sys_audit_delete and sys_audit_relation. The last two extend the audit trail beyond ordinary field changes, so record deletions and reference field changes are included. For the flow engine itself, see the Flow Designer guides.
Creating a log source record
Open All > Log Export Service > Sources, then select New, or open an existing source to change it. The form has seven fields that shape what is exported.
| Field | What it controls |
|---|---|
| Source Type | Whether the source is a node log or a table |
| Log Level | The severity threshold; each level forwards logs of that severity and of greater severity |
| Table | The table to export when the source type is Table |
| Filter Type | Conditions for forwarding selectively, shown for syslog, sys_audit, sys_audit_delete and sys_audit_relation |
| Topic | The Hermes topic the source writes into, chosen from existing topics or created through the lookup icon |
| Accepts | The format of forwarded logs, JSON or plain text |
| Active | Whether the log source is exported |
For a node log, and for any table other than syslog and sys_audit, submitting the form completes the configuration. The record also displays the name of the Hermes topic that the source exports to. Write that name down, because the consumer that pulls the logs needs it.
Topics and filters for syslog and audit tables
Syslog needs more setup. For syslog, choose a Log Level and select Submit. The Source topics related list then appears and the log export filters become available. Select New, choose a value in the Filter field (All, Application Family, Package or Scope), then select or create its topic.
The sys_audit table follows a similar pattern when its Filter Type is set to Log table. Create a source topic, choose the audited table in the Log table lookup, then choose or create the topic.
Multiple topics per source type let you send one subset of logs to a particular consumer. With separate topics, downstream consumers can subscribe to specific log sources independently. Creating them requires the sn_logstoanalytics.kafka.multi_topics property to be true, which defaults to false.
How logs reach an analytics tool
Hermes is a ServiceNow AI Platform capability, a multi-tenant, multi-cluster transport and queuing service built on Apache Kafka. LES forwards a copy of each log event to Hermes as it is generated, and an external system reads the events from there.
An external analytics tool can read from Hermes in one of three ways.
| Connection option | How events move | Setup path |
|---|---|---|
| Dedicated MID Server | A MID Server installed on-premises or in the cloud pulls events continuously and pushes them over REST | MID Server consumer guided setup |
| Kafka connector from the analytics product | A connector pulls events and pushes them to the tool; for example Splunk | Kafka consumer guided setup |
| Direct Kafka client | An existing Kafka system uses the native Kafka protocol to pull events | Kafka consumer guided setup |
The right option follows the analytics stack you already run. For the Splunk side of that choice, see the Splunk integration guide.
Setting up a consumer with guided setup
The Kafka path opens from All > Log Export Service (LES) > Kafka Consumer > Guided Setup, and the MID Server path opens from All > Log Export Service (LES) > MID Server Consumer > Guided Setup. Both require the admin role. Installing LES provisions the underlying Hermes infrastructure, which can take up to a couple of hours after the install request.
Both paths follow the same core sequence.
- Review the Hermes diagnostics, including the producer and consumer bootstrap addresses, the connectivity tests and the View Topics action, which shows the timestamp of the last known message for a listed topic. A Page not found error means Hermes is not installed, so the system administrator needs to be contacted.
- Generate the certificates that secure the connection to Hermes. This step needs the admin or hermes_admin role. The client that pulls logs presents these certificates for authentication and authorization.
- Configure the log producer by creating one source record for each log source you want to export.
- Validate the producer in Hermes Messaging Service > Hermes Topic Inspector. Choose External Topics, select your topic and view a message to confirm records are arriving.
- Connect the consumer. A MID Server consumer needs the dedicated MID Server installed and validated, MID properties for the Hermes connection, a Log REST push destination, and a Consumer record that names the Hermes topic.
On the MID Server path, the Test MID Connection step has to succeed before the consumer starts. Each consumer reads a single Hermes topic through its own Consumer Context, so a second topic needs a second consumer. The Consumer Status view then shows the Status and Status Detail fields for each consumer record.
For Kafka, consumer processes can use separate bootstrap addresses that point at both Hermes Kafka clusters, which provides failover.
Roles and permissions
The application admin role, sn_logstoanalytics.admin, lets a non-admin user configure and use the application. The system administrator role, admin, is needed to install the application and carry out platform-level setup. The hermes_admin role generates the certificates for the Hermes connection. Version 3.6 added a read-only auditor role, sn_logstoanalytics.auditor. Neither the admin role nor the application admin role is an elevated role.
| Task | Required role |
|---|---|
| Create log source configurations and source topics | admin or sn_logstoanalytics.admin |
| Create a Log REST push destination and a Consumer record | admin or sn_logstoanalytics.admin |
| Test MID Connection and review the Consumer Status view | admin or sn_logstoanalytics.admin |
| Install the application and run the Kafka and MID Server guided setups | admin |
| Configure Kafka consumer processes and MID Server properties | admin |
| Generate certificates for the Hermes secure connection | admin or hermes_admin |
Pausing forwarding and checking export volumes
The system property glide.les.disable_logs_forwarding pauses LES log forwarding when it is updated, and setting it back resumes forwarding. It is intended for migration and database reseeding work, and changing it requires the admin role.
Open All > Log Export Service > Reports to see how much data each source sends. The Logs Exported (Monthly) widget shows megabytes per month over the last 395 days, and the Logs exported per source widget shows which sources those logs came from. Log Exported Per Source (Last 24 hrs) runs on a 24-hour timeline. Daily Log Events by Table counts events per day for syslog, syslog_transaction, sys_audit and sys_outbound_http_log. The data reflects a collection taken four hours earlier.
How Log Export Service relates to Health Log Analytics
LES is a ServiceNow Platform tool under a different license from Health Log Analytics (HLA), and it can export system logs into HLA. The bridge is a ServiceNow Log Export data input, a Hermes consumer inside HLA that streams node logs from Java code and JavaScript.
To set it up, confirm that Hermes is running with a green status icon. Generate an instance-signed certificate from All > Certificate Generator > Instance PKI Certificate Generator, download the keystore and truststore, and create a Basic Auth credential that uses the certificate password. Then open All > Health Log Analytics > Data Input > Data Inputs, select New, choose ServiceNow Log Export Hermes Consumer, attach the keystore and truststore, and save. The setup needs the evt_mgmt_admin role. The system holds one ServiceNow Log Export data input, which does not run on a MID Server.
How long does ServiceNow keep Identity and Access Audit records natively, and what must a buyer set up for longer evidence?
Identity and Access Audit records have a documented maximum native retention of 30 days, as of November 2026. The platform can permanently purge older audit records. A buyer who needs longer evidence has to set a retention period for each log source, confirm which events are captured, and export them to a store the buyer controls.
What a 30 day ceiling does to an investigation
A 30 day maximum means an event noticed later may have no native audit record to examine. The common failure is treating the audit trail as the evidence file. Access reviews and suspected misuse can surface weeks after the event, so compare that window with how quickly your team detects problems.
Coverage matters as much as the retention period
Table auditing records changes on enabled tables, but it does not establish that every data read or export is recorded. Before you set any retention period, list the events your evidence needs, such as the events your investigation depends on and the table that records each one. Then test which of them are captured, and record any excluded tables or fields and who approved the exclusion. A retention period applied to an incomplete log is a longer record of a partial picture.
Setup steps for longer evidence
- Write an audit-event matrix that names each required event, the table or source that holds it, and who reviews it.
- Set a retention period for each log source separately, and require approval before any change that would purge evidence.
- Confirm Log Export Service is in your entitlement, then check that every selected source delivers messages.
- Store the exported copy in a system you control, protected from deletion by people who administer the instance.
- Run a retrieval test: pick an event from several weeks back, find it in the external store and trace it to its source.
- Alert on failed delivery so a broken pipeline does not surface only when an investigation needs the data.
Retention periods differ by framework
NIST SP 800-53 Revision 5 leaves the audit retention period to the organization. The New Zealand Information Security Manual, version 3.9, published April 2025, recommends that agencies keep DNS, proxy and event logs for at least 12 months. That figure applies to those log types, not to every ServiceNow audit record. Set your period from investigation needs, records policy and contract obligations, and write down why.
Questions to settle before you sign off the retention plan
- Which audit tables are enabled on our instance, and who approved each exclusion?
- What retention applies to each audit table, and who can change it?
- Is Log Export Service in our entitlement, and has each selected source been tested?
Frequently asked questions
Which log sources can Log Export Service export?
The table in the first section lists them: system log tables, audit tables, the login history table and application node log files.
Do I need a MID Server to send logs to an analytics tool?
No. A dedicated MID Server is one option; a Kafka connector or a direct Kafka connection are the others. The choice depends on the analytics stack you already run.
What does a Page not found error on the Hermes diagnostics page mean?
It means Hermes is not installed on the instance. Contact the system administrator. The Hermes infrastructure is provisioned during the LES installation, which can take up to a couple of hours after the install request.
Is Log Export Service the same product as Health Log Analytics?
No. LES and HLA are separate products under different licenses. LES exports logs, and the ServiceNow Log Export data input streams node logs into HLA. The ServiceNow Log Export data input is the link between the two, and it is configured inside HLA.