Skip to content
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
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