diff --git a/src/elastic-cloud/02_elastic_organization/01_organization.tf b/src/elastic-cloud/02_elastic_organization/01_organization.tf index 089bf9d74e..e834387738 100644 --- a/src/elastic-cloud/02_elastic_organization/01_organization.tf +++ b/src/elastic-cloud/02_elastic_organization/01_organization.tf @@ -5,6 +5,15 @@ resource "ec_organization" "pagopa_ec_org" { }, "matteo.alongi@pagopa.it" = { organization_role = "organization-admin" + }, + "umberto.coppolabottazzi@pagopa.it" = { + organization_role = "organization-admin" + }, + "fabio.felici@pagopa.it" = { + organization_role = "organization-admin" + }, + "diego.lagosmorales@pagopa.it" = { + organization_role = "organization-admin" } } diff --git a/src/elastic-cloud/05_elstic_resources_app/02_application.tf b/src/elastic-cloud/05_elstic_resources_app/02_application.tf index 7ef62ca2e3..ad4396c68f 100644 --- a/src/elastic-cloud/05_elstic_resources_app/02_application.tf +++ b/src/elastic-cloud/05_elstic_resources_app/02_application.tf @@ -1,7 +1,22 @@ +resource "elasticstack_kibana_space" "kibana_space" { + for_each = local.spaces + space_id = "${each.value}-${var.env}" + name = "${each.value}-${var.env}" + description = "Space for ${each.value}-${var.env}" + disabled_features = [] +} + + module "app_resources" { source = "./tf_module" for_each = local.configurations - configuration = each.value + configuration = each.value.conf default_snapshot_policy_name = var.default_snapshot_policy_name + env = var.env + space_id = elasticstack_kibana_space.kibana_space[each.value.space_name].id + dashboard_folder = each.value.dashboard_folder } + + + diff --git a/src/elastic-cloud/05_elstic_resources_app/99_locals.tf b/src/elastic-cloud/05_elstic_resources_app/99_locals.tf index 8c2e73d742..a1719d7492 100644 --- a/src/elastic-cloud/05_elstic_resources_app/99_locals.tf +++ b/src/elastic-cloud/05_elstic_resources_app/99_locals.tf @@ -1,9 +1,17 @@ locals { - prefix = "pagopa" - config_files = fileset(path.module, "config/*.json" ) - configurations ={ for f in local.config_files : basename(f) => jsondecode(templatefile(f, { - env = var.env - env_separator = "${var.env}-" - wait_for_snapshot = var.lifecycle_policy_wait_for_snapshot - }))} + prefix = "pagopa" + config_folder_name = "config" + config_files = fileset(path.module, "${local.config_folder_name}/*/*.json") + configurations = { + for f in local.config_files : basename(f) => { + conf = jsondecode(templatefile(f, { + env = var.env + env_separator = "${var.env}-" + wait_for_snapshot = var.lifecycle_policy_wait_for_snapshot + })) + space_name = substr(dirname(f), length("${local.config_folder_name}/"), -1) + dashboard_folder = "${dirname(f)}/dashboards" + } + } + spaces = { for f in local.config_files : substr(dirname(f), length("${local.config_folder_name}/"), -1) => substr(dirname(f), length("${local.config_folder_name}/"), -1)} } diff --git a/src/elastic-cloud/05_elstic_resources_app/config/README.md b/src/elastic-cloud/05_elstic_resources_app/config/README.md new file mode 100644 index 0000000000..e4899b9627 --- /dev/null +++ b/src/elastic-cloud/05_elstic_resources_app/config/README.md @@ -0,0 +1,21 @@ +# kibana space configuration + + + +this folder contains the kibana spaces, indexes and data stream configuration for every application. + + +folder structure: + +```commandline +├── ndp //determines the name of the kibana space +│ └── nodo.json // resources and visualizations associated with the above space +└── printit // another kibana space + ├── dashboards // dashboard for this application + │ └── dashboard_massive.ndjson + └── printit.json +``` + + +Define a new json file containing all the required information to allow the creation of a space and all required resource to manage the logs of an application. +The file name must match diff --git a/src/elastic-cloud/05_elstic_resources_app/config/ndp/nodo.json b/src/elastic-cloud/05_elstic_resources_app/config/ndp/nodo.json new file mode 100644 index 0000000000..76498db5ce --- /dev/null +++ b/src/elastic-cloud/05_elstic_resources_app/config/ndp/nodo.json @@ -0,0 +1,169 @@ +{ + "id": "nodo", + "displayName": "Nodo dei Pagamenti ${env}", + "ingestPipeline": { + "processors": [ + { + "json": { + "field": "message", + "target_field": "json_message", + "on_failure" : [ + { + "set" : { + "field" : "error-info.message", + "value" : "Field 'message' is not a json format and not create 'json_message" + } + }, + { + "set": { + "description": "Record error detail", + "field": "error-info.message-detail", + "value": "Processor {{ _ingest.on_failure_processor_type }} with tag {{ _ingest.on_failure_processor_tag }} in pipeline {{ _ingest.on_failure_pipeline }} failed with message {{ _ingest.on_failure_message }}" + } + } + ] + } + }, + { + "set": { + "field": "app", + "copy_from": "json_message.app", + "ignore_failure": true, + "on_failure" : [ + { + "set" : { + "field" : "error-info.app", + "value" : "Field 'json_message.app' not found" + } + }, + { + "set": { + "description": "Record error detail", + "field": "error-info.app-detail", + "value": "Processor {{ _ingest.on_failure_processor_type }} with tag {{ _ingest.on_failure_processor_tag }} in pipeline {{ _ingest.on_failure_pipeline }} failed with message {{ _ingest.on_failure_message }}" + } + } + ] + } + }, + { + "set": { + "if": "ctx.app?.reJsonLog != 'true'", + "field": "message", + "copy_from": "json_message.message", + "ignore_failure": true, + "on_failure" : [ + { + "set" : { + "field" : "error-info.message", + "value" : "Field 'json_message.message' not found" + } + }, + { + "set": { + "description": "Record error detail", + "field": "error-info.message-detail", + "value": "Processor {{ _ingest.on_failure_processor_type }} with tag {{ _ingest.on_failure_processor_tag }} in pipeline {{ _ingest.on_failure_pipeline }} failed with message {{ _ingest.on_failure_message }}" + } + } + ] + } + }, + { + "json": { + "if": "ctx.app?.reJsonLog == 'true'", + "field": "json_message.message", + "target_field": "re", + "on_failure" : [ + { + "set" : { + "field" : "error-re-info.message", + "value" : "Field 'json_message.message' is not a json format and not create 're" + } + }, + { + "set": { + "description": "Record error detail", + "field": "error-re-info.message-detail", + "value": "Processor {{ _ingest.on_failure_processor_type }} with tag {{ _ingest.on_failure_processor_tag }} in pipeline {{ _ingest.on_failure_pipeline }} failed with message {{ _ingest.on_failure_message }}" + } + }, + { + "remove": { + "field": "json_message", + "ignore_missing": true + } + } + ] + } + }, + { + "set": { + "if": "ctx.app?.reJsonLog == 'true'", + "field": "message", + "copy_from": "re.internalMessage", + "ignore_failure": true, + "on_failure" : [ + { + "set" : { + "field" : "error-re-internalMessage-info.message", + "value" : "Field 're.internalMessage' not found" + } + }, + { + "set": { + "description": "Record error detail", + "field": "error-re-internalMessage-info.message-detail", + "value": "Processor {{ _ingest.on_failure_processor_type }} with tag {{ _ingest.on_failure_processor_tag }} in pipeline {{ _ingest.on_failure_pipeline }} failed with message {{ _ingest.on_failure_message }}" + } + } + ] + } + }, + { + "drop": { + "if": "ctx.app?.reXmlLog == 'true'" + } + }, + { + "remove": { + "field": "json_message", + "ignore_missing": true + } + } + ] +}, + "ilm": { + "hot": { + "minAge": "0m", + "rollover": { + "maxPrimarySize": "50gb", + "maxAge": "2d" + } + }, + "warm": { + "minAge": "2d", + "setPriority": 50 + }, + "cold": { + "minAge": "4d", + "setPriority": 0 + }, + "delete": { + "minAge": "7d", + "deleteSearchableSnapshot": true, + "waitForSnapshot": ${wait_for_snapshot} + } + }, + "indexTemplate": { + "indexPattern" : "logs-${env_separator}print-payment-*" + }, + "dataStream": [ + "logs-${env_separator}print-payment-notice-service-default", + "logs-${env_separator}print-payment-notice-generator-default", + "logs-${env_separator}print-payment-notice-functions-default" + ], + "dataView": { + "indexIdentifier": "${env_separator}print-payment" + } +} diff --git a/src/elastic-cloud/05_elstic_resources_app/config/printit/dashboards/dashboard_massive.ndjson b/src/elastic-cloud/05_elstic_resources_app/config/printit/dashboards/dashboard_massive.ndjson new file mode 100644 index 0000000000..676f0ba5db --- /dev/null +++ b/src/elastic-cloud/05_elstic_resources_app/config/printit/dashboards/dashboard_massive.ndjson @@ -0,0 +1,3 @@ +{"attributes":{"fieldAttrs":"{\"args\":{\"count\":1},\"message\":{\"count\":1},\"service.name\":{\"count\":1}}","fieldFormatMap":"{}","fields":"[]","name":"Log Stampa Avvisi","runtimeFieldMap":"{}","sourceFilters":"[]","timeFieldName":"@timestamp","title":"logs-print-payment-*","typeMeta":"{}"},"coreMigrationVersion":"8.8.0","created_at":"2024-08-07T10:37:10.595Z","id":"log_pattern_pagopaprintit","managed":false,"references":[],"type":"index-pattern","typeMigrationVersion":"8.0.0","updated_at":"2024-08-07T10:59:23.824Z","version":"WzE2MzA5LDM2XQ=="} +{"attributes":{"controlGroupInput":{"chainingSystem":"HIERARCHICAL","controlStyle":"oneLine","ignoreParentSettingsJSON":"{\"ignoreFilters\":false,\"ignoreQuery\":false,\"ignoreTimerange\":false,\"ignoreValidations\":false}","panelsJSON":"{\"5350bf5a-4476-4c07-b936-dff1040f29f3\":{\"type\":\"optionsListControl\",\"order\":0,\"grow\":false,\"width\":\"medium\",\"explicitInput\":{\"id\":\"5350bf5a-4476-4c07-b936-dff1040f29f3\",\"fieldName\":\"massiveStatus.keyword\",\"title\":\"massiveStatus.keyword\",\"grow\":false,\"width\":\"medium\",\"enhancements\":{}}},\"e79dbdd9-d4fc-42ac-8546-c1be95c47c75\":{\"type\":\"optionsListControl\",\"order\":1,\"grow\":false,\"width\":\"medium\",\"explicitInput\":{\"id\":\"e79dbdd9-d4fc-42ac-8546-c1be95c47c75\",\"fieldName\":\"itemStatus.keyword\",\"title\":\"itemStatus.keyword\",\"grow\":false,\"width\":\"medium\",\"enhancements\":{}}}}"},"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[]}"},"optionsJSON":"{\"useMargins\":true,\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"hidePanelTitles\":false}","panelsJSON":"[{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":0,\"w\":16,\"h\":12,\"i\":\"0895e95e-96d1-44ff-9cd9-2a9becd0920d\"},\"panelIndex\":\"0895e95e-96d1-44ff-9cd9-2a9becd0920d\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Generazione Massiva\",\"description\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-unifiedHistogram\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"layers\":[{\"accessors\":[\"count_column\"],\"layerId\":\"unifiedHistogram\",\"layerType\":\"data\",\"seriesType\":\"bar_stacked\",\"yConfig\":[{\"forAccessor\":\"count_column\"}],\"xAccessor\":\"9ce53ecb-0903-4f42-a68c-80d1bb6741d0\",\"splitAccessor\":\"1e8493ec-6ab7-498a-a9dd-a40365b816fb\"}],\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"preferredSeriesType\":\"bar_stacked\",\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"showCurrentTimeMarker\":true,\"axisTitlesVisibilitySettings\":{\"x\":false,\"yLeft\":false,\"yRight\":false},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":false},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":false}},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"unifiedHistogram\":{\"columnOrder\":[\"1e8493ec-6ab7-498a-a9dd-a40365b816fb\",\"9ce53ecb-0903-4f42-a68c-80d1bb6741d0\",\"count_column\"],\"columns\":{\"count_column\":{\"label\":\"Unique count of massiveStatus.keyword\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"isBucketed\":false,\"filter\":{\"query\":\"massiveStatus : INSERTED\",\"language\":\"kuery\"},\"params\":{\"format\":{\"id\":\"number\",\"params\":{\"decimals\":0}},\"emptyAsNull\":true}},\"9ce53ecb-0903-4f42-a68c-80d1bb6741d0\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"1e8493ec-6ab7-498a-a9dd-a40365b816fb\":{\"label\":\"Top 10 values of folderId.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"folderId.keyword\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"column\",\"columnId\":\"count_column\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}}},\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Richieste Generazione Massiva nel Tempo\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":16,\"y\":0,\"w\":16,\"h\":12,\"i\":\"4e7ef86e-d88d-48de-8941-c098b911ca70\"},\"panelIndex\":\"4e7ef86e-d88d-48de-8941-c098b911ca70\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Richieste\",\"description\":\"\",\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-57d5fa3a-057e-40d1-b146-6d4fc3d5fb26\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"layerId\":\"57d5fa3a-057e-40d1-b146-6d4fc3d5fb26\",\"layerType\":\"data\",\"columns\":[{\"columnId\":\"0f048bef-b946-47a8-995b-c569e89fe98c\",\"isTransposed\":false},{\"columnId\":\"3365b189-c61d-4fdc-9c82-b684e3baee0a\",\"isTransposed\":false},{\"columnId\":\"ffa9efcb-ee70-4656-bb35-24ffe9667898\",\"isTransposed\":false,\"hidden\":true},{\"columnId\":\"efb13424-25f6-41ca-a751-37aa40ca500b\",\"isTransposed\":false}],\"paging\":{\"size\":10,\"enabled\":true}},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"57d5fa3a-057e-40d1-b146-6d4fc3d5fb26\":{\"columns\":{\"0f048bef-b946-47a8-995b-c569e89fe98c\":{\"label\":\"Stato\",\"dataType\":\"string\",\"operationType\":\"last_value\",\"isBucketed\":false,\"scale\":\"ordinal\",\"sourceField\":\"massiveStatus.keyword\",\"filter\":{\"query\":\"massiveStatus : * \",\"language\":\"kuery\"},\"params\":{\"sortField\":\"@timestamp\"},\"customLabel\":true},\"3365b189-c61d-4fdc-9c82-b684e3baee0a\":{\"label\":\"Richiesta (folderId)\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"folderId.keyword\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"column\",\"columnId\":\"ffa9efcb-ee70-4656-bb35-24ffe9667898\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false},\"customLabel\":true},\"ffa9efcb-ee70-4656-bb35-24ffe9667898\":{\"label\":\"Last value of @timestamp\",\"dataType\":\"date\",\"operationType\":\"last_value\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"@timestamp\",\"filter\":{\"query\":\"@timestamp: *\",\"language\":\"kuery\"},\"params\":{\"sortField\":\"@timestamp\"}},\"efb13424-25f6-41ca-a751-37aa40ca500b\":{\"label\":\"Numero Items\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"itemId.keyword\",\"isBucketed\":false,\"filter\":{\"query\":\"itemStatus : *\",\"language\":\"kuery\"},\"params\":{\"emptyAsNull\":true},\"customLabel\":true}},\"columnOrder\":[\"3365b189-c61d-4fdc-9c82-b684e3baee0a\",\"0f048bef-b946-47a8-995b-c569e89fe98c\",\"efb13424-25f6-41ca-a751-37aa40ca500b\",\"ffa9efcb-ee70-4656-bb35-24ffe9667898\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"hidePanelTitles\":false,\"enhancements\":{}},\"title\":\"Ultimo Status delle Richieste\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":32,\"y\":0,\"w\":16,\"h\":12,\"i\":\"8a734a7b-4647-4358-b8b1-c8f30289e18a\"},\"panelIndex\":\"8a734a7b-4647-4358-b8b1-c8f30289e18a\",\"embeddableConfig\":{\"attributes\":{\"title\":\"\",\"description\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-4719f211-602d-41fc-a749-973149eef713\",\"type\":\"index-pattern\"},{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"5526937f-a206-411f-ac7b-4a93ca6fcc4e\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\",\"showSingleSeries\":true,\"isInside\":true},\"valueLabels\":\"hide\",\"fittingFunction\":\"Zero\",\"valuesInLegend\":false,\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar\",\"layers\":[{\"layerId\":\"4719f211-602d-41fc-a749-973149eef713\",\"accessors\":[\"f4495da8-5b4a-485c-ab12-e0cd45058c19\"],\"position\":\"top\",\"seriesType\":\"bar\",\"showGridlines\":false,\"layerType\":\"data\",\"xAccessor\":\"a788ff41-142b-4057-9d51-6378d9e6a1c8\",\"yConfig\":[{\"forAccessor\":\"f4495da8-5b4a-485c-ab12-e0cd45058c19\",\"axisMode\":\"left\"}],\"splitAccessor\":\"5759eac8-7791-4e0e-b276-31ffa26efe66\",\"palette\":{\"type\":\"palette\",\"name\":\"negative\"}}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[{\"meta\":{\"negate\":false,\"index\":\"5526937f-a206-411f-ac7b-4a93ca6fcc4e\",\"key\":\"log.level\",\"field\":\"log.level\",\"params\":[\"ERROR\",\"WARN\"],\"type\":\"phrases\",\"value\":[\"ERROR\",\"WARN\"],\"disabled\":false,\"alias\":null},\"query\":{\"bool\":{\"minimum_should_match\":1,\"should\":[{\"match_phrase\":{\"log.level\":\"ERROR\"}},{\"match_phrase\":{\"log.level\":\"WARN\"}}]}},\"$state\":{\"store\":\"appState\"}}],\"datasourceStates\":{\"formBased\":{\"layers\":{\"4719f211-602d-41fc-a749-973149eef713\":{\"columns\":{\"a788ff41-142b-4057-9d51-6378d9e6a1c8\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"f4495da8-5b4a-485c-ab12-e0cd45058c19\":{\"label\":\"Count of records\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true}},\"5759eac8-7791-4e0e-b276-31ffa26efe66\":{\"label\":\"Top 3 values of log.level.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"log.level.keyword\",\"isBucketed\":true,\"params\":{\"size\":3,\"orderBy\":{\"type\":\"column\",\"columnId\":\"f4495da8-5b4a-485c-ab12-e0cd45058c19\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}}},\"columnOrder\":[\"5759eac8-7791-4e0e-b276-31ffa26efe66\",\"a788ff41-142b-4057-9d51-6378d9e6a1c8\",\"f4495da8-5b4a-485c-ab12-e0cd45058c19\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{}}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Warning/Errori nel Tempo\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":12,\"w\":23,\"h\":11,\"i\":\"d64c1b57-ce42-4dba-864a-b109f164ad2a\"},\"panelIndex\":\"d64c1b57-ce42-4dba-864a-b109f164ad2a\",\"embeddableConfig\":{\"attributes\":{\"title\":\"\",\"description\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-763f68df-743e-40ec-a562-b3f6e24d8606\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"area\",\"layers\":[{\"layerId\":\"763f68df-743e-40ec-a562-b3f6e24d8606\",\"seriesType\":\"area\",\"accessors\":[\"40219f6e-742b-4dba-a467-0cc5b45690ba\"],\"layerType\":\"data\",\"xAccessor\":\"44752dc5-5a0d-46cc-bb29-e2953b505596\",\"splitAccessor\":\"9edef4f8-66a7-4f35-9e41-c37a7037e73e\",\"palette\":{\"type\":\"palette\",\"name\":\"default\"}}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"763f68df-743e-40ec-a562-b3f6e24d8606\":{\"columns\":{\"9edef4f8-66a7-4f35-9e41-c37a7037e73e\":{\"label\":\"Top 10 values of itemStatus.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"itemStatus.keyword\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"custom\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false,\"secondaryFields\":[],\"orderAgg\":{\"label\":\"Count of records\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true}}}},\"44752dc5-5a0d-46cc-bb29-e2953b505596\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"40219f6e-742b-4dba-a467-0cc5b45690baX0\":{\"label\":\"Part of cumulative_sum(count(itemStatus.keyword))\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"itemStatus.keyword\",\"params\":{\"emptyAsNull\":false},\"customLabel\":true},\"40219f6e-742b-4dba-a467-0cc5b45690baX1\":{\"label\":\"Part of cumulative_sum(count(itemStatus.keyword))\",\"dataType\":\"number\",\"operationType\":\"cumulative_sum\",\"isBucketed\":false,\"scale\":\"ratio\",\"references\":[\"40219f6e-742b-4dba-a467-0cc5b45690baX0\"],\"customLabel\":true},\"40219f6e-742b-4dba-a467-0cc5b45690ba\":{\"label\":\"numero di items\",\"dataType\":\"number\",\"operationType\":\"formula\",\"isBucketed\":false,\"scale\":\"ratio\",\"params\":{\"formula\":\"cumulative_sum(count(itemStatus.keyword))\",\"isFormulaBroken\":false},\"references\":[\"40219f6e-742b-4dba-a467-0cc5b45690baX1\"],\"customLabel\":true}},\"columnOrder\":[\"9edef4f8-66a7-4f35-9e41-c37a7037e73e\",\"44752dc5-5a0d-46cc-bb29-e2953b505596\",\"40219f6e-742b-4dba-a467-0cc5b45690ba\",\"40219f6e-742b-4dba-a467-0cc5b45690baX0\",\"40219f6e-742b-4dba-a467-0cc5b45690baX1\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{}}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Item Status nel Tempo\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":23,\"y\":12,\"w\":25,\"h\":11,\"i\":\"e38d812e-4a32-4a75-8e3f-6b62ec4695bc\"},\"panelIndex\":\"e38d812e-4a32-4a75-8e3f-6b62ec4695bc\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Topic Generate\",\"description\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-unifiedHistogram\",\"type\":\"index-pattern\"},{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"43b3d1b7-215d-43be-98d6-69e569b2b0f7\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\",\"showSingleSeries\":false,\"isInside\":false,\"shouldTruncate\":false},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"area\",\"layers\":[{\"layerId\":\"unifiedHistogram\",\"seriesType\":\"area\",\"splitAccessor\":\"fd01e832-c789-4ec9-9b16-4ab0f18f2df9\",\"accessors\":[\"count_column\",\"69c1d1fd-1f7f-435d-a634-31e833760c13\"],\"layerType\":\"data\",\"xAccessor\":\"3cc4c2c9-d217-4f93-9378-64b4a2a9d951\"}],\"yTitle\":\"count\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[{\"meta\":{\"index\":\"43b3d1b7-215d-43be-98d6-69e569b2b0f7\",\"alias\":null,\"negate\":false,\"disabled\":false,\"type\":\"exists\",\"key\":\"topic\",\"value\":\"exists\"},\"query\":{\"exists\":{\"field\":\"topic\"}},\"$state\":{\"store\":\"appState\"}}],\"datasourceStates\":{\"formBased\":{\"layers\":{\"unifiedHistogram\":{\"columnOrder\":[\"fd01e832-c789-4ec9-9b16-4ab0f18f2df9\",\"3cc4c2c9-d217-4f93-9378-64b4a2a9d951\",\"count_column\",\"69c1d1fd-1f7f-435d-a634-31e833760c13\"],\"columns\":{\"count_column\":{\"dataType\":\"number\",\"isBucketed\":false,\"label\":\"inviati\",\"operationType\":\"count\",\"scale\":\"ratio\",\"sourceField\":\"___records___\",\"params\":{\"format\":{\"id\":\"number\",\"params\":{\"decimals\":0}}},\"filter\":{\"query\":\"action: sent\",\"language\":\"kuery\"},\"customLabel\":true},\"69c1d1fd-1f7f-435d-a634-31e833760c13\":{\"label\":\"ricevuti\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"___records___\",\"filter\":{\"query\":\"action : received\",\"language\":\"kuery\"},\"params\":{\"emptyAsNull\":true},\"customLabel\":true},\"fd01e832-c789-4ec9-9b16-4ab0f18f2df9\":{\"label\":\"Top 3 values of topic.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"topic.keyword\",\"isBucketed\":true,\"params\":{\"size\":3,\"orderBy\":{\"type\":\"column\",\"columnId\":\"count_column\"},\"orderDirection\":\"desc\",\"otherBucket\":false,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"3cc4c2c9-d217-4f93-9378-64b4a2a9d951\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}}},\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Event Hub Stats\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":23,\"w\":23,\"h\":13,\"i\":\"c561a2d3-aeb7-4fa4-a1ad-8d904299d729\"},\"panelIndex\":\"c561a2d3-aeb7-4fa4-a1ad-8d904299d729\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Status\",\"description\":\"\",\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-unifiedHistogram\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"layerId\":\"unifiedHistogram\",\"layerType\":\"data\",\"columns\":[{\"columnId\":\"e4639857-006b-4a0c-bb4d-2ac315627efc\"},{\"columnId\":\"f3db77ab-7024-4c12-91cf-003a3d0a0ee3\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"name\":\"custom\",\"type\":\"palette\",\"params\":{\"steps\":5,\"stops\":[{\"color\":\"#cc5642\",\"stop\":1},{\"color\":\"#6092C0\",\"stop\":2}],\"rangeType\":\"number\",\"rangeMin\":null,\"rangeMax\":null,\"name\":\"custom\",\"colorStops\":[{\"color\":\"#cc5642\",\"stop\":null},{\"color\":\"#6092C0\",\"stop\":1}],\"continuity\":\"all\",\"reverse\":false}}},{\"columnId\":\"63c2ace4-9ac0-4bdf-b016-1e91c70f6de5\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"name\":\"custom\",\"type\":\"palette\",\"params\":{\"steps\":5,\"stops\":[{\"color\":\"#cc5642\",\"stop\":1},{\"color\":\"#6092C0\",\"stop\":2}],\"rangeType\":\"number\",\"rangeMin\":null,\"rangeMax\":null,\"name\":\"custom\",\"colorStops\":[{\"color\":\"#cc5642\",\"stop\":null},{\"color\":\"#6092C0\",\"stop\":1}],\"continuity\":\"all\",\"reverse\":false}}},{\"columnId\":\"86e3fc21-4723-47b0-ae66-8704c8027c18\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"name\":\"custom\",\"type\":\"palette\",\"params\":{\"steps\":5,\"stops\":[{\"color\":\"#cc5642\",\"stop\":1},{\"color\":\"#6092C0\",\"stop\":2}],\"rangeType\":\"number\",\"rangeMin\":null,\"rangeMax\":null,\"name\":\"custom\",\"colorStops\":[{\"color\":\"#cc5642\",\"stop\":null},{\"color\":\"#6092C0\",\"stop\":1}],\"continuity\":\"all\",\"reverse\":false}}},{\"columnId\":\"ec583e6a-4d21-4fd5-81b8-a56e6ad84b79\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"name\":\"custom\",\"type\":\"palette\",\"params\":{\"steps\":5,\"stops\":[{\"color\":\"#cc5642\",\"stop\":1},{\"color\":\"#209280\",\"stop\":2}],\"name\":\"custom\",\"colorStops\":[{\"color\":\"#cc5642\",\"stop\":null},{\"color\":\"#209280\",\"stop\":1}],\"continuity\":\"all\",\"reverse\":false,\"rangeMin\":null,\"rangeMax\":null,\"rangeType\":\"number\"}}},{\"columnId\":\"9dea882f-5704-432b-af48-6e39ebf4f2d2\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"name\":\"custom\",\"type\":\"palette\",\"params\":{\"steps\":5,\"stops\":[{\"color\":\"#fbddd6\",\"stop\":1},{\"color\":\"#cc5642\",\"stop\":100}],\"name\":\"custom\",\"colorStops\":[{\"color\":\"#fbddd6\",\"stop\":null},{\"color\":\"#cc5642\",\"stop\":1}],\"continuity\":\"all\",\"reverse\":false,\"rangeMin\":null,\"rangeMax\":null,\"rangeType\":\"number\"}}},{\"columnId\":\"27dc88fe-3412-4dad-985c-56b691b4ff0d\",\"isTransposed\":false,\"hidden\":true}],\"paging\":{\"size\":10,\"enabled\":true}},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"unifiedHistogram\":{\"columnOrder\":[\"e4639857-006b-4a0c-bb4d-2ac315627efc\",\"f3db77ab-7024-4c12-91cf-003a3d0a0ee3\",\"63c2ace4-9ac0-4bdf-b016-1e91c70f6de5\",\"86e3fc21-4723-47b0-ae66-8704c8027c18\",\"ec583e6a-4d21-4fd5-81b8-a56e6ad84b79\",\"ec583e6a-4d21-4fd5-81b8-a56e6ad84b79X0\",\"9dea882f-5704-432b-af48-6e39ebf4f2d2\",\"27dc88fe-3412-4dad-985c-56b691b4ff0d\"],\"columns\":{\"e4639857-006b-4a0c-bb4d-2ac315627efc\":{\"label\":\"folderId\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"folderId.keyword\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"column\",\"columnId\":\"27dc88fe-3412-4dad-985c-56b691b4ff0d\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false},\"customLabel\":true},\"f3db77ab-7024-4c12-91cf-003a3d0a0ee3\":{\"label\":\"INSERTED\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"isBucketed\":false,\"filter\":{\"query\":\"massiveStatus : INSERTED\",\"language\":\"kuery\"},\"params\":{\"emptyAsNull\":true},\"customLabel\":true},\"63c2ace4-9ac0-4bdf-b016-1e91c70f6de5\":{\"label\":\"PROCESSING\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"isBucketed\":false,\"filter\":{\"query\":\"massiveStatus : PROCESSING\",\"language\":\"kuery\"},\"params\":{\"emptyAsNull\":true},\"customLabel\":true},\"86e3fc21-4723-47b0-ae66-8704c8027c18\":{\"label\":\"COMPLETING\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"isBucketed\":false,\"filter\":{\"query\":\"massiveStatus : COMPLETING\",\"language\":\"kuery\"},\"params\":{\"emptyAsNull\":true},\"customLabel\":true},\"ec583e6a-4d21-4fd5-81b8-a56e6ad84b79X0\":{\"label\":\"Part of unique_count(massiveStatus.keyword, kql='massiveStatus : PROCESSED')\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"isBucketed\":false,\"filter\":{\"query\":\"massiveStatus : PROCESSED\",\"language\":\"kuery\"},\"params\":{\"emptyAsNull\":false},\"customLabel\":true},\"ec583e6a-4d21-4fd5-81b8-a56e6ad84b79\":{\"label\":\"PROCESSED\",\"dataType\":\"number\",\"operationType\":\"formula\",\"isBucketed\":false,\"scale\":\"ratio\",\"params\":{\"formula\":\"unique_count(massiveStatus.keyword, kql='massiveStatus : PROCESSED')\",\"isFormulaBroken\":false},\"references\":[\"ec583e6a-4d21-4fd5-81b8-a56e6ad84b79X0\"],\"customLabel\":true},\"9dea882f-5704-432b-af48-6e39ebf4f2d2\":{\"label\":\"ERROR/FAILED\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"isBucketed\":false,\"filter\":{\"query\":\"massiveStatus : EXCEPTION or massiveStatus : FAILED\",\"language\":\"kuery\"},\"params\":{\"emptyAsNull\":true},\"customLabel\":true},\"27dc88fe-3412-4dad-985c-56b691b4ff0d\":{\"label\":\"Last value of @timestamp\",\"dataType\":\"date\",\"operationType\":\"last_value\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"@timestamp\",\"filter\":{\"query\":\"@timestamp: *\",\"language\":\"kuery\"},\"params\":{\"sortField\":\"@timestamp\"}}},\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Transizione degli Status delle Richieste\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":23,\"y\":23,\"w\":25,\"h\":13,\"i\":\"b5df6674-39e7-4ae3-8ac1-b1799ce5d7df\"},\"panelIndex\":\"b5df6674-39e7-4ae3-8ac1-b1799ce5d7df\",\"embeddableConfig\":{\"attributes\":{\"title\":\"\",\"description\":\"\",\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-763f68df-743e-40ec-a562-b3f6e24d8606\"}],\"state\":{\"visualization\":{\"layerId\":\"763f68df-743e-40ec-a562-b3f6e24d8606\",\"layerType\":\"data\",\"columns\":[{\"columnId\":\"e4d86a1c-38cf-41ee-8548-9fbb5f425cea\"},{\"columnId\":\"c2f49e73-32ff-48c3-936d-a4dc182a2916\",\"colorMode\":\"cell\",\"palette\":{\"type\":\"palette\",\"name\":\"cool\",\"params\":{\"stops\":[{\"color\":\"#e0e8f2\",\"stop\":0},{\"color\":\"#c2d2e6\",\"stop\":20},{\"color\":\"#a2bcd9\",\"stop\":40},{\"color\":\"#82a7cd\",\"stop\":60},{\"color\":\"#6092c0\",\"stop\":80}],\"name\":\"cool\",\"continuity\":\"above\",\"reverse\":false,\"rangeMin\":0,\"rangeMax\":null}}},{\"columnId\":\"9b5f47cc-4d4f-4a9e-89f5-e1d0cdc27e27\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"type\":\"palette\",\"name\":\"cool\",\"params\":{\"stops\":[{\"color\":\"#e0e8f2\",\"stop\":0},{\"color\":\"#c2d2e6\",\"stop\":20},{\"color\":\"#a2bcd9\",\"stop\":40},{\"color\":\"#82a7cd\",\"stop\":60},{\"color\":\"#6092c0\",\"stop\":80}],\"name\":\"cool\",\"continuity\":\"above\",\"reverse\":false,\"rangeMin\":0,\"rangeMax\":null}}},{\"columnId\":\"5a910b8c-210e-4744-bf85-00075ccd8813\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"type\":\"palette\",\"name\":\"positive\",\"params\":{\"stops\":[{\"color\":\"#d6e9e4\",\"stop\":20},{\"color\":\"#aed3ca\",\"stop\":40},{\"color\":\"#85bdb1\",\"stop\":60},{\"color\":\"#5aa898\",\"stop\":80},{\"color\":\"#209280\",\"stop\":100}]}}},{\"columnId\":\"412d2f10-535c-41d7-9f40-243dbb530c34\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"type\":\"palette\",\"name\":\"negative\",\"params\":{\"stops\":[{\"color\":\"#fbddd6\",\"stop\":0},{\"color\":\"#f3bbaf\",\"stop\":20},{\"color\":\"#e99a89\",\"stop\":40},{\"color\":\"#db7965\",\"stop\":60},{\"color\":\"#cc5642\",\"stop\":80}],\"name\":\"negative\",\"continuity\":\"above\",\"reverse\":false,\"rangeMin\":0,\"rangeMax\":null}}},{\"columnId\":\"ec5f5458-ec0b-4476-81df-c1fb1f87fa48\",\"isTransposed\":false,\"hidden\":true},{\"columnId\":\"c1a8922b-0a42-417c-bd6b-c8f0ba4f2b61\",\"isTransposed\":false,\"colorMode\":\"cell\",\"palette\":{\"type\":\"palette\",\"name\":\"warm\",\"params\":{\"stops\":[{\"color\":\"#f7e0b8\",\"stop\":0},{\"color\":\"#f2c596\",\"stop\":20},{\"color\":\"#eca976\",\"stop\":40},{\"color\":\"#e78c5b\",\"stop\":60},{\"color\":\"#e7664c\",\"stop\":80}],\"name\":\"warm\",\"continuity\":\"above\",\"reverse\":false,\"rangeMin\":0,\"rangeMax\":null}}}],\"paging\":{\"size\":10,\"enabled\":true}},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"763f68df-743e-40ec-a562-b3f6e24d8606\":{\"columns\":{\"e4d86a1c-38cf-41ee-8548-9fbb5f425cea\":{\"label\":\"folderId\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"folderId.keyword\",\"isBucketed\":true,\"params\":{\"size\":5,\"orderBy\":{\"type\":\"column\",\"columnId\":\"ec5f5458-ec0b-4476-81df-c1fb1f87fa48\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false},\"customLabel\":true},\"c2f49e73-32ff-48c3-936d-a4dc182a2916\":{\"label\":\"INSERTED\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"itemId.keyword\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true},\"customLabel\":true,\"filter\":{\"query\":\"itemStatus : INSERTED\",\"language\":\"kuery\"}},\"9b5f47cc-4d4f-4a9e-89f5-e1d0cdc27e27\":{\"label\":\"PROCESSING\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"itemId.keyword\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true},\"customLabel\":true,\"filter\":{\"query\":\"itemStatus : PROCESSING\",\"language\":\"kuery\"}},\"5a910b8c-210e-4744-bf85-00075ccd8813\":{\"label\":\"SUCCESS\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"itemId.keyword\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true},\"customLabel\":true,\"filter\":{\"query\":\"itemStatus : SUCCESS\",\"language\":\"kuery\"}},\"412d2f10-535c-41d7-9f40-243dbb530c34\":{\"label\":\"ERROR/FAILED\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"itemId.keyword\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true},\"customLabel\":true,\"filter\":{\"query\":\"itemStatus : FAILED or itemStatus : EXCEPTION\",\"language\":\"kuery\"}},\"ec5f5458-ec0b-4476-81df-c1fb1f87fa48\":{\"label\":\"Last value of @timestamp\",\"dataType\":\"date\",\"operationType\":\"last_value\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"@timestamp\",\"filter\":{\"query\":\"@timestamp: *\",\"language\":\"kuery\"},\"params\":{\"sortField\":\"@timestamp\"}},\"c1a8922b-0a42-417c-bd6b-c8f0ba4f2b61\":{\"label\":\"RECOVERED\",\"dataType\":\"number\",\"operationType\":\"unique_count\",\"scale\":\"ratio\",\"sourceField\":\"itemId.keyword\",\"isBucketed\":false,\"params\":{\"emptyAsNull\":true},\"customLabel\":true,\"filter\":{\"query\":\" itemStatus: RECOVERED\",\"language\":\"kuery\"}}},\"columnOrder\":[\"e4d86a1c-38cf-41ee-8548-9fbb5f425cea\",\"c2f49e73-32ff-48c3-936d-a4dc182a2916\",\"9b5f47cc-4d4f-4a9e-89f5-e1d0cdc27e27\",\"5a910b8c-210e-4744-bf85-00075ccd8813\",\"412d2f10-535c-41d7-9f40-243dbb530c34\",\"c1a8922b-0a42-417c-bd6b-c8f0ba4f2b61\",\"ec5f5458-ec0b-4476-81df-c1fb1f87fa48\"],\"sampling\":1,\"ignoreGlobalFilters\":false,\"incompleteColumns\":{}}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Transizione degli \\\"Item Status\\\" per Richiesta\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":36,\"w\":23,\"h\":11,\"i\":\"8cea4ef3-8924-4bab-a7a5-22f85087d50a\"},\"panelIndex\":\"8cea4ef3-8924-4bab-a7a5-22f85087d50a\",\"embeddableConfig\":{\"attributes\":{\"title\":\"message\",\"description\":\"\",\"visualizationType\":\"lnsDatatable\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-unifiedHistogram\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"layerId\":\"unifiedHistogram\",\"layerType\":\"data\",\"columns\":[{\"columnId\":\"ef943d3c-049c-4226-a7ce-4e169730db75\",\"isTransposed\":false,\"collapseFn\":\"\",\"width\":358.2},{\"columnId\":\"ace4d44f-4075-4f7a-b6ea-281f73cf5a16\",\"isTransposed\":false,\"hidden\":false},{\"columnId\":\"a529b0bd-148b-42d6-9ba8-e7e50367dc97\",\"isTransposed\":true},{\"columnId\":\"61254280-0f04-4931-b26b-8a0108b591fc\",\"isTransposed\":true}],\"sorting\":{\"columnId\":\"complete---sent---ace4d44f-4075-4f7a-b6ea-281f73cf5a16\",\"direction\":\"desc\"},\"paging\":{\"size\":10,\"enabled\":true}},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"unifiedHistogram\":{\"columnOrder\":[\"61254280-0f04-4931-b26b-8a0108b591fc\",\"a529b0bd-148b-42d6-9ba8-e7e50367dc97\",\"ef943d3c-049c-4226-a7ce-4e169730db75\",\"ace4d44f-4075-4f7a-b6ea-281f73cf5a16\"],\"columns\":{\"ef943d3c-049c-4226-a7ce-4e169730db75\":{\"label\":\"Top values of folderId.keyword + 1 other\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"folderId.keyword\",\"isBucketed\":true,\"params\":{\"size\":10,\"orderBy\":{\"type\":\"column\",\"columnId\":\"ace4d44f-4075-4f7a-b6ea-281f73cf5a16\"},\"orderDirection\":\"desc\",\"otherBucket\":false,\"missingBucket\":false,\"parentFormat\":{\"id\":\"multi_terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false,\"secondaryFields\":[\"itemId.keyword\"]}},\"ace4d44f-4075-4f7a-b6ea-281f73cf5a16\":{\"label\":\"Count\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"___records___\",\"params\":{\"emptyAsNull\":true},\"customLabel\":true},\"a529b0bd-148b-42d6-9ba8-e7e50367dc97\":{\"label\":\"Top 3 values of action.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"action.keyword\",\"isBucketed\":true,\"params\":{\"size\":3,\"orderBy\":{\"type\":\"column\",\"columnId\":\"ace4d44f-4075-4f7a-b6ea-281f73cf5a16\"},\"orderDirection\":\"asc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"61254280-0f04-4931-b26b-8a0108b591fc\":{\"label\":\"Top 3 values of topic.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"topic.keyword\",\"isBucketed\":true,\"params\":{\"size\":3,\"orderBy\":{\"type\":\"column\",\"columnId\":\"ace4d44f-4075-4f7a-b6ea-281f73cf5a16\"},\"orderDirection\":\"desc\",\"otherBucket\":true,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}}},\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Messaggi inviati per singolo Item della Richiesta\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":23,\"y\":36,\"w\":10,\"h\":11,\"i\":\"f5e11d6e-7627-477a-9ec5-4153af2f5844\"},\"panelIndex\":\"f5e11d6e-7627-477a-9ec5-4153af2f5844\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Generazione Massiva\",\"description\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-unifiedHistogram\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar\",\"layers\":[{\"layerId\":\"unifiedHistogram\",\"seriesType\":\"bar\",\"xAccessor\":\"7f9a8753-dba6-4f57-98d8-b21d3d4ac1ac\",\"accessors\":[\"count_column\"],\"layerType\":\"data\",\"yConfig\":[{\"forAccessor\":\"count_column\",\"color\":\"#d36086\"}]}]},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"unifiedHistogram\":{\"columnOrder\":[\"7f9a8753-dba6-4f57-98d8-b21d3d4ac1ac\",\"count_column\"],\"columns\":{\"count_column\":{\"label\":\"Errori\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"filter\":{\"query\":\"massiveStatus : FAILED or massiveStatus : EXCEPTION or massiveStatus : PROCESSED_WITH_FAILURES\",\"language\":\"kuery\"},\"params\":{\"format\":{\"id\":\"number\",\"params\":{\"decimals\":0}},\"emptyAsNull\":false},\"customLabel\":true},\"7f9a8753-dba6-4f57-98d8-b21d3d4ac1ac\":{\"label\":\"@timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"@timestamp\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}}},\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Richieste in Errore\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":33,\"y\":36,\"w\":15,\"h\":7,\"i\":\"b80a0fcd-26a3-4143-a4a1-af733d59acb5\"},\"panelIndex\":\"b80a0fcd-26a3-4143-a4a1-af733d59acb5\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Topic Generate\",\"description\":\"\",\"visualizationType\":\"lnsMetric\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-unifiedHistogram\",\"type\":\"index-pattern\"},{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"d37b95cc-bc7f-4612-9d75-831cdb0c7e59\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"layerId\":\"unifiedHistogram\",\"layerType\":\"data\",\"metricAccessor\":\"count_column\",\"breakdownByAccessor\":\"652f545c-1e61-4166-bc36-f1d5e7d7fe03\",\"secondaryMetricAccessor\":\"69c1d1fd-1f7f-435d-a634-31e833760c13\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[{\"meta\":{\"index\":\"d37b95cc-bc7f-4612-9d75-831cdb0c7e59\",\"alias\":null,\"negate\":false,\"disabled\":false,\"type\":\"exists\",\"key\":\"topic\",\"value\":\"exists\"},\"query\":{\"exists\":{\"field\":\"topic\"}},\"$state\":{\"store\":\"appState\"}}],\"datasourceStates\":{\"formBased\":{\"layers\":{\"unifiedHistogram\":{\"columnOrder\":[\"652f545c-1e61-4166-bc36-f1d5e7d7fe03\",\"count_column\",\"69c1d1fd-1f7f-435d-a634-31e833760c13\"],\"columns\":{\"count_column\":{\"dataType\":\"number\",\"isBucketed\":false,\"label\":\"messaggi di generazione inviati\",\"operationType\":\"count\",\"scale\":\"ratio\",\"sourceField\":\"___records___\",\"params\":{\"format\":{\"id\":\"number\",\"params\":{\"decimals\":0}}},\"filter\":{\"query\":\"action: sent\",\"language\":\"kuery\"},\"customLabel\":true},\"652f545c-1e61-4166-bc36-f1d5e7d7fe03\":{\"label\":\"Top 3 values of topic.keyword\",\"dataType\":\"string\",\"operationType\":\"terms\",\"scale\":\"ordinal\",\"sourceField\":\"topic.keyword\",\"isBucketed\":true,\"params\":{\"size\":3,\"orderBy\":{\"type\":\"column\",\"columnId\":\"count_column\"},\"orderDirection\":\"desc\",\"otherBucket\":false,\"missingBucket\":false,\"parentFormat\":{\"id\":\"terms\"},\"include\":[],\"exclude\":[],\"includeIsRegex\":false,\"excludeIsRegex\":false}},\"69c1d1fd-1f7f-435d-a634-31e833760c13\":{\"label\":\"di cui ricevuti\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"___records___\",\"filter\":{\"query\":\"action : received\",\"language\":\"kuery\"},\"params\":{\"emptyAsNull\":true},\"customLabel\":true}},\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"Topic Stats\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":33,\"y\":43,\"w\":8,\"h\":4,\"i\":\"5852c3fc-c7b4-4a89-9671-5d384045266f\"},\"panelIndex\":\"5852c3fc-c7b4-4a89-9671-5d384045266f\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Generazione Massiva\",\"description\":\"\",\"visualizationType\":\"lnsMetric\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-unifiedHistogram\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"layerId\":\"unifiedHistogram\",\"layerType\":\"data\",\"metricAccessor\":\"count_column\"},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"unifiedHistogram\":{\"columnOrder\":[\"count_column\"],\"columns\":{\"count_column\":{\"label\":\"Richieste Massive Totali\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"filter\":{\"query\":\"massiveStatus : INSERTED\",\"language\":\"kuery\"},\"params\":{\"format\":{\"id\":\"number\",\"params\":{\"decimals\":0}},\"emptyAsNull\":true},\"customLabel\":true}},\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"\"},{\"version\":\"8.9.0\",\"type\":\"lens\",\"gridData\":{\"x\":41,\"y\":43,\"w\":7,\"h\":4,\"i\":\"45275035-910f-4d61-9c74-d14aabb20fc3\"},\"panelIndex\":\"45275035-910f-4d61-9c74-d14aabb20fc3\",\"embeddableConfig\":{\"attributes\":{\"title\":\"Generazione Massiva\",\"description\":\"\",\"visualizationType\":\"lnsMetric\",\"type\":\"lens\",\"references\":[{\"id\":\"log_pattern_pagopaprintit\",\"name\":\"indexpattern-datasource-layer-unifiedHistogram\",\"type\":\"index-pattern\"}],\"state\":{\"visualization\":{\"layerId\":\"unifiedHistogram\",\"layerType\":\"data\",\"metricAccessor\":\"count_column\",\"palette\":{\"name\":\"custom\",\"type\":\"palette\",\"params\":{\"steps\":3,\"name\":\"custom\",\"reverse\":false,\"rangeType\":\"number\",\"rangeMin\":null,\"rangeMax\":null,\"progression\":\"fixed\",\"stops\":[{\"color\":\"#209280\",\"stop\":1},{\"color\":\"#cc5642\",\"stop\":18}],\"colorStops\":[{\"color\":\"#209280\",\"stop\":null},{\"color\":\"#cc5642\",\"stop\":1}],\"continuity\":\"all\",\"maxSteps\":5}}},\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filters\":[],\"datasourceStates\":{\"formBased\":{\"layers\":{\"unifiedHistogram\":{\"columnOrder\":[\"count_column\"],\"columns\":{\"count_column\":{\"label\":\"Errori\",\"dataType\":\"number\",\"operationType\":\"count\",\"isBucketed\":false,\"scale\":\"ratio\",\"sourceField\":\"massiveStatus.keyword\",\"filter\":{\"query\":\"massiveStatus : FAILED or massiveStatus : EXCEPTION or massiveStatus : PROCESSED_WITH_FAILURES\",\"language\":\"kuery\"},\"params\":{\"format\":{\"id\":\"number\",\"params\":{\"decimals\":0}},\"emptyAsNull\":false},\"customLabel\":true}},\"incompleteColumns\":{}}}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{},\"hidePanelTitles\":false},\"title\":\"\"},{\"version\":\"8.9.0\",\"type\":\"LOG_STREAM_EMBEDDABLE\",\"gridData\":{\"x\":0,\"y\":47,\"w\":48,\"h\":11,\"i\":\"47207d45-ba44-4d14-a7ef-989c2a35d683\"},\"panelIndex\":\"47207d45-ba44-4d14-a7ef-989c2a35d683\",\"embeddableConfig\":{\"enhancements\":{}},\"title\":\"Log stream\"}]","timeRestore":false,"title":"Generazione Massiva","version":1},"coreMigrationVersion":"8.8.0","created_at":"2024-08-07T11:04:09.352Z","id":"97a2c8d0-4f5f-11ef-b0e3-0765a6d133f1","managed":false,"references":[{"id":"log_pattern_pagopaprintit","name":"0895e95e-96d1-44ff-9cd9-2a9becd0920d:indexpattern-datasource-layer-unifiedHistogram","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"4e7ef86e-d88d-48de-8941-c098b911ca70:indexpattern-datasource-layer-57d5fa3a-057e-40d1-b146-6d4fc3d5fb26","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"8a734a7b-4647-4358-b8b1-c8f30289e18a:indexpattern-datasource-layer-4719f211-602d-41fc-a749-973149eef713","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"8a734a7b-4647-4358-b8b1-c8f30289e18a:5526937f-a206-411f-ac7b-4a93ca6fcc4e","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"d64c1b57-ce42-4dba-864a-b109f164ad2a:indexpattern-datasource-layer-763f68df-743e-40ec-a562-b3f6e24d8606","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"e38d812e-4a32-4a75-8e3f-6b62ec4695bc:indexpattern-datasource-layer-unifiedHistogram","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"e38d812e-4a32-4a75-8e3f-6b62ec4695bc:43b3d1b7-215d-43be-98d6-69e569b2b0f7","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"c561a2d3-aeb7-4fa4-a1ad-8d904299d729:indexpattern-datasource-layer-unifiedHistogram","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"b5df6674-39e7-4ae3-8ac1-b1799ce5d7df:indexpattern-datasource-layer-763f68df-743e-40ec-a562-b3f6e24d8606","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"8cea4ef3-8924-4bab-a7a5-22f85087d50a:indexpattern-datasource-layer-unifiedHistogram","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"f5e11d6e-7627-477a-9ec5-4153af2f5844:indexpattern-datasource-layer-unifiedHistogram","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"b80a0fcd-26a3-4143-a4a1-af733d59acb5:indexpattern-datasource-layer-unifiedHistogram","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"b80a0fcd-26a3-4143-a4a1-af733d59acb5:d37b95cc-bc7f-4612-9d75-831cdb0c7e59","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"5852c3fc-c7b4-4a89-9671-5d384045266f:indexpattern-datasource-layer-unifiedHistogram","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"45275035-910f-4d61-9c74-d14aabb20fc3:indexpattern-datasource-layer-unifiedHistogram","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"controlGroup_5350bf5a-4476-4c07-b936-dff1040f29f3:optionsListDataView","type":"index-pattern"},{"id":"log_pattern_pagopaprintit","name":"controlGroup_e79dbdd9-d4fc-42ac-8546-c1be95c47c75:optionsListDataView","type":"index-pattern"}],"type":"dashboard","typeMigrationVersion":"8.9.0","updated_at":"2024-08-07T11:04:09.352Z","version":"WzE2MzI1LDM2XQ=="} +{"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":2,"missingRefCount":0,"missingReferences":[]} diff --git a/src/elastic-cloud/05_elstic_resources_app/config/printit.json b/src/elastic-cloud/05_elstic_resources_app/config/printit/printit.json similarity index 95% rename from src/elastic-cloud/05_elstic_resources_app/config/printit.json rename to src/elastic-cloud/05_elstic_resources_app/config/printit/printit.json index 6ce61812f5..9d712d2996 100644 --- a/src/elastic-cloud/05_elstic_resources_app/config/printit.json +++ b/src/elastic-cloud/05_elstic_resources_app/config/printit/printit.json @@ -1,9 +1,6 @@ { - "id": "printit-${env}", + "id": "printit", "displayName": "Print It ${env}", - "space": { - "disabledFeatures": [] - }, "ingestPipeline": { "processors": [ { diff --git a/src/elastic-cloud/05_elstic_resources_app/tf_module/local_defaults.tf b/src/elastic-cloud/05_elstic_resources_app/tf_module/local_defaults.tf new file mode 100644 index 0000000000..3cb221df6f --- /dev/null +++ b/src/elastic-cloud/05_elstic_resources_app/tf_module/local_defaults.tf @@ -0,0 +1,5 @@ +locals { + default_ilm = { + + } +} diff --git a/src/elastic-cloud/05_elstic_resources_app/tf_module/resources.tf b/src/elastic-cloud/05_elstic_resources_app/tf_module/resources.tf index 0e985bc979..d09853f95d 100644 --- a/src/elastic-cloud/05_elstic_resources_app/tf_module/resources.tf +++ b/src/elastic-cloud/05_elstic_resources_app/tf_module/resources.tf @@ -1,27 +1,19 @@ locals { data_streams = { for d in var.configuration.dataStream : d => d} + application_id = "${var.configuration.id}-${var.env}" + dashboards = { for df in fileset("${var.dashboard_folder}", "/*.ndjson") : basename(df) => "${var.dashboard_folder}/${df}" } } -output "conf" { - value = var.configuration -} - -resource "elasticstack_kibana_space" "kibana_space" { - space_id = var.configuration.id - name = "${var.configuration.displayName}" - description = "Space for ${var.configuration.displayName}" - disabled_features = var.configuration.space.disabledFeatures -} resource "elasticstack_elasticsearch_ingest_pipeline" "ingest_pipeline" { - name = "${var.configuration.id}-pipeline" + name = "${local.application_id}-pipeline" description = "Ingest pipeline for ${var.configuration.displayName}" processors = [ for p in var.configuration.ingestPipeline.processors : jsonencode(p)] } resource "elasticstack_elasticsearch_index_lifecycle" "index_lifecycle" { - name = "${var.configuration.id}-ilm" + name = "${local.application_id}-ilm" hot { min_age = var.configuration.ilm.hot.minAge @@ -64,31 +56,31 @@ resource "elasticstack_elasticsearch_index_lifecycle" "index_lifecycle" { } resource "elasticstack_elasticsearch_component_template" "component_template" { - name = "${var.configuration.id}@custom" + name = "${local.application_id}@custom" template { settings = jsonencode({ "index": { - "default_pipeline": elasticstack_elasticsearch_ingest_pipeline.ingest_pipeline.name, #fixme count index + "default_pipeline": elasticstack_elasticsearch_ingest_pipeline.ingest_pipeline.name, "lifecycle": { - "name": elasticstack_elasticsearch_index_lifecycle.index_lifecycle.name #fixme count index + "name": elasticstack_elasticsearch_index_lifecycle.index_lifecycle.name } } }) } metadata = jsonencode({ - description = "Settings for ${var.configuration.id}" + description = "Settings for ${local.application_id}" }) } resource "elasticstack_elasticsearch_index_template" "index_template" { - name = "${var.configuration.id}-idxtpl" + name = "${local.application_id}-idxtpl" priority = 500 index_patterns = [ var.configuration.indexTemplate.indexPattern ] - composed_of = [elasticstack_elasticsearch_component_template.component_template.name] #fixme count index + composed_of = [elasticstack_elasticsearch_component_template.component_template.name] data_stream { allow_custom_routing = false @@ -106,7 +98,7 @@ resource "elasticstack_elasticsearch_index_template" "index_template" { } metadata = jsonencode({ - "description" = "Index template for ${var.configuration.id}" + "description" = "Index template for ${local.application_id}" }) } @@ -123,7 +115,7 @@ resource "elasticstack_elasticsearch_data_stream" "data_stream" { resource "elasticstack_kibana_data_view" "kibana_data_view" { - space_id = elasticstack_kibana_space.kibana_space.id #fixme count index + space_id = var.space_id data_view = { name = "Log ${var.configuration.dataView.indexIdentifier}" title = "logs-${var.configuration.dataView.indexIdentifier}-*" @@ -131,3 +123,11 @@ resource "elasticstack_kibana_data_view" "kibana_data_view" { } } + +resource "elasticstack_kibana_import_saved_objects" "dashboard" { + for_each = local.dashboards + + overwrite = true + + file_contents = file(each.value) +} diff --git a/src/elastic-cloud/05_elstic_resources_app/tf_module/variables.tf b/src/elastic-cloud/05_elstic_resources_app/tf_module/variables.tf index 975b4462bd..d4679b188e 100644 --- a/src/elastic-cloud/05_elstic_resources_app/tf_module/variables.tf +++ b/src/elastic-cloud/05_elstic_resources_app/tf_module/variables.tf @@ -5,3 +5,15 @@ variable "configuration" { variable "default_snapshot_policy_name" { type = string } + +variable "space_id" { + type = string +} + +variable "env" { + type = string +} + +variable "dashboard_folder" { + type = string +}