6. Define Index Pattern:
6. Define Index Pattern: in Elasticsearch Connector.
6. Define Index Pattern:#
service name = * : represents the mapped KPIs to this service ID, which are common for all other services as well as present in table heal_instance_creation_payload as well.
INSERT INTO a1_logscan_service (index_pattern, service_name,
logfile_type, enabled) values ('logscan-raw-app-ocp_app_logs*', '*',
'was-syserr', 1);
INSERT INTO a1_logscan_service (index_pattern, service_name,
logfile_type, enabled) values ('logscan-raw-app-ocp_app_logs*',
'<gateway_service_identifier>', 'was-syserr', 1);
INSERT INTO a1_logscan_service (index_pattern, service_name,
logfile_type, enabled) values ('logscan-raw-app-ocp_app_logs*',
'<service_a_identifier>', 'was-syserr', 1);
INSERT INTO a1_logscan_service (index_pattern, service_name,
logfile_type, enabled) values ('logscan-raw-app-ocp_app_logs*',
'<service_b_identifier>', 'was-syserr', 1);
INSERT INTO a1_logscan_service (index_pattern, service_name,
logfile_type, enabled) values ('logscan-raw-app-ocp_app_logs*',
'<reglgnbatch_service_identifier>', 'was-syserr', 1);
INSERT INTO a1_logscan_service (index_pattern, service_name,
logfile_type, enabled) values ('logscan-raw-app-ocp_app_logs*',
'<ccservicems_service_identifier>', 'was-syserr', 1);
7. Add Kpi details#
a. Table Modification
Remove unused fields in the table and add new fields as below:
ALTER TABLE a1_logscan_kpis
DROP COLUMN field1,
DROP COLUMN field2,
DROP COLUMN aggregator,
ADD COLUMN `dataType` varchar(256),
ADD COLUMN `default_value` varchar(256);
b. Add KPIs with error patterns.
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Member isn\'t responding to heartbeat requests', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_MEMBER_NO_HEARTBEAT'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_MEMBER_NO_HEARTBEAT'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Crashed', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_CRASHED'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_CRASHED'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('The Locator process terminated unexpectedly with exit status', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_LOCATOR_TERMINATED'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_LOCATOR_TERMINATED'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('OutOfMemoryError: unable to create new native thread', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_OOM_NATIVE_THREAD'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_OOM_NATIVE_THREAD'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('This member has been forced out', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_MEMBER_FORCED_OUT'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_MEMBER_FORCED_OUT'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Unable to find any members to host a bucket', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_NO_BUCKET_HOST'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_NO_BUCKET_HOST'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('org.apache.geode.cache.persistence.PartitionOfflineException', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_PARTITION_OFFLINE_EXCEPTION'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_PARTITION_OFFLINE_EXCEPTION'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Unable to allocate sufficient stores for a bucket in the partitioned region', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_INSUFFICIENT_BUCKET_STORES'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_INSUFFICIENT_BUCKET_STORES'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Ran out of retries attempting to allocate a bucket in the partitioned region', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_BUCKET_ALLOC_RETRIES_EXHAUSTED'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_BUCKET_ALLOC_RETRIES_EXHAUSTED'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Exiting due to possible network partition event due to loss of', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_NETWORK_PARTITION_EXIT'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_NETWORK_PARTITION_EXIT'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('org.apache.geode.ForcedDisconnectException', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_FORCED_DISCONNECT_EXCEPTION'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_FORCED_DISCONNECT_EXCEPTION'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('A DiskAccessException has occurred while writing to the disk for region', (select identifier from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_DISK_ACCESS_EXCEPTION'), (select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_DISK_ACCESS_EXCEPTION'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('org.apache.kafka.common.errors.CorruptRecordException: Record is corrupt', (select identifier from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CORRUPT_RECORD'), (select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CORRUPT_RECORD'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Connection to node 1 (/source-cluster-broker-1:9093) failed (org.apache.kafka.clients.NetworkClient)', (select identifier from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CONNECTION_FAILURE'), (select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CONNECTION_FAILURE'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('org.apache.kafka.common.errors.SaslAuthenticationException: Authentication failed during SASL handshake', (select identifier from appsone.mst_kpi_details where identifier= 'SB_KAFKA_SASL_AUTH_FAILURE'), (select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_SASL_AUTH_FAILURE'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Bootstrap broker source-cluster-broker-1:9093 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)', (select identifier from appsone.mst_kpi_details where identifier= 'SB_KAFKA_BOOTSTRAP_DISCONNECTED'), (select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_BOOTSTRAP_DISCONNECTED'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Failed to poll messages from source cluster: TimeoutException: Failed to get metadata for topic source-topic within 60000 ms', (select identifier from appsone.mst_kpi_details where identifier= 'SB_KAFKA_METADATA_TIMEOUT'), (select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_METADATA_TIMEOUT'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Consumer lag for topic source-topic partition 0 is 18500 records behind (MirrorMakerMetricsReporter)', (select identifier from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CONSUMER_LAG'), (select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CONSUMER_LAG'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Disk error while writing to log segment payments-1/00000000000000028357.log (kafka.log.LogSegment) java.io.IOException: No space left on device', (select identifier from appsone.mst_kpi_details where identifier= 'SB_KAFKA_DISK_WRITE_ERROR'), (select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_DISK_WRITE_ERROR'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('ERROR [Controller id=1] Broker 2 failed to become leader for partition orders-0: NotEnoughReplicasException (kafka.controller.KafkaController)', (select identifier from appsone.mst_kpi_details where identifier= 'SB_KAFKA_LEADER_ELECTION_FAILURE'), (select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_LEADER_ELECTION_FAILURE'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('CDS: Received NACK from xDS server: invalid cluster config for service \'orders-service\'', (select identifier from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_INVALID_CLUSTER_CONFIG'), (select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_INVALID_CLUSTER_CONFIG'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Cluster orders-service: no healthy upstream', (select identifier from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_NO_HEALTHY_UPSTREAM'), (select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_NO_HEALTHY_UPSTREAM'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('upstream connect error or disconnect/reset before headers. reset reason: connection termination', (select identifier from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_UPSTREAM_RESET'), (select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_UPSTREAM_RESET'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Failed to create secret for proxy: failed to fetch certificate from Istiod: context deadline exceeded', (select identifier from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_CERT_FETCH_FAILURE'), (select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_CERT_FETCH_FAILURE'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('TLS handshake failed for connection from tls: failed to verify client certificate', (select identifier from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_TLS_HANDSHAKE_FAILURE'), (select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_TLS_HANDSHAKE_FAILURE'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('"GET /topics HTTP/1.1" 503 UF 0 91 5', (select identifier from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_HTTP_503'), (select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_HTTP_503'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('POST /produce HTTP/1.1" 502 kafka-producer-client', (select identifier from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_HTTP_502'), (select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_HTTP_502'), 'Core', '', '0', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('Unable to acquire JDBC Connection', (select identifier from appsone.mst_kpi_details where identifier= 'APS_LA_SysErr_JDBC_Connection_Exception'), (select id from appsone.mst_kpi_details where identifier= 'APS_LA_SysErr_JDBC_Connection_Exception'), 'Core', '', '0', 'payload', '1', '0');
# Group Kpis
# gateway:
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('com.example.app.session.exception.JwtTokenException: JWT token expired', (select identifier from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'Core', 'Error_Pattern', '1', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('com.example.app.exception.ActionException: Invalid Api Endpoint', (select identifier from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'Core', 'Error_Pattern', '1', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('com.example.app.exception.CryptographicException: Exception occurred', (select identifier from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'Core', 'Error_Pattern', '1', 'payload', '1', '0');
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('javax.crypto.AEADBadTagException: Tag mismatch', (select identifier from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'Core', 'Error_Pattern', '1', 'payload', '1', '0');
# personal loans:
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('pojo_loan_personal_papl_getMaxEligibleLoanAmountBUSINESS_EXCEPTION', (select identifier from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'Core', 'Error_Pattern', '1', 'payload', '1', '0');
# service-b:
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('pojo_ccs_get_cooling_periodBUSINESS_EXCEPTION', (select identifier from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'Core', 'Error_Pattern', '1', 'payload', '1', '0');
# batch-a:
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('com.example.app.exception.ServiceException: Unknown exception occurred', (select identifier from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'Core', 'Error_Pattern', '1', 'payload', '1', '0');
# service-c:
INSERT INTO `a1_logscan_kpis` (`kpi_pattern`, `heal_kpi_name`, `heal_kpi_uid`, `heal_kpi_type`, `heal_group_name`, `is_group_kpi`, `logscan_field_name`, `logscan_endpt`, `enabled`, `default_value`) VALUES ('pojo_cc_manage_linktoken_getlinkingtokenBUSINESS_EXCEPTION', (select identifier from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'Core', 'Error_Pattern', '1', 'payload', '1', '0');
c. Insert into heal_kpis Table
# Common Exceptions,
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_MEMBER_NO_HEARTBEAT'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_MEMBER_NO_HEARTBEAT'), 'SB_GEMFIRE_MEMBER_NO_HEARTBEAT', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_CRASHED'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_CRASHED'), 'SB_GEMFIRE_CRASHED', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_LOCATOR_TERMINATED'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_LOCATOR_TERMINATED'), 'SB_GEMFIRE_LOCATOR_TERMINATED', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_OOM_NATIVE_THREAD'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_OOM_NATIVE_THREAD'), 'SB_GEMFIRE_OOM_NATIVE_THREAD', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_MEMBER_FORCED_OUT'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_MEMBER_FORCED_OUT'), 'SB_GEMFIRE_MEMBER_FORCED_OUT', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_NO_BUCKET_HOST'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_NO_BUCKET_HOST'), 'SB_GEMFIRE_NO_BUCKET_HOST', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_PARTITION_OFFLINE_EXCEPTION'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_PARTITION_OFFLINE_EXCEPTION'), 'SB_GEMFIRE_PARTITION_OFFLINE_EXCEPTION', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_INSUFFICIENT_BUCKET_STORES'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_INSUFFICIENT_BUCKET_STORES'), 'SB_GEMFIRE_INSUFFICIENT_BUCKET_STORES', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_BUCKET_ALLOC_RETRIES_EXHAUSTED'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_BUCKET_ALLOC_RETRIES_EXHAUSTED'), 'SB_GEMFIRE_BUCKET_ALLOC_RETRIES_EXHAUSTED', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_NETWORK_PARTITION_EXIT'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_NETWORK_PARTITION_EXIT'), 'SB_GEMFIRE_NETWORK_PARTITION_EXIT', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_FORCED_DISCONNECT_EXCEPTION'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_FORCED_DISCONNECT_EXCEPTION'), 'SB_GEMFIRE_FORCED_DISCONNECT_EXCEPTION', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_DISK_ACCESS_EXCEPTION'), (select name from appsone.mst_kpi_details where identifier= 'SB_GEMFIRE_DISK_ACCESS_EXCEPTION'), 'SB_GEMFIRE_DISK_ACCESS_EXCEPTION', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CORRUPT_RECORD'), (select name from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CORRUPT_RECORD'), 'SB_KAFKA_CORRUPT_RECORD', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CONNECTION_FAILURE'), (select name from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CONNECTION_FAILURE'), 'SB_KAFKA_CONNECTION_FAILURE', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_SASL_AUTH_FAILURE'), (select name from appsone.mst_kpi_details where identifier= 'SB_KAFKA_SASL_AUTH_FAILURE'), 'SB_KAFKA_SASL_AUTH_FAILURE', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_BOOTSTRAP_DISCONNECTED'), (select name from appsone.mst_kpi_details where identifier= 'SB_KAFKA_BOOTSTRAP_DISCONNECTED'), 'SB_KAFKA_BOOTSTRAP_DISCONNECTED', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_METADATA_TIMEOUT'), (select name from appsone.mst_kpi_details where identifier= 'SB_KAFKA_METADATA_TIMEOUT'), 'SB_KAFKA_METADATA_TIMEOUT', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CONSUMER_LAG'), (select name from appsone.mst_kpi_details where identifier= 'SB_KAFKA_CONSUMER_LAG'), 'SB_KAFKA_CONSUMER_LAG', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_DISK_WRITE_ERROR'), (select name from appsone.mst_kpi_details where identifier= 'SB_KAFKA_DISK_WRITE_ERROR'), 'SB_KAFKA_DISK_WRITE_ERROR', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_KAFKA_LEADER_ELECTION_FAILURE'), (select name from appsone.mst_kpi_details where identifier= 'SB_KAFKA_LEADER_ELECTION_FAILURE'), 'SB_KAFKA_LEADER_ELECTION_FAILURE', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_INVALID_CLUSTER_CONFIG'), (select name from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_INVALID_CLUSTER_CONFIG'), 'SB_SERVICEMESH_INVALID_CLUSTER_CONFIG', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_NO_HEALTHY_UPSTREAM'), (select name from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_NO_HEALTHY_UPSTREAM'), 'SB_SERVICEMESH_NO_HEALTHY_UPSTREAM', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_UPSTREAM_RESET'), (select name from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_UPSTREAM_RESET'), 'SB_SERVICEMESH_UPSTREAM_RESET', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_CERT_FETCH_FAILURE'), (select name from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_CERT_FETCH_FAILURE'), 'SB_SERVICEMESH_CERT_FETCH_FAILURE', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_TLS_HANDSHAKE_FAILURE'), (select name from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_TLS_HANDSHAKE_FAILURE'), 'SB_SERVICEMESH_TLS_HANDSHAKE_FAILURE', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_HTTP_503'), (select name from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_HTTP_503'), 'SB_SERVICEMESH_HTTP_503', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_HTTP_502'), (select name from appsone.mst_kpi_details where identifier= 'SB_SERVICEMESH_HTTP_502'), 'SB_SERVICEMESH_HTTP_502', 0, '');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), (select name from appsone.mst_kpi_details where identifier= 'MS_EXCEPTIONS'), 'MS_EXCEPTIONS', 1, 'Error_Pattern');
INSERT INTO `heal_kpis` (kpi_id, kpi_name, kpi_identifier, is_group, group_name) VALUES ((select id from appsone.mst_kpi_details where identifier= 'APS_LA_SysErr_JDBC_Connection_Exception'), (select name from appsone.mst_kpi_details where identifier= 'APS_LA_SysErr_JDBC_Connection_Exception'), 'APS_LA_SysErr_JDBC_Connection_Exception', 0, '');