profile
viewpoint
IssuesEvent

issue closedtimberio/vector

Regex Parser Documentation examples not working

The Documentation on the transformation Regex Parser is incorrect and both the configuration and example for the field patterns gives an error and crashes vector on startup

Vector Version

vector 0.10.0 (g0f0311a x86_64-unknown-linux-musl 2020-07-22)

Vector Configuration File

[transforms.regex]
    type = "regex_parser"
    inputs = ["input"]
    field = "msg"
    overwrite_target = true
    patterns = "['^(?P<timestamp>[\\w\\-:\\+]+) (?P<level>\\w+) (?P<message>.*)$']"

Debug Output

Oct 28 11:39:10.500  INFO vector: Log level "info" is enabled.
Oct 28 11:39:10.506  INFO vector::topology::config::watcher: Creating configuration file watcher.
Oct 28 11:39:10.513  INFO vector::topology::config::watcher: Watching configuration files.
Oct 28 11:39:10.514  INFO vector: Loading configs. path=["/etc/vector/vector.toml"]
Oct 28 11:39:10.517 ERROR vector: Configuration error: "/etc/vector/vector.toml": invalid type: string "[\'^(?P<timestamp>[\\w\\-:\\+]+) (?P<level>\\w+) (?P<message>.*)$\']", expected a sequence for key `transforms.version_regex`

closed time in 2 days

SyluxDX

issue openedtimberio/vector

Regex Parser Documentation examples not working

The Documentation on the transformation Regex Parser is incorrect and both the configuration and example for the field patterns gives an error and crashes vector on startup

Vector Version

vector 0.10.0 (g0f0311a x86_64-unknown-linux-musl 2020-07-22)

Vector Configuration File

[transforms.regex]
    type = "regex_parser"
    inputs = ["input"]
    field = "msg"
    overwrite_target = true
    patterns = "['^(?P<timestamp>[\\w\\-:\\+]+) (?P<level>\\w+) (?P<message>.*)$']"

Debug Output

Oct 28 11:39:10.500  INFO vector: Log level "info" is enabled.
Oct 28 11:39:10.506  INFO vector::topology::config::watcher: Creating configuration file watcher.
Oct 28 11:39:10.513  INFO vector::topology::config::watcher: Watching configuration files.
Oct 28 11:39:10.514  INFO vector: Loading configs. path=["/etc/vector/vector.toml"]
Oct 28 11:39:10.517 ERROR vector: Configuration error: "/etc/vector/vector.toml": invalid type: string "[\'^(?P<timestamp>[\\w\\-:\\+]+) (?P<level>\\w+) (?P<message>.*)$\']", expected a sequence for key `transforms.version_regex`

created time in 2 days

push eventSyluxDX/cheatsheets

SyluxDX

commit sha 9686b943ff5edbcd22c04f35a078f040ab002b18

zoom and sync colors now works

view details

push time in 2 months

push eventSyluxDX/cheatsheets

SyluxDX

commit sha 9a7ab4adb27978e2d0d16947655d1c60d151bc92

added changes when panel is zommed

view details

push time in 2 months

push eventSyluxDX/cheatsheets

SyluxDX

commit sha ec691108a6426107e6ab4e5b9307b0485199dc0e

Update .tmux.conf

view details

push time in 2 months

push eventSyluxDX/cheatsheets

SyluxDX

commit sha 2c370e67d4faa73a25f6b471547727a634b28804

Updated README with zsh, Added bash menu script

view details

push time in 3 months

more