diff options
-rw-r--r-- | templates/system/syslog/console/node.def | 2 | ||||
-rw-r--r-- | templates/system/syslog/file/node.def | 5 | ||||
-rw-r--r-- | templates/system/syslog/global/node.def | 2 | ||||
-rw-r--r-- | templates/system/syslog/host/node.def | 5 |
4 files changed, 10 insertions, 4 deletions
diff --git a/templates/system/syslog/console/node.def b/templates/system/syslog/console/node.def index a4aa259f..4004a9c5 100644 --- a/templates/system/syslog/console/node.def +++ b/templates/system/syslog/console/node.def @@ -1,2 +1,2 @@ -help: Console logging +help: Logging to system console commit:expression: $VAR(./facility/@@) != ""; "At least one facility must be configured to log messages to $VAR(.)" diff --git a/templates/system/syslog/file/node.def b/templates/system/syslog/file/node.def index 098bad2f..ba2fa44f 100644 --- a/templates/system/syslog/file/node.def +++ b/templates/system/syslog/file/node.def @@ -1,7 +1,10 @@ tag: type: txt help: Logging to a file + syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9_.]+$" ; "invalid file name $VAR(@)" + commit:expression: $VAR(./@/facility/@@) != ""; \ "At least one facility must be configured to log messages to file $VAR(./@)" -val_help: Full path name of log file with leading slash + +val_help: Log file name in /var/log/user diff --git a/templates/system/syslog/global/node.def b/templates/system/syslog/global/node.def index 5d917e1d..3c26df27 100644 --- a/templates/system/syslog/global/node.def +++ b/templates/system/syslog/global/node.def @@ -1,2 +1,2 @@ -help: System logging +help: Logging to system standard location commit:expression: $VAR(./facility/) != "" || $VAR(./archive/) != ""; "Must specify either facility or archive for syslog file" diff --git a/templates/system/syslog/host/node.def b/templates/system/syslog/host/node.def index 24033520..27b05109 100644 --- a/templates/system/syslog/host/node.def +++ b/templates/system/syslog/host/node.def @@ -1,4 +1,7 @@ tag: type: txt -help: IP address or hostname of remote syslog server +help: Logging to a remote host + commit:expression: $VAR(./@/facility/@@) != ""; "At least one facility must be configured to log messages to host $VAR(./@)" + +val_help: Remote host name or IP address |