Skip to content

Querying RUM Logs

Real User Monitoring SDKs send logs to the Coralogix Ingress API using a predefined JSON format that maintains a consistent structure across all logs. This uniformity makes it easy to query cx_rum logs with DataPrime, as all log types share the same overarching schema.

Each RUM log includes a common set of fields applicable to all event types. In addition, each specific event type has its own nested object containing fields unique to that event.

Currently, based on the enabled instrumentation, both browser and mobile SDKs can generate the following types of events:

  • resources
  • error
  • network-request
  • user-interaction
  • longtask
  • log
  • web-vitals
  • dom
  • custom-measurement
  • screenshot

Shared fields

These fields are included in all RUM logs, regardless of the event type. They provide contextual details such as session, event metadata, user identity, and environment information.
Full pathDescriptionExample valueField
Session context
cx_rum.session_context.ip_geoip.ipUser's IP address49.249.153.150ip
cx_rum.session_context.ip_geoip.ip_ipaddrAlternative IP address49.249.153.150ip_ipaddr
cx_rum.session_context.ip_geoip.location_geopoint.latLatitude of user location21.9974lat
cx_rum.session_context.ip_geoip.location_geopoint.lonLongitude of user location79.0011lon
cx_rum.session_context.ip_geoip.continent_nameContinent nameAsiacontinent_name
cx_rum.session_context.ip_geoip.country_nameCountry nameIndiacountry_name
cx_rum.session_context.ip_geoip.city_nameCity nameDelhicity_name
cx_rum.session_context.ip_geoip.postal_codePostal code90210postal_code
cx_rum.session_context.ip_geoip.is_localIs IP localFALSEis_local
cx_rum.session_context.browserBrowser nameChromebrowser
cx_rum.session_context.browserVersionBrowser version136.0.0.0browserVersion
cx_rum.session_context.deviceDevice typeDesktopdevice
cx_rum.session_context.hasRecordingCurrent session has recordingFALSEhasRecording
cx_rum.session_context.hasScreenshotCurrent session has screenshotFALSEhasScreenshot
cx_rum.session_context.onlyWithErrorModeError mode onlyFALSEonlyWithErrorMode
cx_rum.session_context.osOperating systemMacOSos
cx_rum.session_context.osVersionOS version10.15.7osVersion
cx_rum.session_context.prev_session.hasRecordingPrevious session had recordingTRUEprev_session_hasRecording
cx_rum.session_context.prev_session.hasScreenshotPrevious session had screenshotFALSEprev_session_hasScreenshot
cx_rum.session_context.prev_session.session_creation_datePrevious session creation time1748503307441prev_session_creation_date
cx_rum.session_context.prev_session.session_idPrevious session IDbfcd4bf5-c4ff-48fb-99d4-b1af603707e4prev_session_id
cx_rum.session_context.session_creation_dateCurrent session creation time1748514787150session_creation_date
cx_rum.session_context.session_idCurrent session IDc664895a-63d7-4997-ad88-ce753974ca3asession_id
cx_rum.session_context.user_agentUser agent stringMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36user_agent
cx_rum.session_context.user_idUser ID1234user_id
cx_rum.session_context.user_nameUser nameAviv Alushuser_name
cx_rum.session_context.x_forwarded_forForwarded IPs49.249.153.150,163.116.212.40x_forwarded_for
Event context
cx_rum.event_context.severityEvent severity3event_severity
cx_rum.event_context.typeEvent typeuser-interactionevent_type
Labels
cx_rum.labels.cxFeatureGroupIdFeature group IDdata-explorationcxFeatureGroupId
cx_rum.labels.cxFeatureIdFeature IDlogs-explorercxFeatureId
cx_rum.labels.releaseIdRelease IDweb-app@866faa56releaseId
Page context
cx_rum.page_context.page_fragmentsPage fragmentsquery-new/archive-logspage_fragments
cx_rum.page_context.page_urlPage URLhttps://zupee-prd.app.coralogix.in/#/query-new/archive-logs?id=A9JBQSSgVyIl1jtNbPHbf&page=0page_url
cx_rum.page_context.page_url_blueprintBlueprint URLhttps://zupee-prd.app.coralogix.in/#/query-new/archive-logs?id=A9JBQSSgVyIl1jtNbPHbf&page=0page_url_blueprint
cx_rum.page_context.referrerReferrerreferrer
General metadata
cx_rum.browser_sdk.versionSDK version2.8.3browser_sdk_version
cx_rum.environmentDeployment environmentmumbaisaasenvironment
cx_rum.platformPlatformbrowserplatform
cx_rum.timestampTimestamp1748514789996timestamp
cx_rum.version_metadata.app_nameApp nameweb-appapp_name
cx_rum.version_metadata.app_versionApp version866faa56app_version

User interactions

Tracks user actions such as clicks and inputs to understand behavior and flow.
Full pathDescriptionExample valueField
cx_rum.event_context.severitySeverity level of the event (e.g., 1–5)3severity
cx_rum.event_context.typeType of the eventuser-interactiontype
cx_rum.interaction_context.element_classesCSS classes of interacted elementcx-input-field ng-untouched ng-pristine ng-validelement_classes
cx_rum.interaction_context.element_idElement IDcx-input-3element_id
cx_rum.interaction_context.event_nameInteraction event nameclickevent_name
cx_rum.interaction_context.target_elementHTML element targetedINPUTtarget_element
cx_rum.interaction_context.target_element_inner_textInner text of target elementtarget_element_inner_text
cx_rum.interaction_context.target_element_typeType of target elementtexttarget_element_type

Network requests

Records details of XHR and fetch requests to monitor API usage and latency.
Full pathDescriptionExample valueField
cx_rum.event_context.severityEvent severity3severity
cx_rum.event_context.typeType of event detectednetwork-requestevent_type
cx_rum.network_request_context.durationDuration of the network request680request_duration
cx_rum.network_request_context.methodHTTP methodPOSTrequest_method
cx_rum.network_request_context.urlFull request URLhttps://ng-api-grpc.cx498.coralogix.com/com.coralogix.schemastore.v1.SchemaStoreService/SubmitUsageStatsrequest_url
cx_rum.network_request_context.status_codeHTTP response status code200status_code
cx_rum.timestampTimestamp of the event1748510384932timestamp
cx_rum.traceIdTrace identifier for observability8a6eb6a6131e8680c9b36cdeb424ccc4traceId
cx_rum.spanIdSpan identifier for tracing7b32e31e2275c1b4spanId

Errors

Captures JavaScript errors and exceptions to help identify and resolve issues impacting the user experience.
Full pathDescriptionExample valueField
cx_rum.error_context.error_messageError message textERROR Cannot read properties of undefined (reading 'map')error_message
cx_rum.error_context.original_stacktraceOriginal JavaScript stack traceArray of 10 stack frames (see details below)original_stacktrace

Resources

Logs the loading of external assets (like images, scripts, and stylesheets) to measure resource performance.
Full pathDescriptionExample valueField
cx_rum.event_context.severitySeverity level (info/warning)3severity
cx_rum.event_context.typeType of the eventresourcestype
cx_rum.resource_context.connectEndEnd of the connection phase67021.59999990463connectEnd
cx_rum.resource_context.connectStartStart of the connection67021.59999990463connectStart
cx_rum.resource_context.decodedBodySizeSize of decoded response body3993decodedBodySize
cx_rum.resource_context.deliveryTypeResource delivery type(empty)deliveryType
cx_rum.resource_context.domainLookupEndEnd of DNS lookup67021.59999990463domainLookupEnd
cx_rum.resource_context.domainLookupStartStart of DNS lookup67021.59999990463domainLookupStart
cx_rum.resource_context.durationTotal resource load time175.5duration
cx_rum.resource_context.encodedBodySizeSize of compressed body1375encodedBodySize
cx_rum.resource_context.entryTypeType of performance entryresourceentryType
cx_rum.resource_context.fetchStartStart of fetch67021.59999990463fetchStart
cx_rum.resource_context.finalResponseHeadersStartTime headers were received67196.79999995232finalResponseHeadersStart
cx_rum.resource_context.firstInterimResponseStartInterim response timing0firstInterimResponseStart
cx_rum.resource_context.fragmentsAssociated JS chunkchunk-K6NU6CD3.jsfragments
cx_rum.resource_context.initiatorTypeWhat triggered the resource loadscriptinitiatorType
cx_rum.resource_context.nameResource URLhttps://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.jsname
cx_rum.resource_context.nextHopProtocolProtocol used (HTTP/2)h2nextHopProtocol
cx_rum.resource_context.redirectEndEnd of redirect (if any)0redirectEnd
cx_rum.resource_context.redirectStartStart of redirect (if any)0redirectStart
cx_rum.resource_context.renderBlockingStatusWhether this blocked renderingnon-blockingrenderBlockingStatus
cx_rum.resource_context.requestStartTime request started67024.09999990463requestStart
cx_rum.resource_context.responseEndTime full response received67197.09999990463responseEnd
cx_rum.resource_context.responseStartTime response started67196.79999995232responseStart
cx_rum.resource_context.responseStatusHTTP status code200responseStatus
cx_rum.resource_context.secureConnectionStartStart of secure TLS handshake67021.59999990463secureConnectionStart
cx_rum.resource_context.serverTimingServer timing info[]serverTiming
cx_rum.resource_context.startTimeStart time of resource timing measurement67021.59999990463startTime
cx_rum.resource_context.transferSizeTotal bytes transferred (including headers)1675transferSize
cx_rum.resource_context.workerStartStart of any service worker involvement0workerStart

Long task

Detects main thread blocking operations to surface performance bottlenecks.
Full pathDescriptionExample valueField
cx_rum.event_context.severitySeverity level (e.g., info = 1, warning = 3, error = 5)3severity
cx_rum.event_context.typeType of RUM eventlongtasktype
cx_rum.longtask_context.durationTime the task blocked the main thread (in ms)84duration
cx_rum.longtask_context.entryTypeType of performance entrylongtaskentryType
cx_rum.longtask_context.idUnique identifier for the long task5885bbfc-cefa-4e33-aa9d-bbd3acf75c30id
cx_rum.longtask_context.nameSource of the long task (usually self or cross-origin)selfname
cx_rum.longtask_context.startTimeWhen the long task began (in ms since page load)3473.5startTime

Web vitals

Reports key performance metrics like LCP, FID, and CLS to assess the core user experience.
Full pathDescriptionExample valueField
cx_rum.event_context.severityEvent severity level (e.g., info = 1, warning = 3, error = 5)3severity
cx_rum.event_context.typeType of the eventweb-vitalstype
cx_rum.web_vitals_context.nameWeb vital type (Largest Contentful Paint)LCPname
cx_rum.web_vitals_context.valueMeasured LCP value in milliseconds18224value (ms)
cx_rum.web_vitals_context.ratingPerformance rating based on metric thresholdspoorrating
cx_rum.web_vitals_context.attribution.elementRenderDelayTime from page load to element render17605.4elementRenderDelay (ms)
cx_rum.web_vitals_context.attribution.lcpEntry.renderTimeTime from navigation start to LCP render18224renderTime (ms)
cx_rum.web_vitals_context.attribution.lcpEntry.sizeSize of the largest element contributing to LCP20160size (bytes)
cx_rum.web_vitals_context.attribution.timeToFirstByteTTFB value from navigation timing618.6timeToFirstByte (ms)
cx_rum.web_vitals_context.navigationTypeType of navigation (navigate, reload, etc.)navigatenavigationType
cx_rum.web_vitals_context.navigationIdIdentifier for navigation event1navigationId
cx_rum.web_vitals_context.idUnique identifier for the web vital metricv4-1748520702813-3468299023131id

Log

Provides general-purpose logging for application events and custom developer insights.
Full pathDescriptionExample valueField
cx_rum.event_context.severitySeverity level of the event (e.g., 1–5)3severity
cx_rum.event_context.typeType of the eventlogtype
cx_rum.event_context.sourceSource of the logcodesource
cx_rum.event_context.severityEvent severity1event_severity
cx_rum.event_context.sourceEvent sourcecodeevent_source
cx_rum.event_context.typeEvent typelogevent_type
cx_rum.log_context.data.event.log.customTriggerData.actionTypeLog action typeOtherlog_actionType
cx_rum.log_context.data.event.log.customTriggerData.extraData.exceptionInfo.error.statusCodeLog error status code5log_statusCode
cx_rum.log_context.data.event.log.customTriggerData.extraDataLog extra data as JSON objectMock not foundlog_statusMessage
cx_rum.log_context.data.event.log.customTriggerData.messageLog message[custom-dashboards] platform-overview.component - handleDataLoadingError: {"statusCode":5,"statusMessage":"Mock not found","metadata":{"map":{}}} - failedlog_message
cx_rum.log_context.data.event.triggerTypeLog trigger typecustomlog_triggerType
cx_rum.log_context.data.event.severityLog severity: 1-61log_severity
cx_rum.log_context.data.messageLog context message[custom-dashboards] platform-overview.component - handleDataLoadingError: {"statusCode":5,"statusMessage":"Mock not found","metadata":{"map":{}}} - failedlog_context_message

Dom

Logs changes and structures in the Document Object Model for advanced session analysis.
Full pathDescriptionExample valueField
cx_rum.event_context.severitySeverity level of the event (e.g., 1–5)3severity
cx_rum.event_context.typeType of the eventdomtype
cx_rum.snapshot_context.actionCountNumber of user actions recorded0actionCount
cx_rum.snapshot_context.errorCountNumber of errors recorded0errorCount
cx_rum.snapshot_context.hasRecordingIndicates if recording existstruehasRecording
cx_rum.snapshot_context.hasScreenshotIndicates if screenshot existsfalsehasScreenshot
cx_rum.snapshot_context.viewCountNumber of views recorded1viewCount

Custom measurement

Allows developers to send specific measurements relevant to their application logic.
Full pathDescriptionExample valueField
cx_rum.event_context.severitySeverity level of the event (e.g., 1–5)3severity
cx_rum.event_context.typeType of the eventcustom-measurementtype
cx_rum.custom_measurement_context.nameName of the custom measurementRUM errors page loadedname
cx_rum.custom_measurement_context.valueValue of the custom measurement167value

Screenshot

Captures visual snapshots during user sessions for enhanced debugging and replay context.
Full pathDescriptionExample valueField
cx_rum.event_context.severitySeverity level of the event (e.g., 1–5)3severity
cx_rum.event_context.typeType of the eventscreenshottype
cx_rum.screenshot_context.descriptionReason or description for the screenshotcreating a screenshot due to an error!description
cx_rum.screenshot_context.idUnique identifier for the screenshot event2c54846d-4a52-47dc-8911-cec10bf962b8id