From 9e2edf927ac082d31d7ddf87edeb3bf2bdb13937 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Mon, 10 Jul 2023 12:33:09 -0700 Subject: [PATCH] chore(docs): Remove mentions of deprecated transforms from guides Closes: #17929 Signed-off-by: Jesse Szwedko --- .../en/guides/level-up/managing-complex-configs.md | 6 ++++-- website/content/en/guides/level-up/managing-schemas.md | 9 ++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/website/content/en/guides/level-up/managing-complex-configs.md b/website/content/en/guides/level-up/managing-complex-configs.md index 3aa3e6d71277a..74c40a6ce301a 100644 --- a/website/content/en/guides/level-up/managing-complex-configs.md +++ b/website/content/en/guides/level-up/managing-complex-configs.md @@ -85,9 +85,11 @@ the grok parser: address = "0.0.0.0:9000" [transforms.foo] - type = "grok_parser" inputs = ["over_tcp"] - pattern = "%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:level} %{GREEDYDATA:message}" + type = "remap" + source = ''' + . = parse_grok!(.message, s'%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:level} %{GREEDYDATA:message}') +''' ``` A common way to test this transform might be to temporarily change the source diff --git a/website/content/en/guides/level-up/managing-schemas.md b/website/content/en/guides/level-up/managing-schemas.md index 35e95e1f36e81..d5fd7fc33f87c 100644 --- a/website/content/en/guides/level-up/managing-schemas.md +++ b/website/content/en/guides/level-up/managing-schemas.md @@ -135,9 +135,10 @@ type = "stdin" [transforms.parse] inputs = ["application"] -drop_field = true -drop_invalid = false -type = "json_parser" +type = "remap" +source = ''' +. = parse_json!(.message) +''' [transforms.not_gdpr] type = "filter" @@ -328,8 +329,6 @@ Where are you deploying Vector? Let us know, maybe we can help optimize it! [docs.sinks.console]: /docs/reference/configuration/sinks/console/ [docs.sources]: /docs/reference/configuration/sources/ -[docs.transforms.grok_parser]: /docs/reference/vrl/functions/#parse_grok -[docs.transforms.json_parser]: /docs/reference/vrl/functions/#parse_json [docs.transforms.remap]: /docs/reference/configuration/transforms/remap/ [docs.enrichment_functions]: /docs/reference/vrl/functions/#enrichment-functions