Just-in-Time Forensics Installation & Configuration
Capture forensic data the moment a threshold breach is detected.
Just-in-time forensics lets HEAL retrieve forensic data from a target system at the exact moment a threshold breach is detected, so diagnostics for the affected KPI category are available for immediate analysis. The Component Agent (CA) detects the breach, triggers the Forensic Agent (FA) on the same host, and the collected forensic data flows through HAProxy and the Supervisor Controller to the Event Handler, where it becomes available in the HEAL UI.
This guide covers the database migration, HAProxy endpoint, agent installation checks, and configuration needed to enable just-in-time forensics. For what forensics gives you as a capability — and how it pairs with remedial actions — see Automated Forensics & Remedial Actions.
How it works#
When just-in-time forensics is enabled, data flows as follows:
- The CA calls the Control Center API (
heal-controlcenter/v2.0/api/agent-config-data?identifier=<agent identifier ID>). - The Control Center returns a JSON response containing the threshold configuration details.
- The CA evaluates incoming KPI data against those thresholds and detects any breach.
- On a breach, the CA connects to the FA to collect forensic details for the breached data.
- The CA pushes the forensic data through HAProxy to the Supervisor Controller.
- The Supervisor Controller publishes it to A1 Event Messages (RabbitMQ), which the Event Handler consumes. The forensic data is then available in the HEAL UI.
Note. The Component Agent and the Forensic Agent must be installed on the same host, with the FA under the CA home directory (see Installation).
Prerequisites#
Complete the following one-time setup on the HEAL primary server before enabling just-in-time forensics. You need Component Agent 2.1.0 or later and database administrator access to the appsone database.
-
Navigate to the migration directory under the a1home directory on the primary server:
cd /Appsone_Service/migration-db/appsone -
Copy the migration SQL files shipped with Component Agent 2.1.0 into this directory:
20241210102301-desc-end-signatures-update.up.sql/.down.sql20241210113107-update-producer-type.up.sql/.down.sql
-
Run the database migration, substituting your Percona host, port, and database credentials:
env 'MIGRATION-DIR=./appsone' SUBNAME=//<perconaIP:Port>/appsone username=dbadmin password='<password>' java -jar migrate-db.jar --migrate -
Set the forensic endpoint in the
data_communication_detailstable. The endpoint value is a quoted string pointing at the HAProxy forensic route:UPDATE data_communication_details SET forensic_endpoint = 'https://<HAProxy_IP>:<HAProxy_Port>/forensic-result' WHERE <condition identifying the target row>;Heads up. Scope the update before running it. Without a
WHEREclause this statement rewrites the forensic endpoint for every row in the table — first identify the row(s) for the agents you are enabling and restrict theWHEREcondition accordingly. -
Add the forensic route to HAProxy. In the HAProxy configuration file, define the ACL in the frontend section and the routing rule in the backend section, then reload HAProxy:
# frontend section acl url_sc_forensic path_beg -i /forensic-result # backend routing use_backend supervisor_controller_backend if url_sc_forensicIf these entries already exist in your HAProxy configuration, no change is needed.
Installation#
Just-in-time forensics needs both agents present on the monitored host. Verify each in turn:
-
Verify the Component Agent is installed and is version 2.1.0 or later. From the CA agent directory, check the version:
cat version.txtExample output:
Version : ComponentAgent-2.1.0 Build Date : 2025-01-08 10:31If the CA is not installed or is older than 2.1.0, see the Component Agent installation guide.
-
Verify the Forensic Agent is installed and is version 1.1 or later. The FA must live under the CA home directory, in a directory named
ForensicAgent:<CA agent home directory>/ForensicAgent/<forensic agent ID> -
Check the Forensic Agent version. From
<CA agent home directory>/ForensicAgent/<forensic agent ID>, run:cat version.txtExample output:
Version : ForensicAgent-1.1.0.46 Build Date : 2024-09-09 12:07To install the FA, refer to the Forensic Agent guide delivered with the HEAL release package (contact HEAL Support).
-
Confirm forensic logging. Once both agents are in place, forensic activity is logged to
forensics.login the CA log directory. The presence of this file confirms the CA has detected the FA.
Configuration#
- Ensure the Component Agent is configured — see the Component Agent installation guide.
- Ensure the Forensic Agent is configured — refer to the Forensic Agent guide delivered with the HEAL release package.
Windows hosts#
On Windows, additionally disable the forensic script signing check:
- Open the advanced.properties file in
<CA agent directory>/config. -
Add the following line and save the file:
component.agent.forensic.signing.check=0
Agent data communication#
The Component Agent's data-communication protocol (HTTPS or gRPC), host, port, and endpoint are set per agent in the Control Center. Follow Configuring Agents to review or change these settings; from HEAL v2.3.2 onward, HTTPS is the recommended protocol.
Once the pipeline is active, forensic data surfaces automatically in the HEAL UI alongside the incident or anomaly that triggered it — open the affected signal and drill into its forensic evidence to see what was captured at the moment of the breach. See Viewing Forensics for a walkthrough of reading forensic data and root-cause context in the UI.
Support#
The HEAL Technical Support team provides assistance with troubleshooting and resolving issues with HEAL products. To request assistance, email support@healsoftware.ai.
Next
- Automated Forensics & Remedial Actions — the capability this pipeline powers.
- Viewing Forensics — read forensic data and root-cause context in the UI.
- Component Agent Installation — install and configure the agent that triggers forensics.