Skip to content

Commit

Permalink
Merge pull request #295 from splunk/update/context_templates
Browse files Browse the repository at this point in the history
update context_templates directory
  • Loading branch information
Ryan Faircloth authored and GitHub committed Jan 31, 2020
2 parents a1198b8 + 849a3b9 commit 9b48d9d
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion package/etc/conf.d/destinations/splunk_hec.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ destination d_hec {
reliable(no)
{{- end}}
disk-buf-size({{conv.ToInt64 (math.Round ( math.Div (getenv "SC4S_DEST_SPLUNK_HEC_DISKBUFF_DISKBUFSIZE" "53687091200") (getenv "SC4S_DEST_SPLUNK_HEC_WORKERS" "10")))}})
dir("/opt/syslog-ng/var/data/disk-buffer/")
)
{{- end}}
tls(peer-verify({{- getenv "SC4S_DEST_SPLUNK_HEC_TLS_VERIFY" "yes"}})
Expand Down
5 changes: 3 additions & 2 deletions package/sbin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ gomplate $(find . -name *.tmpl | sed -E 's/^(\/.*\/)*(.*)\..*$/--file=\2.tmpl --

mkdir -p /opt/syslog-ng/etc/conf.d/local/context/
mkdir -p /opt/syslog-ng/etc/conf.d/local/config/
cp --verbose -n /opt/syslog-ng/etc/context_templates/* /opt/syslog-ng/etc/conf.d/local/context/
cp /opt/syslog-ng/etc/context_templates/* /opt/syslog-ng/etc/conf.d/local/context/
for file in /opt/syslog-ng/etc/conf.d/local/context/*.example ; do cp --verbose -n $file ${file%.example}; done
cp --verbose -R /opt/syslog-ng/etc/local_config/* /opt/syslog-ng/etc/conf.d/local/config/

echo syslog-ng checking config
/opt/syslog-ng/sbin/syslog-ng -s >/var/log/syslog-ng.out 2>/var/log/syslog-ng.err

echo syslog-ng starting
exec /opt/syslog-ng/sbin/syslog-ng $@
exec /opt/syslog-ng/sbin/syslog-ng $@

0 comments on commit 9b48d9d

Please sign in to comment.