Skip to content

Commit

Permalink
chore(docs): Remove mentions of deprecated transforms from guides (ve…
Browse files Browse the repository at this point in the history
…ctordotdev#17933)

Closes: vectordotdev#17929

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko authored Jul 10, 2023
1 parent 8b2447a commit 37fb02b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions website/content/en/guides/level-up/managing-schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 37fb02b

Please sign in to comment.