Skip to content

Commit

Permalink
[DOCS] Add deprecation docs for ECS user agent (#77970) (#78118)
Browse files Browse the repository at this point in the history
We deprecated the `user_agent` ingest processor's `ecs` option in 7.2 with
PR #38828. However, we didn't add a related deprecation item to the 7.2 breaking
changes docs. This adds the missing item.

It also updates a related deprecation admonition.
  • Loading branch information
jrodewig authored Sep 21, 2021
1 parent 72bc576 commit 8a9f87b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference/ingest/processors/user-agent.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The ingest-user-agent module ships by default with the regexes.yaml made availab
| `regex_file` | no | - | The name of the file in the `config/ingest-user-agent` directory containing the regular expressions for parsing the user agent string. Both the directory and the file have to be created before starting Elasticsearch. If not specified, ingest-user-agent will use the regexes.yaml from uap-core it ships with (see below).
| `properties` | no | [`name`, `major`, `minor`, `patch`, `build`, `os`, `os_name`, `os_major`, `os_minor`, `device`] | Controls what properties are added to `target_field`.
| `ignore_missing` | no | `false` | If `true` and `field` does not exist, the processor quietly exits without modifying the document
| `ecs` | no | `true` | Whether to return the output in Elastic Common Schema format. NOTE: This setting is deprecated and will be removed in a future version.
| `ecs` | no | `true` | deprecated:[7.2] Whether to return the output in Elastic Common Schema format.
|======

Here is an example that adds the user agent details to the `user_agent` field based on the `agent` field:
Expand Down
15 changes: 14 additions & 1 deletion docs/reference/migration/migrate_7_2.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ unexpectedly ignored the rest. For instance if you set `discovery.seed_hosts:
discovery. Seed host addresses containing port ranges are now rejected.

[discrete]
[[breaking_72_ingest_changes]]
=== Ingest pipeline changes

[discrete]
[[deprecate-ecs-parameter]]
==== The `user_agent` ingest processor's `ecs` parameter is deprecated.

The `ecs` parameter for the `user_agent` ingest processor is deprecated and will
be removed in 8.0. In 8.x, the `user_agent` ingest processor will only return
{ecs-ref}[Elastic Common Schema (ECS)] fields.

To avoid deprecation warnings, remove the parameter from your ingest pipelines.

[[breaking_72_ilm_deprecations]]
=== {ilm-cap} ({ilm-init}) deprecations

Expand All @@ -43,4 +56,4 @@ deprecated. If the `indices.lifecycle.poll_interval` cluster setting is too low,
it can cause excessive load on a cluster.

To avoid deprecation warnings, use a setting value of `1s` or greater.
// end::notable-breaking-changes[]
// end::notable-breaking-changes[]

0 comments on commit 8a9f87b

Please sign in to comment.