Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update elastic/security artifacts #675

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
df6f556
Update track artifacts (ilm, pipelines, templates) to 8.15.1
achuguy Sep 18, 2024
161d3a0
Fixing track.json component document spec
achuguy Sep 18, 2024
8a1f6fe
Remove unused files
achuguy Sep 18, 2024
1ddd3aa
Increment track.json version
achuguy Sep 18, 2024
b57e838
Merge branch 'master' into update_security_artifacts
achuguy Sep 19, 2024
4d32f5d
Revert track.json version
achuguy Sep 19, 2024
5ee82a3
Removed track attempting to load x-pack managed component templates
achuguy Sep 19, 2024
5a743ba
remove logsdb index mode from regular track templates
achuguy Sep 20, 2024
12962cc
remove logsdb index mode from regular track templates for beats
achuguy Sep 20, 2024
22efd97
Revert using logsdb mode with beats
achuguy Sep 20, 2024
14b5e9d
Restore skip_delete_component_template flag
achuguy Sep 23, 2024
8adfb6f
Only skip fleet templates that are used by other composable templates
achuguy Sep 25, 2024
8d22323
Remove `logs-endpoint.events.*@custom` from composable templates
achuguy Sep 25, 2024
52d6fc9
Install the component templates for endpoint when index_mode=logsdb
achuguy Sep 30, 2024
0f8b5ab
Restore `security` ilm for beats
achuguy Oct 2, 2024
141069a
Restore switch between `ilm` and `dlm` in logs-endpoint.* composable …
achuguy Oct 2, 2024
0c9f13b
Remove `track-shared-logsdb-mode` component template from beats templ…
achuguy Oct 2, 2024
a0ac013
Restore logic to avoid installing additional templates in `logsdb` mode
achuguy Oct 2, 2024
924100b
Don't set `number_of_shards` and `number_of_replicas` in serverless
achuguy Oct 2, 2024
537b212
Remove logs.json and [email protected]. These are managed by…
achuguy Oct 2, 2024
a92162e
Pin elasticsearch-py versions
gbanasiak Oct 2, 2024
609369e
Merge branch 'master' into update_security_artifacts
gbanasiak Oct 2, 2024
52d5139
Restore `track-shared-logsdb-mode` to the beats templates
achuguy Oct 2, 2024
089ff4b
Merge branch 'update_security_artifacts' of github.com:achuguy/rally-…
achuguy Oct 2, 2024
9e1089b
Remove composable-logsdb and introduce logs_endpoint_from_kibana
gbanasiak Oct 3, 2024
2bafd52
Configure number of shards/replicas conditionally in serverless
gbanasiak Oct 3, 2024
1478336
Add additional track parameters to README.md
achuguy Oct 3, 2024
d7c1fb8
Remove duplicate parameter in README.md
achuguy Oct 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions elastic/security/ilm/logs-endpoint.collection-diagnostic.json

This file was deleted.

11 changes: 6 additions & 5 deletions elastic/security/ilm/logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
"min_age": "0ms",
"actions": {
"rollover": {
"max_primary_shard_size": "50gb",
"max_age": "30d"
"max_age": "30d",
"max_primary_shard_size": "50gb"
}
}
}
},
"_meta": {
"description": "default policy for the logs index template installed by x-pack",
"managed": true
}
"managed": true,
"description": "default policy for the logs index template installed by x-pack"
},
"deprecated": true
achuguy marked this conversation as resolved.
Show resolved Hide resolved
}
}
15 changes: 0 additions & 15 deletions elastic/security/ilm/security.json

This file was deleted.

24 changes: 13 additions & 11 deletions elastic/security/pipelines/.fleet_final_pipeline-1.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
{
"version": 2,
"version": 4,
"_meta": {
"managed_by": "fleet",
"managed": true
},
"description": "Final pipeline for processing all incoming Fleet Agent documents.\n",
"processors": [
{
"set": {
"description": "Add time when event was ingested.",
"field": "event.ingested",
"copy_from": "_ingest.timestamp"
}
},
{
"script": {
"description": "Remove sub-seconds from event.ingested to improve storage efficiency.",
"description": "Add time when event was ingested (and remove sub-seconds to improve storage efficiency)",
"tag": "truncate-subseconds-event-ingested",
"source": "ctx.event.ingested = ctx.event.ingested.withNano(0).format(DateTimeFormatter.ISO_OFFSET_DATE_TIME);",
"ignore_failure": true
"ignore_failure": true,
"source": "if (ctx?.event == null) {\n ctx.event = [:];\n}\n\nctx.event.ingested = metadata().now.withNano(0).format(DateTimeFormatter.ISO_OFFSET_DATE_TIME);"
}
},
{
Expand All @@ -31,6 +24,15 @@
"ignore_missing": true
}
},
{
"remove": {
"description": "Remove event.original unless the preserve_original_event tag is set",
"field": "event.original",
"if": "ctx?.tags == null || !(ctx.tags.contains('preserve_original_event'))",
"ignore_failure": true,
"ignore_missing": true
}
},
{
"set_security_user": {
"field": "_security",
Expand Down

This file was deleted.

19 changes: 0 additions & 19 deletions elastic/security/pipelines/logs-endpoint.actions-8.2.0.json

This file was deleted.

19 changes: 0 additions & 19 deletions elastic/security/pipelines/logs-endpoint.alerts-8.2.0.json

This file was deleted.

This file was deleted.

47 changes: 47 additions & 0 deletions elastic/security/pipelines/logs-endpoint.events.file-8.15.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"description": "Pipeline for setting event.ingested",
"processors": [
{
"set": {
"field": "event.ingested",
"value": "{{ _ingest.timestamp }}",
"ignore_failure": true
}
},
{
"pipeline": {
"name": "global@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Global pipeline for all data streams"
}
},
{
"pipeline": {
"name": "logs@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for all data streams of type `logs`"
}
},
{
"pipeline": {
"name": "logs-endpoint.integration@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for all data streams of type `logs` defined by the `endpoint` integration"
}
},
{
"pipeline": {
"name": "logs-endpoint.events.file@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for the `endpoint.events.file` dataset"
}
}
],
"_meta": {
"managed_by": "fleet",
"managed": true,
"package": {
"name": "endpoint"
}
}
}
19 changes: 0 additions & 19 deletions elastic/security/pipelines/logs-endpoint.events.file-8.2.0.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"description": "Pipeline for setting event.ingested",
"processors": [
{
"set": {
"field": "event.ingested",
"value": "{{ _ingest.timestamp }}",
"ignore_failure": true
}
},
{
"pipeline": {
"name": "global@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Global pipeline for all data streams"
}
},
{
"pipeline": {
"name": "logs@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for all data streams of type `logs`"
}
},
{
"pipeline": {
"name": "logs-endpoint.integration@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for all data streams of type `logs` defined by the `endpoint` integration"
}
},
{
"pipeline": {
"name": "logs-endpoint.events.library@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for the `endpoint.events.library` dataset"
}
}
],
"_meta": {
"managed_by": "fleet",
"managed": true,
"package": {
"name": "endpoint"
}
}
}
19 changes: 0 additions & 19 deletions elastic/security/pipelines/logs-endpoint.events.library-8.2.0.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,34 @@
"ignore_missing": true,
"field": "dns.question.Ext_temp"
}
},
{
"pipeline": {
"name": "global@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Global pipeline for all data streams"
}
},
{
"pipeline": {
"name": "logs@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for all data streams of type `logs`"
}
},
{
"pipeline": {
"name": "logs-endpoint.integration@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for all data streams of type `logs` defined by the `endpoint` integration"
}
},
{
"pipeline": {
"name": "logs-endpoint.events.network@custom",
"ignore_missing_pipeline": true,
"description": "[Fleet] Pipeline for the `endpoint.events.network` dataset"
}
}
],
"_meta": {
Expand Down
Loading
Loading