summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/syslog/user/node.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/system/syslog/user/node.def b/templates/system/syslog/user/node.def
index 36799b4c..805abd6a 100644
--- a/templates/system/syslog/user/node.def
+++ b/templates/system/syslog/user/node.def
@@ -1,6 +1,8 @@
tag:
type: txt
help: Set logging to specific user's terminal
+syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*$"
+ ; "invalid user name $VAR(@)"
commit:expression: $VAR(./@/facility/@@) != ""; "At least one facility must be configured to log messages to user $VAR(./@)"
comp_help: Possible completions:
<username> Send log messages to this user's terminal