To export Usage Insights data with the REST API, install the Usage Insights Data Export store app, prepare a secure Kafka consumer, and submit an export request for events. The API returns a job ID while processing runs in the background. Consume the resulting JSON batches from the managed Hermes topic.
Choose bulk export for recurring analytics ingestion
Usage Insights Data Export moves usage data into an enterprise analytics platform without a person downloading and transferring each file. Its asynchronous design separates the request from delivery: a successful submission gives your integration a job reference, while result batches arrive through Kafka as processing progresses.
The supported export data source is events. Start with the business question those events should answer, such as where an application journey loses users or which interactions accompany repeat usage. Then decide which columns and filters your analytics pipeline needs. Avoid treating the export as a request for all dashboard analyses.
The dashboard export serves a different workflow. It supports quick, smaller downloads as CSV or JSON files. The store app supports programmatic, large-volume, recurring transfers as JSON batches. Choose between them based on how the destination receives data and who operates the transfer, rather than on the file format alone.
For the wider architecture decision, review REST and SOAP integration patterns. For this pipeline, document both the API submission component and the Kafka consumption component so that neither team assumes the other owns delivery.
Prepare the application, access, and consumer
The role required for the export preparation task is sn_uxa_data_export.user. Install the Usage Insights Data Export store app, identified as sn_uxa_data_export, on the instance. Installation activates the data export REST API endpoint and provisions the managed Hermes topic used for results.
Availability is not yet universal: some regulated markets do not have the app yet. Check the store listing for your region before planning deployment. Treat access to the app and readiness of the destination as separate acceptance checks.
- Confirm the export app is installed and the account performing export preparation has sn_uxa_data_export.user.
- Prepare the Kafka consumer environment before assembling request parameters.
- Generate the instance certificate in the Instance PKI Certificate Generator, enter a keystore password, and download the keystore and truststore files for your Kafka client.
- Have the instance address and user credentials ready for API authentication.
- Assign owners for submission failures, consumer interruptions, and warehouse ingestion failures.
A consumer that cannot connect leaves accepted jobs without a working delivery path. Test connectivity before scheduling recurring requests. Confirm the consumer can reach both Hermes bootstrap groups on ports 4100 to 4150 and 4200 to 4250. Run one consumer process per cluster with the same consumer group ID, and de-duplicate by Kafka offset. Keep certificate handling within the integration’s credential management process, and record who will respond when connectivity fails.
Hermes runs two Kafka clusters for high availability, so the network team must permit outbound connections to both port ranges. If a connection fails, check that the keystore and truststore files exist at the paths in the consumer configuration, that the keystore password matches, that ports 4100 to 4150 and 4200 to 4250 are open on the firewall, and that the SSL property names are spelled correctly.
Review ServiceNow API access policies and authentication scope when planning the account boundary. Keep the export preparation role tied to the account that calls the export API. For automated exports, run the calls under a dedicated integration user that holds only this role.
Select events and define the first request
Navigate to the Usage Insights dashboard, search for the application to export, and select it. Open Events to inspect event names. Review the columns and available data before preparing the export request. This inspection connects the intended analytics question to data the application actually produces.
Specify the data source, selected columns, and any filters needed for the export. Begin with a bounded test window and a narrow set of columns. A smaller first request makes it easier to inspect the result structure and explain unexpected rows before increasing volume.
Write down the expected application, time window, event selection, and destination dataset before submitting. Use that record when reviewing delivered batches. For example, a destination report about a particular application journey should have an explicit event scope rather than an unexplained mixture of interactions.
Record submission details and destination processing rules side by side in the integration runbook. Record how the team will distinguish a new reporting period from a rerun of an earlier one. These are pipeline design decisions: settle them before automation turns a one-off request into a recurring feed.
For broader destination planning, see integration use cases for enterprise teams. Limit this export to usage events, and leave downstream analysts to decide how they combine those events with other enterprise data.
Track the job and verify downstream delivery
Submit the prepared request through the data export REST API and capture the response and job ID. The instance validates the request and returns the job ID immediately. The exported dataset is delivered separately, so an accepted request is the beginning of the delivery check.
As processing runs in the background, results are published in batches to the dedicated topic provisioned for the instance. A standard Kafka client consumes those batches using SSL certificate security. The account that runs the consumer needs the admin role. Make the consumer part of the first test, rather than postponing it until after request submission works.
Each batch arrives as JSON with a job_id that matches the ID returned at submission, a batch_num, a total_batches count, a list of column names, and rows. Every row is an array in the same order as the column names, so map values by position rather than assuming a layout. Batches can arrive out of order and occasionally twice. Sort by batch_num to rebuild the result set, treat the job as fully produced once batch_num equals total_batches, and de-duplicate by Kafka offset.
- Record the job ID alongside the request’s application, columns, filters, and date window.
- Observe whether the consumer receives result batches.
- Inspect the delivered JSON against the selected columns and intended event scope.
- Verify that the destination preserves the fields required for the planned analysis.
- Confirm the reporting dataset can be traced back to the recorded request.
If the API returns a job ID but analysts see no data, investigate the handoffs separately. Check consumer connectivity, batch ingestion, and destination processing before submitting the same request again. Repeated submissions can create additional work without explaining where delivery stopped.
For help planning this work, see ServiceNow implementation.
Schedule within the export limits
The request limit is 60 per hour per instance, shared across users and applications. Additional requests are throttled. Build a shared schedule for consumers of this capability so that independent integrations do not each plan against the entire allowance.
A single request can span up to 90 days. Split a longer historical requirement into bounded windows and record their coverage. Review the windows together before submission so that gaps or overlapping periods do not become unexplained changes in a downstream trend.
Results remain on the topic for 36 hours. Consumer operation therefore needs a shorter recovery plan than the historical analysis window. Alert on stalled consumption early enough to investigate and recover before results expire, and retain operational evidence in your own pipeline records.
The Base tier monthly export volume is 100 GB per customer account, aggregated across instances on a calendar-month basis. Select necessary columns and apply filters to control volume. Coordinate initial historical loads with recurring exports rather than treating each instance’s plan independently.
During acceptance testing, include an interrupted consumer and a rejected or throttled submission in the operating review. Agree how the team will identify the affected reporting window, decide whether another request is needed, and avoid confusing a repeated delivery with new activity.
Check collection and consent before diagnosing gaps
An admin can configure which applications Usage Insights tracks and the user tracking consent policies. Tracking is enabled by default for Next Experience, Mobile, and Core UI applications; Service Portal may require enabling. The Usage Insights plugin, com.glide.appsee, is activated by default on new and upgraded instances. Usage Insights is not supported for on-premises instances.
Compare the intended collection scope with the application selected for export. If a period contains less activity than expected, review collection and consent conditions alongside the request filters. This keeps the investigation from assigning a collection issue to the export transport.
For changing an individual’s advanced tracking selection, the required role is user. In the web-based UI, navigate to All > Usage Tracking Consent > Enable/Disable Tracking, select or clear Enable Tracking, and select Save. The selection applies across areas where Usage Insights advanced tracking takes place.