Skip to content

Architecture and Prerequisites

EUM data flow and what to prepare before installing End User Monitoring.

4 min read Updated SS

Architecture and Prerequisites#

This guide walks you through installing and integrating HEAL End User Monitoring (EUM) end to end: embedding the EUM SDK in your web application, configuring the backend for OpenTelemetry (OTEL) trace ingestion, installing the LogScan agent on target servers, and deploying the Grafana dashboards where the data lands. For what EUM measures and how it fits into HEAL's digital experience story, start with Digital Experience Monitoring and End User Monitoring (EUM).

EUM captures transaction-wise response times as perceived by real users — along with JavaScript errors, network and AJAX issues, HTTP errors (404, 500), and end-user metadata such as browser, operating system, device type, geographic region, user ID, and session identifiers. Its user-agent-independent architecture works across traditional browser-based applications and modern HTML5 web apps without per-browser adjustments. Mobile applications are covered by the companion Mobile App Monitoring SDKs.

Architecture#

The HEAL EUM SDK is a JavaScript file that measures page load times as experienced by real users. To monitor a target application, the SDK is embedded in the web pages you want to observe — either in every page, or only in specific pages that require monitoring. Integration can also be done at the web server level using substitution modules such as mod_substitute and mod_sed (the HTTPD approach), which avoids touching application code.

The SDK records end-user events and appends the gathered data to the target application's access logs as part of the query string. The LogScan agent — built on Rsyslog and Filebeat — filters this log data and forwards only EUM-related events to the OpenSearch ingest node, where an ingest pipeline (powered by Logstash) parses and processes the data before storing it in OpenSearch.

For visualization and analysis, Grafana queries OpenSearch to populate the EUM dashboard. Grafana's integration with HEAL Keycloak ensures secure access to the dashboard.

Prerequisites#

Before configuring and deploying EUM, confirm the following requirements for each component in the pipeline.

Note

The EUM SDK files (heal-eum-sdk.js / healeum-1.0.0.min.js), the LogScan agent installer, and the Grafana dashboard JSON files are delivered with the HEAL release package. Contact HEAL Support at support@healsoftware.ai if you do not have them.

Target Application#

  • Authorization to embed JavaScript files and snippets into the application.
  • Availability of healeum-1.0.0.min.js within the application environment.

Target Server#

  1. Access to logs — Read-only access to the target application's access logs, which must contain:
    • URL with query string
    • Response time
    • Response size
    • User ID
  2. Installation privileges and communication
    • Root or sudo permissions for installing tools such as LogScan, Filebeat, and Rsyslog.
    • Network access through the HEAL LogScan ports (12791 and 4318) as detailed in the HEAL Firewall and Access Requirements (FAR) document.
    • An established communication link with the OpenSearch instance.
  3. Web server configuration
    • Verify that redirection modules such as mod_substitute, mod_filter, and mod_sed are available in the web server's distribution. Module availability differs by web server version and operating system.
    • Back up configuration files before implementing any modifications.

HEAL Server#

  1. Ensure HEAL is installed.
  2. Enable the access log on the application or web server with the recommended log format for Logstash pipeline ingestion (contact support@healsoftware.ai for deviations):

    LogFormat "%{X-Forwarded-For}i %h %a %A %p %b %l %u %t \"%r\" %>s %D \"%{Referer}i\" \"%{User-Agent}i\" %{JSESSIONID}C %{was}e TIME: %T" a1logFormat
    
  3. Ensure the following pipeline and policy are present in OpenSearch:

    • heal-dem-ingest-pipeline
    • heal-dem-ism-policy

Mobile Application Monitoring#

Note

HEAL provides native SDKs for Android (Kotlin, minSdk 26) and iOS (HealEUMKit, iOS 13+), in addition to Flutter and React Native support. Integration steps for supported platforms are in Mobile SDK Integration Guides.

If you plan to monitor mobile applications, also ensure the following:

  1. HEAL is installed.
  2. The mobile application is built on a supported platform: native Android (8.0 and above), native iOS (13.0 and above), Flutter, or React Native.
  3. Network access to the HEAL OTEL Collector on port 4318 is available, as specified in the FAR document.
  4. The JIM agent is installed on the mobile app's backend and any intermediate services for effective trace collection and propagation.

Integration Readiness Checklist#

Work through this checklist before starting — each item maps to a step later in this guide.

  • Application type — Confirm whether the application is a web application, a hybrid app, or a mobile application. This determines which integration sections apply.
  • Technology stack — Identify the frontend and backend frameworks and technologies used by the application.
  • Web server — Identify which web server serves the application. The injection steps in this guide cover Apache HTTPD and IBM HTTP Server (IHS); other web servers require equivalent substitution and redirection rules from your web administrator.
  • Target server OS — Note the operating system of the server hosting the application; configuration syntax differs (for example, RHEL/CentOS vs. Solaris).
  • Injection point — Identify a common web page or base template file where the SDK script can be injected once. If none exists, plan for per-page injection and coordinate with the application development team to modify the relevant JSP/HTML/JS files.
  • Access logs — Confirm the web server generates access logs, or that access logging can be enabled in the recommended format.
  • LogScan agent access — Confirm that read-only access to the application's access logs can be granted on each target host where the LogScan agent will run.