Skip to content

Backend Configuration for OTEL Data Ingestion

Backend Configuration for OTEL Data Ingestion in EUM Installation & Integration Guide.

4 min read Updated SS

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:

  1. 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.
  2. 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).
  3. 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:

  1. Open the OTEL Collector's config.yaml file and navigate to the receivers section.
  2. Under the HTTP protocol for OTLP, set the endpoint value to 0.0.0.0:4318, or the port you configured in your backend.
  3. Set allowed_origins to the origin(s) from which OTEL collections are allowed.
  4. Set allowed_headers to 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:

  1. Restart HAProxy / web server — Apply the configuration changes by restarting the HAProxy or web server.
  2. Verify the OTEL backend — Check that the OTEL backend is operational and correctly receiving data.
  3. Restart the OTEL Collector — With the backend confirmed operational, restart the OTEL Collector to apply any configuration changes.
  4. 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#

  1. Ensure you have root or sudo privileges on the target system.
  2. Run the installation command in the terminal.

    For AIX/Solaris:

    sudo ./install.sh <user> <group name>
    

    For Linux:

    sudo ./install.sh
    

    This initiates the LogScan agent installation. The installer is delivered with the HEAL release package (contact HEAL Support).

Configuring Filebeat#

  1. Use the Filebeat OSS version 7.12.1-x86_64.rpm for installation. For download instructions, see the OpenSearch documentation.
  2. In the filebeat.yml file located at <Install path>/filebeat/etc/filebeat, apply the output.elasticsearch configurations.
  3. Update the configuration with the OpenSearch username and password.
  4. 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.

  5. 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"
    
  6. 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#

  1. Locate the following configuration files at <Install path>/rsyslog.d/logscan-rsyslog:
    • 01-logscan-rsyslog-json-template.conf
    • 50-logscan-rsyslog-imfile.conf
    • 60-logscan-rsyslog-output-omfwd.conf
  2. In 60-logscan-rsyslog-output-omfwd.conf, update the ruleset for SendEUMdataToLogScan with the target IP and port:

    Target="<IP of HAProxy server>" Port="12791"
    
  3. Update the Rsyslog metadata configuration in 50-logscan-rsyslog-imfile.conf as needed:

    agentUid=<unique id of agent>,serviceId=<Id of the service>,applicationId=<Id of the application>,responseTimes.responseTimeType=EUM,tcpTransaction=null,txnType=1
    

    Example:

    agentUid=eum-txn-agent-id_2,serviceId=service_01,applicationId=application_12,responseTimes.responseTimeType=EUM,tcpTransaction=null,txnType=1
    
  4. Start the agent from the selfheal directory using start.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#

  1. Send one controlled request from the instrumented test application.
  2. Confirm that the collector returns the expected successful response without weakening TLS or CORS controls.
  3. Verify that the expected mobile span is present and correlates with available backend spans.
  4. Confirm the approved sampling, URL exclusions, and non-sensitive attribute allowlist.
  5. 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.