Allow colon in syslog loghost

Makes it work with IPv6 addresses.
This commit is contained in:
Ville Skyttä 2021-08-11 21:36:43 +03:00
parent f508ddf66d
commit 2d92a4dbb3
3 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ contexts:
- match: ^
push: text
loghost:
- match: '[\w.-]+'
- match: '[\w:.-]+'
scope: entity.other.attribute-name.loghost.syslog
set: process
process:

View File

@ -11,3 +11,4 @@
Apr 4 22:00:45 hostname-here dbus-daemon[1094]: [session uid=1000 pid=1094] Successfully activated service 'io.github.celluloid_player.Celluloid'
Aug 11 13:29:06 hostname-here insomnia_insomnia.desktop[142666]: 13:29:06.316 [updater] Updater not running platform=linux dev=false
Aug 11 13:36:34 192.168.220.5 nginx: 2021/08/11 13:36:34 [debug] 2031#2031: epoll add event: fd:6 op:1 ev:00002001
Aug 11 21:31:08 ::1 nginx: 2021/08/11 21:31:08 [debug] 760831#760831: epoll add event: fd:6 op:1 ev:10000001

View File

@ -11,3 +11,4 @@ Apr 4 16:32:07 hostname-here NetworkManager[740]: <info> [1617629527.1101] man
Apr 4 22:00:45 hostname-here dbus-daemon[1094]: [session uid=1000 pid=1094] Successfully activated service 'io.github.celluloid_player.Celluloid'
Aug 11 13:29:06 hostname-here insomnia_insomnia.desktop[142666]: 13:29:06.316 [updater] Updater not running platform=linux dev=false
Aug 11 13:36:34 192.168.220.5 nginx: 2021/08/11 13:36:34 [debug] 2031#2031: epoll add event: fd:6 op:1 ev:00002001
Aug 11 21:31:08 ::1 nginx: 2021/08/11 21:31:08 [debug] 760831#760831: epoll add event: fd:6 op:1 ev:10000001