Skip to content

Commit 082ef27

Browse files
FlorianNachtigallMax Becker
and
Max Becker
committed
Introduce property to log filename with blackbox
This release now includes the property `syslog.blackbox.log_filename`. It is passed to blackbox. If set to true, blackbox tags its log lines with the filename. Therefore, the syslog `app-name` field will also hold the log filename. Also blackbox is bumped to support the log_filename property. [#159100361](https://www.pivotaltracker.com/story/show/159100361) Co-authored-by: Max Becker <[email protected]>
1 parent cba9fe7 commit 082ef27

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

jobs/syslog_forwarder/spec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ properties:
133133
log lines will be tagged with subdirectory name.
134134
default: /var/vcap/sys/log
135135

136+
syslog.blackbox.log_filename:
137+
description: If set to true, log lines are also tagged with filename in the format <subdirectory>/<file.log>.
138+
default: false
139+
136140
syslog.blackbox.limit_cpu:
137141
description: limit goprocess to a single cpu via gomaxprocs
138142
default: true

jobs/syslog_forwarder/templates/blackbox_config.yml.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ syslog:
1010
address: 127.0.0.1:514
1111

1212
source_dir: <%= p("syslog.blackbox.source_dir") %>
13+
log_filename: <%= p("syslog.blackbox.log_filename") %>

0 commit comments

Comments
 (0)