From 4d0ccfb97ccf9531f0a989224d3277986452f276 Mon Sep 17 00:00:00 2001 From: Nicolas Ruflin Date: Mon, 29 Jun 2020 10:02:56 +0200 Subject: [PATCH] Update base packages to use new paths (#90) As discussed in https://github.com/elastic/package-registry/issues/565 the names of the directories should only use `_` and no `-`. This updates the base package to use both directories in parallel. --- packages/base/0.3.0/docs/README.md | 3 + .../component-template/events-mappings.json | 163 ++++++++++++++++++ .../component-template/events-settings.json | 21 +++ .../component-template/logs-mappings.json | 163 ++++++++++++++++++ .../component-template/logs-settings.json | 21 +++ .../component-template/metrics-mappings.json | 160 +++++++++++++++++ .../component-template/metrics-settings.json | 21 +++ .../component_template/events-mappings.json | 163 ++++++++++++++++++ .../component_template/events-settings.json | 21 +++ .../component_template/logs-mappings.json | 163 ++++++++++++++++++ .../component_template/logs-settings.json | 21 +++ .../component_template/metrics-mappings.json | 160 +++++++++++++++++ .../component_template/metrics-settings.json | 21 +++ .../ilm-policy/events-default.json | 15 ++ .../ilm-policy/logs-default.json | 15 ++ .../ilm-policy/metrics-default.json | 15 ++ .../ilm_policy/events-default.json | 15 ++ .../ilm_policy/logs-default.json | 15 ++ .../ilm_policy/metrics-default.json | 15 ++ .../elasticsearch/index-template/events.json | 13 ++ .../elasticsearch/index-template/logs.json | 13 ++ .../elasticsearch/index-template/metrics.json | 13 ++ .../elasticsearch/index_template/events.json | 13 ++ .../elasticsearch/index_template/logs.json | 13 ++ .../elasticsearch/index_template/metrics.json | 13 ++ packages/base/0.3.0/manifest.yml | 30 ++++ 26 files changed, 1299 insertions(+) create mode 100644 packages/base/0.3.0/docs/README.md create mode 100644 packages/base/0.3.0/elasticsearch/component-template/events-mappings.json create mode 100644 packages/base/0.3.0/elasticsearch/component-template/events-settings.json create mode 100644 packages/base/0.3.0/elasticsearch/component-template/logs-mappings.json create mode 100644 packages/base/0.3.0/elasticsearch/component-template/logs-settings.json create mode 100644 packages/base/0.3.0/elasticsearch/component-template/metrics-mappings.json create mode 100644 packages/base/0.3.0/elasticsearch/component-template/metrics-settings.json create mode 100644 packages/base/0.3.0/elasticsearch/component_template/events-mappings.json create mode 100644 packages/base/0.3.0/elasticsearch/component_template/events-settings.json create mode 100644 packages/base/0.3.0/elasticsearch/component_template/logs-mappings.json create mode 100644 packages/base/0.3.0/elasticsearch/component_template/logs-settings.json create mode 100644 packages/base/0.3.0/elasticsearch/component_template/metrics-mappings.json create mode 100644 packages/base/0.3.0/elasticsearch/component_template/metrics-settings.json create mode 100644 packages/base/0.3.0/elasticsearch/ilm-policy/events-default.json create mode 100644 packages/base/0.3.0/elasticsearch/ilm-policy/logs-default.json create mode 100644 packages/base/0.3.0/elasticsearch/ilm-policy/metrics-default.json create mode 100644 packages/base/0.3.0/elasticsearch/ilm_policy/events-default.json create mode 100644 packages/base/0.3.0/elasticsearch/ilm_policy/logs-default.json create mode 100644 packages/base/0.3.0/elasticsearch/ilm_policy/metrics-default.json create mode 100644 packages/base/0.3.0/elasticsearch/index-template/events.json create mode 100644 packages/base/0.3.0/elasticsearch/index-template/logs.json create mode 100644 packages/base/0.3.0/elasticsearch/index-template/metrics.json create mode 100644 packages/base/0.3.0/elasticsearch/index_template/events.json create mode 100644 packages/base/0.3.0/elasticsearch/index_template/logs.json create mode 100644 packages/base/0.3.0/elasticsearch/index_template/metrics.json create mode 100644 packages/base/0.3.0/manifest.yml diff --git a/packages/base/0.3.0/docs/README.md b/packages/base/0.3.0/docs/README.md new file mode 100644 index 0000000000..152200ea6d --- /dev/null +++ b/packages/base/0.3.0/docs/README.md @@ -0,0 +1,3 @@ +# Base package + +This is installed in the background by EPM to setup the Elastic Stack. diff --git a/packages/base/0.3.0/elasticsearch/component-template/events-mappings.json b/packages/base/0.3.0/elasticsearch/component-template/events-mappings.json new file mode 100644 index 0000000000..e517f9e389 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component-template/events-mappings.json @@ -0,0 +1,163 @@ +{ + "template": { + "mappings": { + "_meta": { + }, + "dynamic_templates": [ + { + "strings_as_keyword": { + "mapping": { + "ignore_above": 1024, + "type": "keyword" + }, + "match_mapping_type": "string" + } + } + ], + "date_detection": false, + "properties": { + "@timestamp": { + "type": "date" + }, + "stream": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "events" + }, + "dataset": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "dataset": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "events" + }, + "name": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "agent": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "ephemeral_id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ecs": { + "properties": { + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "host": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "os": { + "properties": { + "build": { + "ignore_above": 1024, + "type": "keyword" + }, + "kernel": { + "ignore_above": 1024, + "type": "keyword" + }, + "codename": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "family": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + }, + "platform": { + "ignore_above": 1024, + "type": "keyword" + }, + "full": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ip": { + "type": "ip" + }, + "containerized": { + "type": "boolean" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "mac": { + "ignore_above": 1024, + "type": "keyword" + }, + "architecture": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "message": { + "type": "text" + } + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component-template/events-settings.json b/packages/base/0.3.0/elasticsearch/component-template/events-settings.json new file mode 100644 index 0000000000..3cd594414e --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component-template/events-settings.json @@ -0,0 +1,21 @@ +{ + "template": { + "settings": { + "index": { + "lifecycle": { + "name": "events-default" + }, + "codec": "best_compression", + "refresh_interval": "5s", + "number_of_shards": "1", + "query": { + "default_field": [ + "message" + ] + }, + "number_of_routing_shards": "30" + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component-template/logs-mappings.json b/packages/base/0.3.0/elasticsearch/component-template/logs-mappings.json new file mode 100644 index 0000000000..58f2c94b1b --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component-template/logs-mappings.json @@ -0,0 +1,163 @@ +{ + "template": { + "mappings": { + "_meta": { + }, + "dynamic_templates": [ + { + "strings_as_keyword": { + "mapping": { + "ignore_above": 1024, + "type": "keyword" + }, + "match_mapping_type": "string" + } + } + ], + "date_detection": false, + "properties": { + "@timestamp": { + "type": "date" + }, + "stream": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "logs" + }, + "dataset": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "dataset": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "events" + }, + "name": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "agent": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "ephemeral_id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ecs": { + "properties": { + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "host": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "os": { + "properties": { + "build": { + "ignore_above": 1024, + "type": "keyword" + }, + "kernel": { + "ignore_above": 1024, + "type": "keyword" + }, + "codename": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "family": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + }, + "platform": { + "ignore_above": 1024, + "type": "keyword" + }, + "full": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ip": { + "type": "ip" + }, + "containerized": { + "type": "boolean" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "mac": { + "ignore_above": 1024, + "type": "keyword" + }, + "architecture": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "message": { + "type": "text" + } + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component-template/logs-settings.json b/packages/base/0.3.0/elasticsearch/component-template/logs-settings.json new file mode 100644 index 0000000000..eaaa60a9a3 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component-template/logs-settings.json @@ -0,0 +1,21 @@ +{ + "template": { + "settings": { + "index": { + "lifecycle": { + "name": "logs-default" + }, + "codec": "best_compression", + "refresh_interval": "5s", + "number_of_shards": "1", + "query": { + "default_field": [ + "message" + ] + }, + "number_of_routing_shards": "30" + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component-template/metrics-mappings.json b/packages/base/0.3.0/elasticsearch/component-template/metrics-mappings.json new file mode 100644 index 0000000000..1910e21ac9 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component-template/metrics-mappings.json @@ -0,0 +1,160 @@ +{ + "template": { + "mappings": { + "_meta": { + }, + "dynamic_templates": [ + { + "strings_as_keyword": { + "mapping": { + "ignore_above": 1024, + "type": "keyword" + }, + "match_mapping_type": "string" + } + } + ], + "date_detection": false, + "properties": { + "@timestamp": { + "type": "date" + }, + "stream": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "metrics" + }, + "dataset": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "dataset": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "events" + }, + "name": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "agent": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "ephemeral_id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ecs": { + "properties": { + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "host": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "os": { + "properties": { + "build": { + "ignore_above": 1024, + "type": "keyword" + }, + "kernel": { + "ignore_above": 1024, + "type": "keyword" + }, + "codename": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "family": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + }, + "platform": { + "ignore_above": 1024, + "type": "keyword" + }, + "full": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ip": { + "type": "ip" + }, + "containerized": { + "type": "boolean" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "mac": { + "ignore_above": 1024, + "type": "keyword" + }, + "architecture": { + "ignore_above": 1024, + "type": "keyword" + } + } + } + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component-template/metrics-settings.json b/packages/base/0.3.0/elasticsearch/component-template/metrics-settings.json new file mode 100644 index 0000000000..539f79ed9d --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component-template/metrics-settings.json @@ -0,0 +1,21 @@ +{ + "template": { + "settings": { + "index": { + "lifecycle": { + "name": "metrics-default" + }, + "codec": "best_compression", + "refresh_interval": "5s", + "number_of_shards": "1", + "query": { + "default_field": [ + "message" + ] + }, + "number_of_routing_shards": "30" + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component_template/events-mappings.json b/packages/base/0.3.0/elasticsearch/component_template/events-mappings.json new file mode 100644 index 0000000000..e517f9e389 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component_template/events-mappings.json @@ -0,0 +1,163 @@ +{ + "template": { + "mappings": { + "_meta": { + }, + "dynamic_templates": [ + { + "strings_as_keyword": { + "mapping": { + "ignore_above": 1024, + "type": "keyword" + }, + "match_mapping_type": "string" + } + } + ], + "date_detection": false, + "properties": { + "@timestamp": { + "type": "date" + }, + "stream": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "events" + }, + "dataset": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "dataset": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "events" + }, + "name": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "agent": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "ephemeral_id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ecs": { + "properties": { + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "host": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "os": { + "properties": { + "build": { + "ignore_above": 1024, + "type": "keyword" + }, + "kernel": { + "ignore_above": 1024, + "type": "keyword" + }, + "codename": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "family": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + }, + "platform": { + "ignore_above": 1024, + "type": "keyword" + }, + "full": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ip": { + "type": "ip" + }, + "containerized": { + "type": "boolean" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "mac": { + "ignore_above": 1024, + "type": "keyword" + }, + "architecture": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "message": { + "type": "text" + } + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component_template/events-settings.json b/packages/base/0.3.0/elasticsearch/component_template/events-settings.json new file mode 100644 index 0000000000..3cd594414e --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component_template/events-settings.json @@ -0,0 +1,21 @@ +{ + "template": { + "settings": { + "index": { + "lifecycle": { + "name": "events-default" + }, + "codec": "best_compression", + "refresh_interval": "5s", + "number_of_shards": "1", + "query": { + "default_field": [ + "message" + ] + }, + "number_of_routing_shards": "30" + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component_template/logs-mappings.json b/packages/base/0.3.0/elasticsearch/component_template/logs-mappings.json new file mode 100644 index 0000000000..58f2c94b1b --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component_template/logs-mappings.json @@ -0,0 +1,163 @@ +{ + "template": { + "mappings": { + "_meta": { + }, + "dynamic_templates": [ + { + "strings_as_keyword": { + "mapping": { + "ignore_above": 1024, + "type": "keyword" + }, + "match_mapping_type": "string" + } + } + ], + "date_detection": false, + "properties": { + "@timestamp": { + "type": "date" + }, + "stream": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "logs" + }, + "dataset": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "dataset": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "events" + }, + "name": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "agent": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "ephemeral_id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ecs": { + "properties": { + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "host": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "os": { + "properties": { + "build": { + "ignore_above": 1024, + "type": "keyword" + }, + "kernel": { + "ignore_above": 1024, + "type": "keyword" + }, + "codename": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "family": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + }, + "platform": { + "ignore_above": 1024, + "type": "keyword" + }, + "full": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ip": { + "type": "ip" + }, + "containerized": { + "type": "boolean" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "mac": { + "ignore_above": 1024, + "type": "keyword" + }, + "architecture": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "message": { + "type": "text" + } + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component_template/logs-settings.json b/packages/base/0.3.0/elasticsearch/component_template/logs-settings.json new file mode 100644 index 0000000000..eaaa60a9a3 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component_template/logs-settings.json @@ -0,0 +1,21 @@ +{ + "template": { + "settings": { + "index": { + "lifecycle": { + "name": "logs-default" + }, + "codec": "best_compression", + "refresh_interval": "5s", + "number_of_shards": "1", + "query": { + "default_field": [ + "message" + ] + }, + "number_of_routing_shards": "30" + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component_template/metrics-mappings.json b/packages/base/0.3.0/elasticsearch/component_template/metrics-mappings.json new file mode 100644 index 0000000000..1910e21ac9 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component_template/metrics-mappings.json @@ -0,0 +1,160 @@ +{ + "template": { + "mappings": { + "_meta": { + }, + "dynamic_templates": [ + { + "strings_as_keyword": { + "mapping": { + "ignore_above": 1024, + "type": "keyword" + }, + "match_mapping_type": "string" + } + } + ], + "date_detection": false, + "properties": { + "@timestamp": { + "type": "date" + }, + "stream": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "metrics" + }, + "dataset": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "dataset": { + "properties": { + "type": { + "type": "constant_keyword", + "value": "events" + }, + "name": { + "type": "constant_keyword" + }, + "namespace": { + "type": "constant_keyword" + } + } + }, + "agent": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "ephemeral_id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ecs": { + "properties": { + "version": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "host": { + "properties": { + "hostname": { + "ignore_above": 1024, + "type": "keyword" + }, + "os": { + "properties": { + "build": { + "ignore_above": 1024, + "type": "keyword" + }, + "kernel": { + "ignore_above": 1024, + "type": "keyword" + }, + "codename": { + "ignore_above": 1024, + "type": "keyword" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "family": { + "ignore_above": 1024, + "type": "keyword" + }, + "version": { + "ignore_above": 1024, + "type": "keyword" + }, + "platform": { + "ignore_above": 1024, + "type": "keyword" + }, + "full": { + "ignore_above": 1024, + "type": "keyword" + } + } + }, + "ip": { + "type": "ip" + }, + "containerized": { + "type": "boolean" + }, + "name": { + "ignore_above": 1024, + "type": "keyword" + }, + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "mac": { + "ignore_above": 1024, + "type": "keyword" + }, + "architecture": { + "ignore_above": 1024, + "type": "keyword" + } + } + } + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/component_template/metrics-settings.json b/packages/base/0.3.0/elasticsearch/component_template/metrics-settings.json new file mode 100644 index 0000000000..539f79ed9d --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/component_template/metrics-settings.json @@ -0,0 +1,21 @@ +{ + "template": { + "settings": { + "index": { + "lifecycle": { + "name": "metrics-default" + }, + "codec": "best_compression", + "refresh_interval": "5s", + "number_of_shards": "1", + "query": { + "default_field": [ + "message" + ] + }, + "number_of_routing_shards": "30" + } + }, + "aliases": {} + } +} diff --git a/packages/base/0.3.0/elasticsearch/ilm-policy/events-default.json b/packages/base/0.3.0/elasticsearch/ilm-policy/events-default.json new file mode 100644 index 0000000000..26115b3a31 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/ilm-policy/events-default.json @@ -0,0 +1,15 @@ +{ + "policy": { + "phases": { + "hot": { + "min_age": "0ms", + "actions": { + "rollover": { + "max_size": "50gb", + "max_age": "30d" + } + } + } + } + } +} diff --git a/packages/base/0.3.0/elasticsearch/ilm-policy/logs-default.json b/packages/base/0.3.0/elasticsearch/ilm-policy/logs-default.json new file mode 100644 index 0000000000..8d8db418e7 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/ilm-policy/logs-default.json @@ -0,0 +1,15 @@ +{ + "policy": { + "phases": { + "hot": { + "min_age": "0ms", + "actions": { + "rollover": { + "max_size": "50gb", + "max_age": "30d" + } + } + } + } + } +} diff --git a/packages/base/0.3.0/elasticsearch/ilm-policy/metrics-default.json b/packages/base/0.3.0/elasticsearch/ilm-policy/metrics-default.json new file mode 100644 index 0000000000..26115b3a31 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/ilm-policy/metrics-default.json @@ -0,0 +1,15 @@ +{ + "policy": { + "phases": { + "hot": { + "min_age": "0ms", + "actions": { + "rollover": { + "max_size": "50gb", + "max_age": "30d" + } + } + } + } + } +} diff --git a/packages/base/0.3.0/elasticsearch/ilm_policy/events-default.json b/packages/base/0.3.0/elasticsearch/ilm_policy/events-default.json new file mode 100644 index 0000000000..26115b3a31 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/ilm_policy/events-default.json @@ -0,0 +1,15 @@ +{ + "policy": { + "phases": { + "hot": { + "min_age": "0ms", + "actions": { + "rollover": { + "max_size": "50gb", + "max_age": "30d" + } + } + } + } + } +} diff --git a/packages/base/0.3.0/elasticsearch/ilm_policy/logs-default.json b/packages/base/0.3.0/elasticsearch/ilm_policy/logs-default.json new file mode 100644 index 0000000000..8d8db418e7 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/ilm_policy/logs-default.json @@ -0,0 +1,15 @@ +{ + "policy": { + "phases": { + "hot": { + "min_age": "0ms", + "actions": { + "rollover": { + "max_size": "50gb", + "max_age": "30d" + } + } + } + } + } +} diff --git a/packages/base/0.3.0/elasticsearch/ilm_policy/metrics-default.json b/packages/base/0.3.0/elasticsearch/ilm_policy/metrics-default.json new file mode 100644 index 0000000000..26115b3a31 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/ilm_policy/metrics-default.json @@ -0,0 +1,15 @@ +{ + "policy": { + "phases": { + "hot": { + "min_age": "0ms", + "actions": { + "rollover": { + "max_size": "50gb", + "max_age": "30d" + } + } + } + } + } +} diff --git a/packages/base/0.3.0/elasticsearch/index-template/events.json b/packages/base/0.3.0/elasticsearch/index-template/events.json new file mode 100644 index 0000000000..34f8478216 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/index-template/events.json @@ -0,0 +1,13 @@ +{ + "index_patterns": [ + "events-*-*" + ], + "priority": 0, + "data_stream": { + "timestamp_field": "@timestamp" + }, + "composed_of": [ + "events-mappings", + "events-settings" + ] +} diff --git a/packages/base/0.3.0/elasticsearch/index-template/logs.json b/packages/base/0.3.0/elasticsearch/index-template/logs.json new file mode 100644 index 0000000000..a43d680b9b --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/index-template/logs.json @@ -0,0 +1,13 @@ +{ + "index_patterns": [ + "logs-*-*" + ], + "priority": 0, + "data_stream": { + "timestamp_field": "@timestamp" + }, + "composed_of": [ + "logs-mappings", + "logs-settings" + ] +} diff --git a/packages/base/0.3.0/elasticsearch/index-template/metrics.json b/packages/base/0.3.0/elasticsearch/index-template/metrics.json new file mode 100644 index 0000000000..7f2860fa76 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/index-template/metrics.json @@ -0,0 +1,13 @@ +{ + "index_patterns": [ + "metrics-*-*" + ], + "priority": 0, + "data_stream": { + "timestamp_field": "@timestamp" + }, + "composed_of": [ + "metrics-mappings", + "metrics-settings" + ] +} diff --git a/packages/base/0.3.0/elasticsearch/index_template/events.json b/packages/base/0.3.0/elasticsearch/index_template/events.json new file mode 100644 index 0000000000..34f8478216 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/index_template/events.json @@ -0,0 +1,13 @@ +{ + "index_patterns": [ + "events-*-*" + ], + "priority": 0, + "data_stream": { + "timestamp_field": "@timestamp" + }, + "composed_of": [ + "events-mappings", + "events-settings" + ] +} diff --git a/packages/base/0.3.0/elasticsearch/index_template/logs.json b/packages/base/0.3.0/elasticsearch/index_template/logs.json new file mode 100644 index 0000000000..a43d680b9b --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/index_template/logs.json @@ -0,0 +1,13 @@ +{ + "index_patterns": [ + "logs-*-*" + ], + "priority": 0, + "data_stream": { + "timestamp_field": "@timestamp" + }, + "composed_of": [ + "logs-mappings", + "logs-settings" + ] +} diff --git a/packages/base/0.3.0/elasticsearch/index_template/metrics.json b/packages/base/0.3.0/elasticsearch/index_template/metrics.json new file mode 100644 index 0000000000..7f2860fa76 --- /dev/null +++ b/packages/base/0.3.0/elasticsearch/index_template/metrics.json @@ -0,0 +1,13 @@ +{ + "index_patterns": [ + "metrics-*-*" + ], + "priority": 0, + "data_stream": { + "timestamp_field": "@timestamp" + }, + "composed_of": [ + "metrics-mappings", + "metrics-settings" + ] +} diff --git a/packages/base/0.3.0/manifest.yml b/packages/base/0.3.0/manifest.yml new file mode 100644 index 0000000000..851de58313 --- /dev/null +++ b/packages/base/0.3.0/manifest.yml @@ -0,0 +1,30 @@ +format_version: 1.0.0 + +name: base +title: Base package +description: > + The base package contains assets which are needed for the basic setup of the stack. + + It contains the default ILM policies. +version: 0.3.0 +categories: [] +release: ga + +# The base package cannot be removed +removable: false + +# The user should not see this package and not be able to install it +internal: true + +license: basic +# This is called type integration because it is required for all the integration packages +type: integration + +requirement: + elasticsearch: + # Requires ILM which was released in 6.6. + versions: ">6.6.0" + +# No icons +icons: +