summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan Örnstedt <jan.ornstedt@postkodlotteriet.se>2014-01-28 09:43:18 +0100
committerJan Örnstedt <jan.ornstedt@postkodlotteriet.se>2014-01-28 09:43:18 +0100
commit3612edf7ff16d7b18e46602578479a48dbeb277d (patch)
tree172f8c418aba6aaa5b13706e61086fb1e3d74728 /templates
parent27d55cacad0548561b307e16080fa064612f51fe (diff)
Need to specificly define high precision time format incase of using both client and server config on same rsyslog instance.
Diffstat (limited to 'templates')
-rw-r--r--templates/server/_default-header.conf.erb7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/server/_default-header.conf.erb b/templates/server/_default-header.conf.erb
index 95391ce..4bffa85 100644
--- a/templates/server/_default-header.conf.erb
+++ b/templates/server/_default-header.conf.erb
@@ -8,12 +8,15 @@ $ModLoad imudp
$ModLoad imtcp
<% end -%>
-<% if scope.lookupvar('rsyslog::server::high_precision_timestamps') == false -%>
#
+<% if scope.lookupvar('rsyslog::server::high_precision_timestamps') == false -%>
# Use traditional timestamp format.
-# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
+<% else -%>
+# Use high precision timestamp format.
+#
+$ActionFileDefaultTemplate RSYSLOG_FileFormat
<% end -%>
<% if scope.lookupvar('rsyslog::server::ssl') -%>