You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

543 lines
44 KiB

{
"algorithms": {
"GradientBoostingRegressor": {
"RMSE": 0,
"modelId": "",
"rSquared": 0,
"recommended": false
},
"LinearRegression": {
"RMSE": 0,
"modelId": "",
"rSquared": 0,
"recommended": false
},
"LogisticRegression": {
"accuracy": 0,
"f1_score": 0,
"modelId": "",
"precision": 0,
"recall": 0,
"recommended": false
},
"RandomForestRegressor": {
"RMSE": 0,
"modelId": "",
"rSquared": 0,
"recommended": false
}
},
"description": "Splunk APM - Application Response Time Results",
"enabled": true,
"entity_rules": [
{
"rule_condition": "AND",
"rule_items": [
{
"field": "type",
"field_type": "info",
"rule_type": "matches",
"value": "SplunkAPM"
}
]
}
],
"key": "da-itsi-cp-splunk-observability-application-duration",
"kpis": [
{
"adaptive_thresholding_training_window": "-7d",
"adaptive_thresholds_is_enabled": false,
"aggregate_eval": "",
"aggregate_statop": "avg",
"aggregate_threshold_alert_enabled": false,
"aggregate_thresholds": {
"base_severity_color": "#99D18B",
"base_severity_color_light": "#DCEFD7",
"base_severity_label": "normal",
"base_severity_value": 2.0,
"gauge_max": 100,
"gauge_min": 0,
"is_max_static": false,
"is_min_static": true,
"metric_field": "count",
"render_boundary_max": 100.0,
"render_boundary_min": 0.0,
"threshold_levels": [
{
"dynamic_param": null,
"severity_color": "#B50101",
"severity_color_light": "#E5A6A6",
"severity_label": "critical",
"severity_label_localized": null,
"severity_value": 6.0,
"threshold_value": 0.0
},
{
"dynamic_param": null,
"severity_color": "#F26A35",
"severity_color_light": "#FBCBB9",
"severity_label": "high",
"severity_label_localized": null,
"severity_value": 5.0,
"threshold_value": 20.0
},
{
"dynamic_param": null,
"severity_color": "#FCB64E",
"severity_color_light": "#FEE6C1",
"severity_label": "medium",
"severity_label_localized": null,
"severity_value": 4.0,
"threshold_value": 40.0
},
{
"dynamic_param": null,
"severity_color": "#FFE98C",
"severity_color_light": "#FFF4C5",
"severity_label": "low",
"severity_label_localized": null,
"severity_value": 3.0,
"threshold_value": 60.0
},
{
"dynamic_param": null,
"severity_color": "#99D18B",
"severity_color_light": "#DCEFD7",
"severity_label": "normal",
"severity_label_localized": null,
"severity_value": 2.0,
"threshold_value": 80.0
}
]
},
"aggregate_thresholds_alert_enabled": false,
"aggregate_thresholds_custom_alert_enabled": false,
"aggregate_thresholds_custom_alert_rules": [],
"alert_eval": "",
"alert_lag": "30",
"alert_on": "both",
"alert_period": "1",
"anomaly_detection_alerting_enabled": false,
"anomaly_detection_is_enabled": false,
"anomaly_detection_sensitivity": 0.999,
"anomaly_detection_training_window": "-7d",
"backfill_earliest_time": "-7d",
"backfill_enabled": false,
"base_search": "`get_full_itsi_summary_service_health_events(da-itsi-cp-splunk-observability-application-duration)`",
"base_search_id": null,
"base_search_metric": null,
"cohesive_ad": {
"sensitivity": 8
},
"cohesive_anomaly_detection_is_enabled": false,
"datamodel": {
"datamodel": "",
"field": "",
"object": "",
"owner_field": ""
},
"datamodel_filter": [],
"datamodel_filter_clauses": null,
"description": "",
"enabled": false,
"entity_filter_field": "",
"entity_split_field": "",
"entity_statop": "avg",
"entity_thresholds": {
"base_severity_color": "#99D18B",
"base_severity_color_light": "#DCEFD7",
"base_severity_label": "normal",
"base_severity_value": 2.0,
"gauge_max": 100,
"gauge_min": 0,
"is_max_static": false,
"is_min_static": true,
"metric_field": "count",
"render_boundary_max": 100.0,
"render_boundary_min": 0.0,
"threshold_levels": [
{
"dynamic_param": null,
"severity_color": "#B50101",
"severity_color_light": "#E5A6A6",
"severity_label": "critical",
"severity_label_localized": null,
"severity_value": 6.0,
"threshold_value": 0.0
},
{
"dynamic_param": null,
"severity_color": "#F26A35",
"severity_color_light": "#FBCBB9",
"severity_label": "high",
"severity_label_localized": null,
"severity_value": 5.0,
"threshold_value": 20.0
},
{
"dynamic_param": null,
"severity_color": "#FCB64E",
"severity_color_light": "#FEE6C1",
"severity_label": "medium",
"severity_label_localized": null,
"severity_value": 4.0,
"threshold_value": 40.0
},
{
"dynamic_param": null,
"severity_color": "#FFE98C",
"severity_color_light": "#FFF4C5",
"severity_label": "low",
"severity_label_localized": null,
"severity_value": 3.0,
"threshold_value": 60.0
},
{
"dynamic_param": null,
"severity_color": "#99D18B",
"severity_color_light": "#DCEFD7",
"severity_label": "normal",
"severity_label_localized": null,
"severity_value": 2.0,
"threshold_value": 80.0
}
]
},
"fill_gaps": "null_value",
"gap_custom_alert_value": 0.0,
"gap_severity": "unknown",
"gap_severity_color": "#CCCCCC",
"gap_severity_color_light": "#EEEEEE",
"gap_severity_value": "-1",
"is_filter_entities_to_service": false,
"is_split_by_entity": false,
"key": "SHKPI-da-itsi-cp-splunk-observability-application-duration",
"kpi_base_search": "",
"kpi_template_kpi_id": "",
"kpi_threshold_template_id": "",
"metric_qualifier": null,
"metric_search_spec": {
"metric_index": "",
"metric_name": ""
},
"search": "`get_full_itsi_summary_service_health_events(da-itsi-cp-splunk-observability-application-duration)` | stats latest(health_score) AS aggregate",
"search_aggregate": "`get_full_itsi_summary_service_health_events(da-itsi-cp-splunk-observability-application-duration)` | stats latest(health_score) AS aggregate",
"search_alert": "",
"search_alert_earliest": "15",
"search_alert_entities": "",
"search_buckets": "",
"search_entities": null,
"search_occurrences": 1.0,
"search_time_compare": "`get_full_itsi_summary_service_health_events(da-itsi-cp-splunk-observability-application-duration)` [| stats count | addinfo | eval search= \"earliest=\" + tostring(info_min_time-(info_max_time-info_min_time))+ \" latest=\" + tostring(info_max_time) |fields search] | addinfo | eval bucket=if(_time<info_max_time-((info_max_time-info_min_time)/2), \"last_window\", \"current_window\") | stats avg(health_score) AS aggregate BY bucket | reverse | delta aggregate AS window_delta | search bucket=current_window | eval window_direction=if(window_delta >0, \"increase\", if(window_delta < 0, \"decrease\", \"none\"))",
"search_time_series": "`get_full_itsi_summary_service_health_events(da-itsi-cp-splunk-observability-application-duration)` | timechart avg(health_score) AS aggregate",
"search_time_series_aggregate": "`get_full_itsi_summary_service_health_events(da-itsi-cp-splunk-observability-application-duration)` | timechart avg(health_score) AS aggregate",
"search_time_series_entities": "",
"search_type": "adhoc",
"service_title": "Application Duration",
"threshold_eval": "",
"threshold_field": "aggregate",
"time_policies": {
"policies": {
"default_policy": {
"aggregate_thresholds": {
"base_severity_color": "#AED3E5",
"base_severity_color_light": "#E3F0F6",
"base_severity_label": "info",
"base_severity_value": 1.0,
"gauge_max": 100,
"gauge_min": 0,
"is_max_static": false,
"is_min_static": true,
"metric_field": "count",
"render_boundary_max": 100.0,
"render_boundary_min": 0.0,
"threshold_levels": []
},
"entity_thresholds": {
"base_severity_color": "#AED3E5",
"base_severity_color_light": "#E3F0F6",
"base_severity_label": "info",
"base_severity_value": 1.0,
"gauge_max": 100,
"gauge_min": 0,
"is_max_static": false,
"is_min_static": true,
"metric_field": "count",
"render_boundary_max": 100.0,
"render_boundary_min": 0.0,
"threshold_levels": []
},
"policy_type": "static",
"time_blocks": [],
"title": "Default"
}
}
},
"title": "ServiceHealthScore",
"trending_ad": {
"sensitivity": 8
},
"type": "service_health",
"tz_offset": null,
"unit": "",
"urgency": 11.0,
"use_time_policies": false
},
{
"adaptive_thresholding_training_window": "-7d",
"adaptive_thresholds_is_enabled": true,
"aggregate_eval": null,
"aggregate_statop": "avg",
"aggregate_threshold_alert_enabled": false,
"aggregate_thresholds": {
"base_severity_color": "#FFE98C",
"base_severity_color_light": "#FFF4C5",
"base_severity_label": "low",
"base_severity_value": 3.0,
"gauge_max": 550,
"gauge_min": 0,
"is_max_static": false,
"is_min_static": true,
"metric_field": "medianLatency",
"render_boundary_max": 550.0,
"render_boundary_min": 0.0,
"threshold_levels": [
{
"dynamic_param": 0.0,
"severity_color": "#99D18B",
"severity_color_light": "#DCEFD7",
"severity_label": "normal",
"severity_label_localized": "Normal",
"severity_value": 2.0,
"threshold_value": 0.0
},
{
"dynamic_param": 0.0,
"severity_color": "#FFE98C",
"severity_color_light": "#FFF4C5",
"severity_label": "low",
"severity_label_localized": "Low",
"severity_value": 3.0,
"threshold_value": 100.0
},
{
"dynamic_param": 0.0,
"severity_color": "#FCB64E",
"severity_color_light": "#FEE6C1",
"severity_label": "medium",
"severity_label_localized": "Medium",
"severity_value": 4.0,
"threshold_value": 200.0
},
{
"dynamic_param": 0.0,
"severity_color": "#F26A35",
"severity_color_light": "#FBCBB9",
"severity_label": "high",
"severity_label_localized": "High",
"severity_value": 5.0,
"threshold_value": 350.0
},
{
"dynamic_param": 0.0,
"severity_color": "#B50101",
"severity_color_light": "#E5A6A6",
"severity_label": "critical",
"severity_label_localized": null,
"severity_value": 6.0,
"threshold_value": 500.0
}
]
},
"aggregate_thresholds_alert_enabled": false,
"aggregate_thresholds_custom_alert_enabled": false,
"aggregate_thresholds_custom_alert_rules": [],
"alert_eval": null,
"alert_lag": "30",
"alert_on": "both",
"alert_period": "5",
"anomaly_detection_alerting_enabled": false,
"anomaly_detection_is_enabled": false,
"anomaly_detection_sensitivity": null,
"anomaly_detection_training_window": null,
"backfill_earliest_time": "-7d",
"backfill_enabled": false,
"base_search": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300",
"base_search_id": null,
"base_search_metric": null,
"cohesive_ad": {
"sensitivity": 8
},
"cohesive_anomaly_detection_is_enabled": false,
"datamodel": {
"datamodel": "",
"field": "",
"object": "",
"owner_field": ""
},
"datamodel_filter": [],
"datamodel_filter_clauses": null,
"description": "duration (rpm) Low: 0 - 10 Medium: 10 - 15 High: > 15",
"enabled": true,
"entity_filter_field": "sf_service",
"entity_split_field": "sf_service",
"entity_statop": "avg",
"entity_thresholds": {
"base_severity_color": "#FFE98C",
"base_severity_color_light": "#FFF4C5",
"base_severity_label": "low",
"base_severity_value": 3.0,
"gauge_max": 550,
"gauge_min": 0,
"is_max_static": false,
"is_min_static": true,
"metric_field": "medianLatency",
"render_boundary_max": 1324.1954787961695,
"render_boundary_min": 0.0,
"threshold_levels": [
{
"dynamic_param": 0.0,
"severity_color": "#99D18B",
"severity_color_light": "#DCEFD7",
"severity_label": "normal",
"severity_label_localized": "Normal",
"severity_value": 2.0,
"threshold_value": 0.0
},
{
"dynamic_param": 0.0,
"severity_color": "#FFE98C",
"severity_color_light": "#FFF4C5",
"severity_label": "low",
"severity_label_localized": "Low",
"severity_value": 3.0,
"threshold_value": 100.0
},
{
"dynamic_param": 0.0,
"severity_color": "#FCB64E",
"severity_color_light": "#FEE6C1",
"severity_label": "medium",
"severity_label_localized": "Medium",
"severity_value": 4.0,
"threshold_value": 200.0
},
{
"dynamic_param": 0.0,
"severity_color": "#F26A35",
"severity_color_light": "#FBCBB9",
"severity_label": "high",
"severity_label_localized": "High",
"severity_value": 5.0,
"threshold_value": 350.0
},
{
"dynamic_param": 0.0,
"severity_color": "#B50101",
"severity_color_light": "#E5A6A6",
"severity_label": "critical",
"severity_label_localized": null,
"severity_value": 6.0,
"threshold_value": 500.0
}
]
},
"fill_gaps": "null_value",
"gap_custom_alert_value": 0.0,
"gap_severity": "unknown",
"gap_severity_color": "#CCCCCC",
"gap_severity_color_light": "#EEEEEE",
"gap_severity_value": "-1",
"is_filter_entities_to_service": true,
"is_split_by_entity": true,
"key": "da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248",
"kpi_base_search": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ]",
"kpi_template_kpi_id": "",
"kpi_threshold_template_id": "",
"metric_qualifier": null,
"metric_search_spec": {
"metric_index": "",
"metric_name": ""
},
"search": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ] | `aggregate_raw_into_entity(avg, medianLatency, \"sf_service\")` | eval sec_grp = \"default_itsi_security_group\" | `match_entities(sf_service, sec_grp)` | eval serviceid = \"da-itsi-cp-splunk-observability-application-duration\" | `aggregate_entity_into_service(avg)` | `assess_severity(da-itsi-cp-splunk-observability-application-duration, da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248, true, true, true)` | eval kpi=\"Application Duration\", urgency=\"5.0\", alert_period=\"5\", serviceid=\"da-itsi-cp-splunk-observability-application-duration\" | `assess_urgency` | `gettime`",
"search_aggregate": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ] | `aggregate_raw_into_single_value(avg, avg, medianLatency, \"sf_service\", 5)` | `assess_severity(da-itsi-cp-splunk-observability-application-duration, da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248)`",
"search_alert": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ] | `aggregate_raw_into_entity(avg, medianLatency, \"sf_service\")` | eval sec_grp = \"default_itsi_security_group\" | `match_entities(sf_service, sec_grp)` | eval serviceid = \"da-itsi-cp-splunk-observability-application-duration\" | `aggregate_entity_into_service(avg)` | `assess_severity(da-itsi-cp-splunk-observability-application-duration, da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248, true, true, true)` | eval kpi=\"Application Duration\", urgency=\"5.0\", alert_period=\"5\", serviceid=\"da-itsi-cp-splunk-observability-application-duration\" | `assess_urgency` | `gettime`",
"search_alert_earliest": "5",
"search_alert_entities": "",
"search_buckets": "",
"search_entities": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ] | `aggregate_raw_into_single_value(avg, avg, medianLatency, \"sf_service\", 5)` | `assess_severity(da-itsi-cp-splunk-observability-application-duration, da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248)`",
"search_occurrences": 1.0,
"search_time_compare": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ] | `aggregate_raw_and_compare(avg, avg, medianLatency, \"sf_service\", 5)` | `assess_severity(da-itsi-cp-splunk-observability-application-duration, da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248)`",
"search_time_series": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ] | `aggregate_raw_into_entity_time_series(avg, medianLatency, \"sf_service\", 5)` | `aggregate_entity_into_service_time_series(avg, 5)` | `assess_severity(da-itsi-cp-splunk-observability-application-duration, da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248)`",
"search_time_series_aggregate": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ] | `aggregate_raw_into_entity_time_series(avg, medianLatency, \"sf_service\", 5)` | `aggregate_entity_into_service_time_series(avg, 5)` | `assess_severity(da-itsi-cp-splunk-observability-application-duration, da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248)`",
"search_time_series_entities": "| sim flow query=\"def weighted_duration(base, p, filter_, groupby):\n error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'true'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_durations = data(base + '.duration.ns.' + p, filter=filter_ and filter('sf_error', 'false'), rollup='max').mean(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'true'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n non_error_counts = data(base + '.count', filter=filter_ and filter('sf_error', 'false'), rollup='sum').sum(by=groupby, allow_missing=['sf_httpMethod'])\n\n error_weight = (error_durations * error_counts).sum(over='1m')\n non_error_weight = (non_error_durations * non_error_counts).sum(over='1m')\n\n total_weight = combine((error_weight if error_weight is not None else 0) + (non_error_weight if non_error_weight is not None else 0))\n total = combine((error_counts if error_counts is not None else 0) + (non_error_counts if non_error_counts is not None else 0)).sum(over='1m')\n return (total_weight / total)\n\nfilter_ = filter('sf_environment', '*') and filter('sf_service', '*') and filter('sf_error','*') and not filter('sf_dimensionalized', '*')\ngroupby = ['sf_service', 'sf_environment', 'sf_error']\nweighted_duration('service.request', 'median', filter_, groupby).publish(label='medianLatency')\" \n| stats avg(_value) as medianLatency by sf_service sf_environment sf_organizationID _time \n| eval medianLatency=medianLatency/100000000/300 | search [ | rest splunk_server=local report_as=text service_id=da-itsi-cp-splunk-observability-application-duration kpi_id=da-itsi-cp-splunk-observability-2f440c82d48b97d4233ed248 entity_id_fields=sf_service entity_alias_filtering_fields=sf_service search_type=adhoc \"/servicesNS/nobody/SA-ITOA/itoa_interface/generate_entity_filter\" | return $value ] | `aggregate_raw_into_limited_entity_time_series(avg, medianLatency, \"sf_service\", 5)`",
"search_type": "adhoc",
"service_title": "Application Duration",
"threshold_eval": null,
"threshold_field": "medianLatency",
"time_policies": {
"policies": {
"default_policy": {
"aggregate_thresholds": {
"base_severity_color": "#99D18B",
"base_severity_color_light": "#DCEFD7",
"base_severity_label": "normal",
"base_severity_value": 2.0,
"gauge_max": 100,
"gauge_min": 0,
"is_max_static": false,
"is_min_static": true,
"metric_field": "medianLatency",
"render_boundary_max": 639.742,
"render_boundary_min": 0.0,
"threshold_levels": []
},
"entity_thresholds": {
"base_severity_color": "#99D18B",
"base_severity_color_light": "#DCEFD7",
"base_severity_label": "normal",
"base_severity_value": 2.0,
"gauge_max": 100,
"gauge_min": 0,
"is_max_static": false,
"is_min_static": true,
"metric_field": "medianLatency",
"render_boundary_max": 3015.82,
"render_boundary_min": 0.0,
"threshold_levels": []
},
"policy_type": "static",
"time_blocks": [],
"title": "Default"
}
}
},
"title": "Application Duration",
"trending_ad": {
"sensitivity": 8
},
"type": "kpis_primary",
"tz_offset": null,
"unit": "ms",
"urgency": 5.0,
"use_time_policies": true
}
],
"service_tags": {
"tags": [],
"template_tags": []
},
"service_template_id": "",
"services_depending_on_me": [
{
"kpis_depending_on": [
"SHKPI-da-itsi-cp-splunk-observability-application-duration"
],
"service_id": "da-itsi-cp-splunk-observability-application-performance-monitoring"
}
],
"services_depends_on": [],
"team_id": "default_itsi_security_group",
"title": "Application Duration",
"version": "0.0.38"
}