Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
rsyslog
Commits
8a951bbf
Commit
8a951bbf
authored
Apr 30, 2013
by
John Dewey
Browse files
[COOK-2831] toggling of high precision timestamps
parent
99115ecf
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8a951bbf
...
...
@@ -64,6 +64,8 @@ See `attributes/default.rb` for default values.
*
`node['rsyslog']['preserve_fqdn']`
- Value of the
`$PreserveFQDN`
configuration directive in
`/etc/rsyslog.conf`
. Default is 'off' for
compatibility purposes.
*
`node['rsyslog']['high_precision_timestamps']`
- Enable high precision
timestamps, instead of the "old style" format. Default is 'false'.
Recipes
=======
...
...
attributes/default.rb
View file @
8a951bbf
...
...
@@ -17,16 +17,17 @@
# limitations under the License.
#
default
[
"rsyslog"
][
"log_dir"
]
=
"/srv/rsyslog"
default
[
"rsyslog"
][
"server"
]
=
false
default
[
"rsyslog"
][
"protocol"
]
=
"tcp"
default
[
"rsyslog"
][
"port"
]
=
514
default
[
"rsyslog"
][
"server_ip"
]
=
nil
default
[
"rsyslog"
][
"server_search"
]
=
"role:loghost"
default
[
"rsyslog"
][
"remote_logs"
]
=
true
default
[
"rsyslog"
][
"per_host_dir"
]
=
"%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%"
default
[
"rsyslog"
][
"max_message_size"
]
=
"2k"
default
[
"rsyslog"
][
"preserve_fqdn"
]
=
"off"
default
[
"rsyslog"
][
"log_dir"
]
=
"/srv/rsyslog"
default
[
"rsyslog"
][
"server"
]
=
false
default
[
"rsyslog"
][
"protocol"
]
=
"tcp"
default
[
"rsyslog"
][
"port"
]
=
514
default
[
"rsyslog"
][
"server_ip"
]
=
nil
default
[
"rsyslog"
][
"server_search"
]
=
"role:loghost"
default
[
"rsyslog"
][
"remote_logs"
]
=
true
default
[
"rsyslog"
][
"per_host_dir"
]
=
"%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%"
default
[
"rsyslog"
][
"max_message_size"
]
=
"2k"
default
[
"rsyslog"
][
"preserve_fqdn"
]
=
"off"
default
[
"rsyslog"
][
"high_precision_timestamps"
]
=
false
# The most likely platform-specific attributes
default
[
"rsyslog"
][
"service_name"
]
=
"rsyslog"
...
...
templates/default/rsyslog.conf.erb
View file @
8a951bbf
...
...
@@ -37,11 +37,13 @@ $UDPServerRun <%= node['rsyslog']['port'] %>
#### GLOBAL DIRECTIVES ####
###########################
<%
unless
node
[
"rsyslog"
][
"high_precision_timestamps"
]
-%>
#
# Use default timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
<%
end
-%>
# Filter duplicated messages
$RepeatedMsgReduction on
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment