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

apm-data: set codec: best_compression for logs-apm.* data streams #108862

Merged
merged 6 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions docs/changelog/108862.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 108862
summary: "Apm-data: set codec: best_compression for logs-apm.* data streams"
area: Data streams
type: enhancement
issues: []
12 changes: 12 additions & 0 deletions x-pack/plugin/apm-data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ See [x-pack/plugin/core/src/main/resources](../core/src/main/resources).

This plugin is intended to work with data produced by https://github.com/elastic/apm-data.


## Adding/Removing/Updating a resource

All resources are defined as YAML under [src/main/resources](src/main/resources).

For a resource to be known to the plugin it must be added to
[src/main/resources/resources.yaml](src/main/resources/resources.yaml) in the
appropriate section.

Any update to resources included by this package also requires a bump to the
`version` property included in the resources file.

## Testing

## Unit testing
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
version: ${xpack.apmdata.template.version}
_meta:
description: Default settings for logs-apm.* data streams
managed: true
template:
settings:
codec: best_compression
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ composed_of:
- apm@mappings
- apm@settings
- apm-10d@lifecycle
- logs-apm@settings
- logs@custom
- logs-apm.app@custom
- ecs@mappings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ composed_of:
- apm@mappings
- apm@settings
- apm-10d@lifecycle
- logs-apm@settings
- logs-apm.error@mappings
- logs@custom
- logs-apm.error@custom
Expand Down
3 changes: 2 additions & 1 deletion x-pack/plugin/apm-data/src/main/resources/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# "version" holds the version of the templates and ingest pipelines installed
# by xpack-plugin apm-data. This must be increased whenever an existing template or
# pipeline is changed, in order for it to be updated on Elasticsearch upgrade.
version: 5
version: 6

component-templates:
# Data lifecycle.
Expand All @@ -14,6 +14,7 @@ component-templates:
# - metrics-apm* data streams additionally compose metrics-apm@*
- apm@mappings
- apm@settings
- logs-apm@settings
- metrics-apm@mappings
- metrics-apm@settings
# Data stream-specific mappings.
Expand Down