From 992449e370ac70ef8835c31c72ab43ad9c64ede7 Mon Sep 17 00:00:00 2001 From: Amin Jamali Date: Mon, 14 Nov 2016 10:53:50 -0500 Subject: [PATCH] Add syslog for rep_windows job A/C: As an operator I should be able to see logs from `rep_windows` in syslog destination `syslog_daemon_config` defined in my cf manifest. [#133698951] https://www.pivotaltracker.com/story/show/133698951 Signed-off-by: Natalie Arellano --- jobs/rep_windows/monit | 7 ++++++- jobs/rep_windows/spec | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/jobs/rep_windows/monit b/jobs/rep_windows/monit index 1ad92fb9f8..045b8aa18d 100644 --- a/jobs/rep_windows/monit +++ b/jobs/rep_windows/monit @@ -3,7 +3,12 @@ { "name": "rep_windows", "executable": "powershell", - "args": ["C:\\var\\vcap\\jobs\\rep_windows\\bin\\start.ps1"] + "args": ["C:\\var\\vcap\\jobs\\rep_windows\\bin\\start.ps1"], + "env": { + "__PIPE_SYSLOG_HOST": "<%= p('syslog_daemon_config.address') %>", + "__PIPE_SYSLOG_PORT": "<%= p('syslog_daemon_config.port') %>", + "__PIPE_SYSLOG_TRANSPORT": "<%= p('syslog_daemon_config.transport') %>" + } } ] } diff --git a/jobs/rep_windows/spec b/jobs/rep_windows/spec index 237309e4b0..a8945ddf42 100644 --- a/jobs/rep_windows/spec +++ b/jobs/rep_windows/spec @@ -185,3 +185,13 @@ properties: diego.rep.optional_placement_tags: description: "Array of optional tags used for scheduling Tasks and LRPs" default: [] + + syslog_daemon_config.address: + description: "Syslog host" + default: "" + syslog_daemon_config.port: + description: "Syslog port" + default: "" + syslog_daemon_config.transport: + description: "Syslog transport protocol (tcp or udp)" + default: "udp"