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

Backport/8.15/pr 675 #695

Merged
merged 27 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d03b9b1
Update track artifacts (ilm, pipelines, templates) to 8.15.1
achuguy Sep 18, 2024
b4ef189
Fixing track.json component document spec
achuguy Sep 18, 2024
9dfaac2
Remove unused files
achuguy Sep 18, 2024
501b69c
Increment track.json version
achuguy Sep 18, 2024
8eb84cc
Revert track.json version
achuguy Sep 19, 2024
1100dc8
Removed track attempting to load x-pack managed component templates
achuguy Sep 19, 2024
ba5ac19
remove logsdb index mode from regular track templates
achuguy Sep 20, 2024
0d3999a
remove logsdb index mode from regular track templates for beats
achuguy Sep 20, 2024
c2109a1
Revert using logsdb mode with beats
achuguy Sep 20, 2024
ca2b267
Restore skip_delete_component_template flag
achuguy Sep 23, 2024
6fca494
Only skip fleet templates that are used by other composable templates
achuguy Sep 25, 2024
0bf62c9
Remove `logs-endpoint.events.*@custom` from composable templates
achuguy Sep 25, 2024
b414039
Install the component templates for endpoint when index_mode=logsdb
achuguy Sep 30, 2024
3a20384
Restore `security` ilm for beats
achuguy Oct 2, 2024
45e6c8d
Restore switch between `ilm` and `dlm` in logs-endpoint.* composable …
achuguy Oct 2, 2024
4cada6c
Remove `track-shared-logsdb-mode` component template from beats templ…
achuguy Oct 2, 2024
63d2a9b
Restore logic to avoid installing additional templates in `logsdb` mode
achuguy Oct 2, 2024
e147844
Don't set `number_of_shards` and `number_of_replicas` in serverless
achuguy Oct 2, 2024
def6cd4
Remove logs.json and [email protected]. These are managed by…
achuguy Oct 2, 2024
95fb96a
Pin elasticsearch-py versions
gbanasiak Oct 2, 2024
cc79261
Restore `track-shared-logsdb-mode` to the beats templates
achuguy Oct 2, 2024
a627289
Remove composable-logsdb and introduce logs_endpoint_from_kibana
gbanasiak Oct 3, 2024
5a378c1
Configure number of shards/replicas conditionally in serverless
gbanasiak Oct 3, 2024
98888fc
Add additional track parameters to README.md
achuguy Oct 3, 2024
5379faf
Remove duplicate parameter in README.md
achuguy Oct 3, 2024
6f336b1
Remove `failure_store` option from templates. Only available in SNAP…
achuguy Oct 21, 2024
78740f8
Merge branch '8.15' into backport/8.15/pr-675
elasticmachine Oct 29, 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
4 changes: 3 additions & 1 deletion elastic/security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ The following parameters are available:
* `number_of_replicas` (default: 1) - The number of replicas to set per Data Stream. The same value is used for all Data Streams.
* `bulk_indexing_clients` (default: 8) - The number of clients issuing indexing requests.
* `bulk_size` (default: 50) - The number of documents to send per indexing request.
* `force_merge_max_num_segments` (default: unset): An integer specifying the max amount of segments the force-merge operation should use. Only supported in `security-indexing-querying` track.
* `force_merge_max_num_segments` (default: unset): An integer specifying the max amount of segments the force-merge operation should use. Only supported in `security-indexing-querying` track.
* `logs_endpoint_from_kibana` (default: false): Skip creation of endpoint templates. Used when templates are expected from kibana.
* `include_non_serverless_index_settings` (default: true for non-serverless clusters, false for serverless clusters): Whether to include non-serverless index settings.

### Querying parameters

Expand Down
31 changes: 0 additions & 31 deletions elastic/security/ilm/logs-endpoint.collection-diagnostic.json

This file was deleted.

19 changes: 0 additions & 19 deletions elastic/security/ilm/logs.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