Skip to content

Data Aggregator v1.0.5

Data Aggregator v1.0.5 in Data Aggregator Guide.

3 min read Updated SS MR

Data Aggregator v1.0.5#

The Data Aggregator v1.0.5 evaluates all incoming URLs from trace data to group similar URLs under a common transaction identifier.

  • The URL pattern-to-transaction mappings are maintained in Redis.

Note: Apply these changes only after Data Aggregator v1.0.4 has been deployed.

Modules Configurations#

Below are the module configurations to be performed:

Redis Configuration#

  • Hash Key: /transaction/url/patterns
  • Key: TRANSACTION_URL_PATTERNS

For example:

[
{
"id":1,
"urlPattern":"/NBC/action*init.action",
"urlIdentifier":"/NBC/action-init.action",
"accountId":2,
"accountIdentifier":"heal_health",
"serviceId":489,
"serviceIdentifier":"8690b7de-55d2-48e8-bab7-9fdbbc315c0b",
"createdTime":"2026-03-23 00:00:00",
"updatedTime":"2026-03-23 00:00:00",
"status":1,
"userDetailsId":"7640123a-fbde-4fe5-9812-581cd1e3a9c1"},
{
"id":2,
"urlPattern":"/NBC/action*transmitbtn.action",
"urlIdentifier":"/NBC/action-transmitbtn.action",
"accountId":2,
"accountIdentifier":"heal_health",
"serviceId":489,
"serviceIdentifier":"8690b7de-55d2-48e8-bab7-9fdbbc315c0b",
"createdTime":"2026-03-23 00:00:00",
"updatedTime":"2026-03-23 00:00:00",
"status":1,
"userDetailsId":"7640123a-fbde-4fe5-9812-581cd1e3a9c1"},
{
"id":3,
"urlPattern":"/CBSReports/static/img*",
"urlIdentifier":"/CBSReports/static/img",
"accountId":2,
"accountIdentifier":"heal_health",
"serviceId":489,
"serviceIdentifier":"8690b7de-55d2-48e8-bab7-9fdbbc315c0b",
"createdTime":"2026-03-23 00:00:00",
"updatedTime":"2026-03-23 00:00:00",
"status":1,
"userDetailsId":"7640123a-fbde-4fe5-9812-581cd1e3a9c1"},
{
"id":4,
"urlPattern":"/NBC/*/img*",
"urlIdentifier":"/NBC/all/imgall",
"accountId":2,
"accountIdentifier":"heal_health",
"serviceId":489,
"serviceIdentifier":"8690b7de-55d2-48e8-bab7-9fdbbc315c0b",
"createdTime":"2026-03-23 00:00:00",
"updatedTime":"2026-03-23 00:00:00",
"status":1,
"userDetailsId":"7640123a-fbde-4fe5-9812-581cd1e3a9c1"},
{"id":5,
"urlPattern":"/CBSReport/*/login",
"urlIdentifier":"/CBSReport/all/login",
"accountId":2,
"accountIdentifier":"heal_health",
"serviceId":489,
"serviceIdentifier":"8690b7de-55d2-48e8-bab7-9fdbbc315c0b",
"createdTime":"2026-03-23 00:00:00",
"updatedTime":"2026-03-23 00:00:00",
"status":1,"userDetailsId":"7640123a-fbde-4fe5-9812-581cd1e3a9c1"},{"id":6,"urlPattern":"/APIServices/customer/validatemobileotp?req=*","urlIdentifier":"/APIServices/customer/validatemobileotp?req=all","accountId":2,"accountIdentifier":"heal_health","serviceId":489,"serviceIdentifier":"8690b7de-55d2-48e8-bab7-9fdbbc315c0b","createdTime":"2026-03-23 00:00:00","updatedTime":"2026-03-23 00:00:00","status":1,"userDetailsId":"7640123a-fbde-4fe5-9812-581cd1e3a9c1"},{"id":7,"urlPattern":"/UPI/validatemobileotp?req=*","urlIdentifier":"/UPI/validatemobileotp?req=all","accountId":2,"accountIdentifier":"heal_health","serviceId":489,"serviceIdentifier":"8690b7de-55d2-48e8-bab7-9fdbbc315c0b","createdTime":"2026-03-23 00:00:00","updatedTime":"2026-03-23 00:00:00","status":1,"userDetailsId":"7640123a-fbde-4fe5-9812-581cd1e3a9c1"},{"id":8,"urlPattern":"/CBS/validatemobileotp?req=*","urlIdentifier":"/CBS/validatemobileotp?req=all","accountId":2,"accountIdentifier":"heal_health","serviceId":489,"serviceIdentifier":"8690b7de-55d2-48e8-bab7-9fdbbc315c0b","createdTime":"2026-03-23 00:00:00","updatedTime":"2026-03-23 00:00:00","status":1,"userDetailsId":"7640123a-fbde-4fe5-9812-581cd1e3a9c1"}]

Database Changes (Percona)#

The following are the changes to be performed in Percona:

  • Create New table: transaction_url_patterns
  • Stores mappings between url_pattern and url_identifier with account and service references.
CREATE TABLE `transaction_url_patterns` (
`id` int NOT NULL AUTO_INCREMENT,
`url_pattern` varchar(768) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`url_identifier` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`account_id` int NOT NULL,
`service_id` int NOT NULL,
`created_time` datetime NOT NULL,
`updated_time` datetime NOT NULL,
`status` tinyint NOT NULL,
`user_details_id` varchar(256) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `url_pattern_UNIQUE` (`url_pattern`),
KEY `fk_account_id_idx` (`account_id`),
KEY `fk_service_id_idx` (`service_id`),
CONSTRAINT `fk_account_id_idx` FOREIGN KEY (`account_id`) REFERENCES `account` (`id`),
CONSTRAINT `fk_service_id_idx` FOREIGN KEY (`service_id`) REFERENCES `controller` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

For example:

INSERT INTO `appsone`.`transaction_url_patterns` (`url_pattern`, `url_identifier`, `account_id`, `service_id`, `created_time`, `updated_time`, `status`, `user_details_id`) VALUES ('/NBC/action*', '/NBC/action', '6', '7021', '2026-03-23 00:00:00', '2026-03-23 00:00:00', '1', '7640123a-fbde-4fe5-9812-581cd1e3a9c1');
INSERT INTO `appsone`.`transaction_url_patterns` (`url_pattern`, `url_identifier`, `account_id`, `service_id`, `created_time`, `updated_time`, `status`, `user_details_id`) VALUES ('/CBSReports/static/img/*', '/CBSReports/static/img', '6', '7021', '2026-03-23 00:00:00', '2026-03-23 00:00:00', '1', '7640123a-fbde-4fe5-9812-581cd1e3a9c1');

HEAL-Utilities Updates#

The following are the changes to be performed for the HEAL utilities update:

  • RedisClient fetches data from the transaction_url_patterns table.
  • Populates Redis with the required mappings.

1. To compile the redis-cli, execute the following command:

javac -cp ./lib/*:. RedisClient.java

2. To add transaction URL patterns to Redis, run the following command:

java -cp lib/*:. RedisClient <hosts> '' <password> true add-txn-url-patterns '' <db_host> 3307 dbadmin <password>

3. If PKIX errors are observed, generate and import the certificate into the cacerts of the Java installation in use. 

a. Extract the certificate from the Redis host:

echo -n | openssl s_client -connect '192.0.2.58:7001' | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > 192.0.2.88.crt

b. Import the certificate into the Java truststore:

sudo /usr/lib/jvm/java-8-zulu-openjdk-jdk/bin/keytool -import -trustcacerts -keystore /usr/lib/jvm/java-8-zulu-openjdk-jdk/jre/lib/security/cacerts -storepass 
changeit -noprompt -alias redis-192-168-13-122-7001 -file 192.0.2.88.crt

HEAL Control Center (CC)#

The collated transaction details are displayed in CC as follows: 

In the Manage Service page, click on Configuration > Request > Accepted Requests; hover over the "i" icon to view the details of the collated Accepted Request. For example: 

Individual transactions are as follows:

  • https://gway.apps.com/NBC/action_036691_transmitbtn.action
  • https://gway.apps.com/NBC/action_036692_transmitbtn.action
  • https://gway.apps.com/NBC/action_036693_transmitbtn.action
  • https://gway.apps.com/NBC/action_036694_transmitbtn.action

The above individual transactions are clubbed into a single transaction as follows:

  • /NBC/action-transmitbtn.action

Next: Bring the aggregation pipeline online end to end — review the HEAL Services reference to confirm the supporting services are running, then see the HEAL Modules Overview to place the Data Aggregator within the full platform installation.