Backend Configuration for OTEL Data Ingestion
Backend Configuration for OTEL Data Ingestion in EUM Installation & Integration Guide.
Backend Configuration for OTEL Data Ingestion#
Properly configuring your backend for OTEL (OpenTelemetry) data ingestion is crucial for capturing trace data effectively. This involves setting up redirection for POST requests on the /v1/traces endpoint to your HEAL OTEL Collector:
- Web server redirection — If using a web server for data ingestion, configure it to redirect requests to the OTEL Collector on port 4318 (or another available port). See Redirecting Trace Requests through the Web Server above.
- HAProxy redirection — For setups using HAProxy for data ingestion, ensure it is configured to redirect requests to the OTEL Collector on port 4318 (or another available port).
- Port configuration — Verify that port 4318 (or your chosen port) is open, correctly configured for the OTEL Collector, and accessible from the web server to the application server.
OTEL Collector Configuration#
Once the backend setup is complete, configure the OTEL Collector to enable trace collection:
- Open the OTEL Collector's
config.yamlfile and navigate to thereceiverssection. - Under the HTTP protocol for OTLP, set the
endpointvalue to0.0.0.0:4318, or the port you configured in your backend. - Set
allowed_originsto the origin(s) from which OTEL collections are allowed. -
Set
allowed_headersto the HTTP headers that the OTEL Collector must accept. For example:receivers: otlp: protocols: http: endpoint: 0.0.0.0:4318 # Update based on the port configured in your proxy/server cors: allowed_origins: ["https://approved-app.example.com"] # List only approved application origins allowed_headers: ["traceparent", "content-type"] # List only headers required by the integration max_age: 7200 jaeger: protocols: grpc: endpoint: 0.0.0.0:14250 # Ensure both receivers are enabled in the service trace pipeline: # receivers: [otlp, jaeger]
Restart and Verification#
To finalize the setup, restart services and verify the integration:
- Restart HAProxy / web server — Apply the configuration changes by restarting the HAProxy or web server.
- Verify the OTEL backend — Check that the OTEL backend is operational and correctly receiving data.
- Restart the OTEL Collector — With the backend confirmed operational, restart the OTEL Collector to apply any configuration changes.
- Final checks — Restart the web server and review the logs from the LogScan agent (Filebeat/Rsyslog) to confirm successful integration.
Setting Up the Target Environment#
Installing the LogScan Agent#
- Ensure you have root or sudo privileges on the target system.
-
Run the installation command in the terminal.
For AIX/Solaris:
sudo ./install.sh <user> <group name>For Linux:
sudo ./install.shThis initiates the LogScan agent installation. The installer is delivered with the HEAL release package (contact HEAL Support).
Configuring Filebeat#
- Use the Filebeat OSS version
7.12.1-x86_64.rpmfor installation. For download instructions, see the OpenSearch documentation. - In the
filebeat.ymlfile located at<Install path>/filebeat/etc/filebeat, apply theoutput.elasticsearchconfigurations. - Update the configuration with the OpenSearch username and password.
-
By default, Filebeat uses a specific index format. To use a custom index, add the following configuration:
output.elasticsearch.index: "heal-dem-raw-%{+yyyy.MM.dd}" setup.template.name: "heal-dem-template" setup.template.pattern: "heal-dem-raw-*"Ensure that the referenced index template name exists, or Filebeat will revert to the default template.
-
Add the Filebeat metadata configuration as follows:
dem_meta_data: "agentUid=<unique id>,serviceId=<service id>,applicationId=<application id>,responseTimes.responseTimeType=EUM,tcpTransaction=null,txnType=1" -
To enable Filebeat to connect with OpenSearch, execute the following API call in the OpenSearch Dev Tools:
PUT _cluster/settings { "persistent": { "compatibility": { "override_main_response_version": true } } }
Configuring Rsyslog#
- Locate the following configuration files at
<Install path>/rsyslog.d/logscan-rsyslog:01-logscan-rsyslog-json-template.conf50-logscan-rsyslog-imfile.conf60-logscan-rsyslog-output-omfwd.conf
-
In
60-logscan-rsyslog-output-omfwd.conf, update the ruleset forSendEUMdataToLogScanwith the target IP and port:Target="<IP of HAProxy server>" Port="12791" -
Update the Rsyslog metadata configuration in
50-logscan-rsyslog-imfile.confas needed:agentUid=<unique id of agent>,serviceId=<Id of the service>,applicationId=<Id of the application>,responseTimes.responseTimeType=EUM,tcpTransaction=null,txnType=1Example:
agentUid=eum-txn-agent-id_2,serviceId=service_01,applicationId=application_12,responseTimes.responseTimeType=EUM,tcpTransaction=null,txnType=1 -
Start the agent from the
selfhealdirectory usingstart.sh.
Note
Make sure Logstash is configured on the HEAL server.
Mobile Application Integration#
HEAL Mobile App Monitoring (MAM) extends end-user monitoring to mobile applications with SDKs for native Android (Kotlin, minSdk 26), native iOS (HealEUMKit, iOS 13+), Flutter, and React Native. The SDKs intercept API calls, construct traces using the configured export path, and post sampled telemetry to the HEAL OTEL Collector. The SDK is designed for asynchronous export; validate overhead and exporter-failure behavior in the target application.
Platform-specific SDK integration steps are maintained in Mobile App Monitoring. Before starting, confirm the Mobile Application Monitoring prerequisites earlier in this guide; after integrating an SDK, return to Backend Configuration for OTEL Data Ingestion above to complete the server side.
Validate Mobile Trace Ingestion#
- Send one controlled request from the instrumented test application.
- Confirm that the collector returns the expected successful response without weakening TLS or CORS controls.
- Verify that the expected mobile span is present and correlates with available backend spans.
- Confirm the approved sampling, URL exclusions, and non-sensitive attribute allowlist.
- Test exporter failure and confirm acceptable application behavior, telemetry volume, and performance.
Supported mobile trace data appears in the configured EUM and trace views after the ingestion and indexing path completes.