Skip to content

Commit 04a8ce1

Browse files
author
Christopher M. Neill
committed
Merge branch 'SAN-3546-loggly-tags' of github.com:CodeNow/devops-scripts into SAN-3546-loggly-tags
2 parents efd8fea + 958241c commit 04a8ce1

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

ansible/roles/loggly-rotate/templates/21-output-syslog.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ if $msg contains '{{ name }}' and $syslogfacility-text == 'local7' then :omfile:
99

1010
# {{ name }} access file:
1111
#Add a tag for {{ name }} events
12-
$template LogglyFormatFile{{ name }},"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [{{ loggly_token }}@41058 tag=\"runnable\" tag=\"{{ env }}\" ] %msg%\n"
12+
$template LogglyFormatFile{{ name }},"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [{{ loggly_token }}@41058 tag=\"runnable\" tag=\"{{ node_env }}\" ] %msg%\n"
1313
if $msg contains '{{ name }}' then @@logs-01.loggly.com:6514;LogglyFormatFile{{ name }}
1414
if $msg contains '{{ name }}' then ~

ansible/roles/loggly-rotate/templates/22-loggly.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# -------------------------------------------------------
44

55
# Define the template used for sending logs to Loggly. Do not change this format.
6-
$template LogglyFormat,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [{{ loggly_token }}@41058 tag=\"{{ env }}\"] %msg%\n"
6+
$template LogglyFormat,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [{{ loggly_token }}@41058 tag=\"{{ node_env }}\"] %msg%\n"
77

88
$WorkDirectory /var/spool/rsyslog # where to place spool files
99
$ActionQueueFileName fwdRule1 # unique name prefix for spool files

ansible/roles/loggly/templates/21-filemonitoring-app.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ $InputFileSeverity info
1111
$InputFilePersistStateInterval 20000
1212
$InputRunFileMonitor
1313
#Add a tag for {{ name }} events
14-
$template LogglyFormatFile{{ name }},"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [{{ loggly_token }}@41058 tag=\"runnable\" tag=\"{{ env }}\" ] %msg%\n"
14+
$template LogglyFormatFile{{ name }},"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [{{ loggly_token }}@41058 tag=\"runnable\" tag=\"{{ node_env }}\" ] %msg%\n"
1515
if $programname == '{{ name }}' then @@logs-01.loggly.com:6514;LogglyFormatFile{{ name }}
1616
if $programname == '{{ name }}' then ~

ansible/roles/loggly/templates/22-loggly.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# -------------------------------------------------------
44

55
# Define the template used for sending logs to Loggly. Do not change this format.
6-
$template LogglyFormat,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [{{ loggly_token }}@41058 tag=\"{{ env }}\" ] %msg%\n"
6+
$template LogglyFormat,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [{{ loggly_token }}@41058 tag=\"{{ node_env }}\" ] %msg%\n"
77

88
$WorkDirectory /var/spool/rsyslog # where to place spool files
99
$ActionQueueFileName fwdRule1 # unique name prefix for spool files

0 commit comments

Comments
 (0)