Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom tag field to rsyslog and syslog_ng, update changelog #19

Open
wants to merge 1 commit into
base: master
from
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -1,3 +1,6 @@
YYYY-MM-DD Release 0.1.0
- something you did
- something else you did
#YYYY-MM-DD Release 0.1.0
#- something you did
#- something else you did

2016-04-06 Release 1.0.5 Michal Taratuta
- add custom tag field for rsyslog and syslog-ng templates
@@ -24,6 +24,9 @@
# [*enable_tls*]
# Enables or disables TLS encryption for shipped events.
#
#[*custom_tag*]
# Custom tag so you can filter Loggly for it i.e. test, sandbox etc...
#
# === Examples
#
# class { 'loggly::rsyslog':
@@ -38,6 +41,7 @@
$customer_token,
$cert_path = $loggly::_cert_path,
$enable_tls = $loggly::enable_tls,
$custom_tag = undef,
) inherits loggly {

validate_string($customer_token)
@@ -30,6 +30,9 @@
# Enabled on all distros except CentOS and Red Hat Enterprise Linux as the
# packages for those distros are not compiled with TLS support by default.
#
# [*custom_tag*]
# Custom tag so you can filter Loggly for it i.e. test, sandbox etc...
#
# === Examples
#
# class { 'loggly::syslog_ng':
@@ -44,6 +47,7 @@
$customer_token,
$enable_tls = $loggly::enable_tls,
$cert_path = $loggly::_cert_path,
$custom_tag = undef,
) inherits loggly {

validate_string($customer_token)
@@ -4,7 +4,7 @@
### TLS RsyslogTemplate for Loggly
##########################################################

$template LogglyFormat,"<%%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [<%= @customer_token -%>@41058 tag=\"Rsyslog TLS\"] %msg%"
$template LogglyFormat,"<%%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [<%= @customer_token -%>@41058 <% if @custom_tag -%>tag=\"<%= @custom_tag %>\" <% end -%>] %msg%"

#RsyslogGnuTLS

@@ -22,7 +22,7 @@ $ActionSendStreamDriverPermittedPeer *.loggly.com
### TLS RsyslogTemplate for Loggly
##########################################################

$template LogglyFormat,"<%%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [<%= @customer_token -%>@41058] %msg%\n"
$template LogglyFormat,"<%%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [<%= @customer_token -%>@41058 <% if @custom_tag -%>tag=\"<%= @custom_tag %>\" <% end -%>] %msg%\n"

*.* @@logs-01.loggly.com:514; LogglyFormat
<% end -%>
@@ -4,7 +4,7 @@


template LogglyFormat {
template("<${PRI}>1 ${ISODATE} ${HOST} ${PROGRAM} ${PID} ${MSGID} [<%= @customer_token -%>@41058] $MSG\n");
template("<${PRI}>1 ${ISODATE} ${HOST} ${PROGRAM} ${PID} ${MSGID} [<%= @customer_token -%>@41058 <% if @custom_tag -%>tag=\"<%= @custom_tag %>\" <% end -%>] $MSG\n");
};

destination d_loggly {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.