Commit 050346cdbc91e6fd7eb74e5ab4e762ffb645f321

Authored by Paulo Tada
1 parent 27f4b962

Changing the log file <machine>/<log> to spb.log

Signed-off-by: Paulo Tada <paulohtfs@gmail.com>
Signed-off-by: Alessandro Caetano <alessandro.caetanob@gmail.com>
cookbooks/rsyslog/templates/host-monitor/spb_log.conf.erb
  1 +# Load module PostgreSQL
  2 +$ModLoad ompgsql
  3 +*.* :ompgsql:<%= node['peers']['database'] %>,monitor,rsyslog
  4 +
1 5 # Provides TCP syslog reception
2 6 $ModLoad imtcp
3 7 $InputTCPServerRun 514
4 8  
5 9 # Setting up dir to storage the logs from SPB env
6 10 # Dir to storage Social logs
7   -if $fromhost-ip=='<%= node['peers']['social']%>' then /var/log/spb/social/social.log
  11 +if $fromhost-ip=='<%= node['peers']['social']%>' then /var/log/spb.log
8 12 # Dir to storage Email logs
9   -if $fromhost-ip=='<%= node['peers']['email']%>' then /var/log/spb/email/email.log
  13 +if $fromhost-ip=='<%= node['peers']['email']%>' then /var/log/spb.log
10 14 # Dir to storage database logs
11   -if $fromhost-ip=='<%= node['peers']['database']%>' then /var/log/spb/database/database.log
  15 +if $fromhost-ip=='<%= node['peers']['database']%>' then /var/log/spb.log
12 16 # Dir to storage integration logs
13   -if $fromhost-ip=='<%= node['peers']['integration']%>' then /var/log/spb/integration/integration.log
  17 +if $fromhost-ip=='<%= node['peers']['integration']%>' then /var/log/spb.log
14 18 # Dir to storage reverseproxy logs
15   -if $fromhost-ip=='<%= node['peers']['reverseproxy']%>' then /var/log/spb/reverseproxy/reverseproxy.log
  19 +if $fromhost-ip=='<%= node['peers']['reverseproxy']%>' then /var/log/spb.log
... ...