EUM/DEM Backend Cleanup and Validation
Remove EUM injection and backend integrations from Nginx and the logging pipeline.
Nginx#
# Edit the Nginx configuration and remove:
# - The sub_filter directive that injects healeum.min.js
# - The location /v1/traces proxy_pass block
# - The custom access_log format for EUM
vi /etc/nginx/conf.d/heal-eum.conf
# Or: vi /etc/nginx/nginx.conf
# Remove the EUM SDK file
rm -f <Nginx_DocRoot>/scripts/healeum.min.js
# Restart Nginx
systemctl restart nginx
Direct Page Injection#
If the EUM SDK was injected directly into application pages (JSP, HTML, JS files):
# Remove the <script> tag from each page where it was added:
# <script src='./heal-eum-sdk.js'></script>
# Or:
# <script src='/scripts/healeum.min.js'></script>
# Remove the SDK file from the application directory
rm -f <APP_DEPLOY_DIR>/heal-eum-sdk.js
rm -f <APP_DEPLOY_DIR>/healeum.min.js
# Redeploy or restart the application
Note: Coordinate with the development team to revert the page changes. Check all JSP, HTML, and template files for the injected <script> tag.
Target Server — LogScan Agent Removal#
# Stop the LogScan agent
cd <LogScan_Install_Path>/selfheal
./stop.sh
# Verify it has stopped
ps -ef | grep -i logscan
# If still running
kill -9 <PID>
# Remove the LogScan agent directory
rm -rf <LogScan_Install_Path>
Target Server — Filebeat Removal#
If Filebeat was installed for EUM log forwarding:
# Stop and disable Filebeat
systemctl stop filebeat
systemctl disable filebeat
# Remove Filebeat
yum remove filebeat # or: rpm -e filebeat / dnf remove filebeat
# Remove Filebeat configuration and data
rm -rf /etc/filebeat/
rm -rf /var/lib/filebeat/
rm -rf /var/log/filebeat/
Note
If Filebeat is used by other applications or teams, only remove the HEAL-specific input and output configurations from filebeat.yml instead of removing the entire installation.
Target Server — Rsyslog EUM Configuration Removal#
If Rsyslog was configured for EUM log forwarding:
# Remove LogScan-Rsyslog configuration files
rm -f <Install_Path>/rsyslog.d/logscan-rsyslog/01-logscan-rsyslog-json-template.conf
rm -f <Install_Path>/rsyslog.d/logscan-rsyslog/50-logscan-rsyslog-imfile.conf
rm -f <Install_Path>/rsyslog.d/logscan-rsyslog/60-logscan-rsyslog-output-omfwd.conf
# Restart Rsyslog to apply changes
systemctl restart rsyslog
Note
Do not remove or restart Rsyslog itself — only remove the HEAL-specific configuration files. Rsyslog is a core system service used by other components.
HEAL Server — Logstash DEM Pipeline Removal#
If a dedicated Logstash instance was installed for DEM:
# Stop the Logstash DEM instance
# (method depends on deployment: systemd, nomad, or manual)
# Remove the Logstash installation directory
rm -rf <Logstash_Install_Path>
Note
If Logstash is shared with other HEAL components, only remove the DEM-specific pipeline configuration files — not the entire Logstash installation.
HEAL Server — OpenSearch Cleanup#
Remove the DEM-specific pipelines, index templates, and ISM policies from OpenSearch.
Replace <OPENSEARCH_IP>, <OPENSEARCH_PORT>, <USERNAME>, and <PASSWORD> with your environment values.
# Set variables for your environment
OS_IP="<OPENSEARCH_IP>"
OS_PORT="<OPENSEARCH_PORT>" # e.g., 9200 or 9211
OS_USER="<USERNAME>" # e.g., healadmin
OS_PASS="<PASSWORD>" # e.g., <your_password>
# 1. Delete the DEM ingest pipeline
curl -k -u ${OS_USER}:${OS_PASS} -X DELETE \
"https://${OS_IP}:${OS_PORT}/_ingest/pipeline/heal-dem-ingest-pipeline"
# 2. Delete the newline pipeline
curl -k -u ${OS_USER}:${OS_PASS} -X DELETE \
"https://${OS_IP}:${OS_PORT}/_ingest/pipeline/dem_newline_pipeline"
# 3. Delete the DEM index template
curl -k -u ${OS_USER}:${OS_PASS} -X DELETE \
"https://${OS_IP}:${OS_PORT}/_index_template/heal-dem-template"
# 4. Delete DEM ISM policy
curl -k -u ${OS_USER}:${OS_PASS} -X DELETE \
"https://${OS_IP}:${OS_PORT}/_plugins/_ism/policies/heal-dem-ism-policy"
Optional — Delete EUM Data
This permanently deletes all historical EUM data. Only proceed if the data is no longer needed or has been backed up:
curl -k -u ${OS_USER}:${OS_PASS} -X DELETE \
"https://${OS_IP}:${OS_PORT}/heal-dem-raw-*"
HEAL Server — OTEL Collector Configuration Revert#
If the OTEL Collector's config.yaml was modified to add the OTLP HTTP receiver for EUM:
- Edit the OTEL Collector
config.yaml. -
Remove or comment out the OTLP HTTP receiver section that was added for EUM:
# Remove this block if it was added for EUM: otlp: protocols: http: endpoint: 0.0.0.0:4318 cors: allowed_origins: [...] allowed_headers: [...] -
Remove
otlpfrom thereceivers:list in the service pipeline section (only if it was added exclusively for EUM). -
Restart the OTEL Collector:
nomad stop otel-collector nomad run <HEAL_HOME>/nomadFile/otel-collector.nomad
Warning
If the OTLP receiver is also used by other integrations (e.g., Mobile App Monitoring), do not remove it.
HEAL Server — Grafana Dashboard Removal#
In the Grafana UI:
- Navigate to Dashboards.
- Open the DEM folder.
- Delete the EUM Dashboard (Landing-Page).
- Delete the Audit Dashboard (if imported).
- Delete the DEM folder.
- Go to Configuration > Data Sources, select OpenSearch-DEM, and click Delete.
EUM Removal Checklist#
| Component | Action | Done |
|---|---|---|
| Target Server | ||
| Web server EUM config | Remove EUM injection rules, proxy rules, and log format | [ ] |
| EUM SDK JS file | Remove healeum.min.js from web/app server |
[ ] |
| EUM access log | Remove the EUM-specific access log file | [ ] |
| Direct page injections | Remove <script> tags from JSP/HTML files (if applicable) |
[ ] |
| LogScan agent | Stop and remove | [ ] |
| Filebeat | Stop, disable, remove (or remove HEAL-specific config only) | [ ] |
| Rsyslog EUM config | Remove logscan-rsyslog conf files, restart rsyslog | [ ] |
| HEAL Server | ||
| Logstash DEM | Stop and remove (if dedicated for DEM) | [ ] |
| OpenSearch pipelines | Delete heal-dem-ingest-pipeline and dem_newline_pipeline |
[ ] |
| OpenSearch template | Delete heal-dem-template |
[ ] |
| OpenSearch ISM policy | Delete heal-dem-ism-policy |
[ ] |
| OpenSearch DEM indices | Delete heal-dem-raw-* (optional — destroys data) |
[ ] |
| OTEL Collector config | Revert config.yaml (remove OTLP HTTP receiver if EUM-only) |
[ ] |
| Grafana dashboards | Delete EUM Dashboard, Audit Dashboard, DEM folder | [ ] |
| Grafana datasource | Delete OpenSearch-DEM datasource |
[ ] |