Ottomata has uploaded a new change for review.
https://gerrit.wikimedia.org/r/259271
Change subject: Increase size of programname field in remote syslog template
......................................................................
Increase size of programname field in remote syslog template
Bug: T120874
Change-Id: I90dfa48c26ec522d746a473773e97817185e05fd
---
M modules/base/manifests/remote_syslog.pp
A modules/base/templates/remote_syslog.conf.erb
2 files changed, 10 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/71/259271/1
diff --git a/modules/base/manifests/remote_syslog.pp
b/modules/base/manifests/remote_syslog.pp
index 587f8d4..7d37cc1 100644
--- a/modules/base/manifests/remote_syslog.pp
+++ b/modules/base/manifests/remote_syslog.pp
@@ -22,7 +22,7 @@
}
rsyslog::conf { 'remote_syslog':
- content => "*.info;mail.none;authpriv.none;cron.none
@${central_host}",
+ content => template('base/remote_syslog.conf.erb')
priority => 30,
}
}
diff --git a/modules/base/templates/remote_syslog.conf.erb
b/modules/base/templates/remote_syslog.conf.erb
new file mode 100644
index 0000000..598ca1d
--- /dev/null
+++ b/modules/base/templates/remote_syslog.conf.erb
@@ -0,0 +1,9 @@
+# NOTE: This file is managed by Puppet.
+
+# By default, rsyslog will truncate programname[pid] to 32 characters. This
+# is a problem if logging to logstash, because programname will not be
+# parseable. This format template removes the 32 character limit.
+# See also:
http://www.rsyslog.com/sende-messages-with-tags-larger-than-32-characters/
+
+$template LongTagForwardFormat,"<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME%
%syslogtag%%msg:::sp-if-no-1st-sp%%msg%"
+*.info;mail.none;authpriv.none;cron.none <%= @central_host
%>;LongTagForwardFormat
--
To view, visit https://gerrit.wikimedia.org/r/259271
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I90dfa48c26ec522d746a473773e97817185e05fd
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits