Jump to content

Fundraising/Syslog Settings

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

There are a number of log buckets that we regularly define in syslog, to help us monitor different things happening in DonationInterface, and increasingly, the payments listeners.

In order to help with debugging on local instances, it is incredibly helpful to set up similar log buckets.

Our current (July 2013) syslog conf is as follows:

if ($HOSTNAME startswith 'payments') and ($syslogseverity <= 3) then /var/log/remote/payments.error
&

if ($HOSTNAME startswith 'payments') and ($programname contains '_payment_in') then /var/log/remote/payments-initial
& ~

if ($HOSTNAME startswith 'payments') and ($programname contains '_fraud') then /var/log/remote/payments-fraud
& ~

if ($HOSTNAME startswith 'payments') and ($programname contains 'globalcollect_gateway_co') then /var/log/remote/payments-globalcollect_commstats
& ~

if ($HOSTNAME startswith 'payments') and ($programname contains 'globalcollect_gateway') then /var/log/remote/payments-globalcollect
& ~

if ($HOSTNAME startswith 'payments') and ($programname contains 'adyen_gateway') then /var/log/remote/payments-adyen
& ~

if ($HOSTNAME startswith 'payments') and ($syslogseverity == 7) then /var/log/remote/payments.debug
& ~

if ($HOSTNAME startswith 'payments') and ($programname contains 'payflowpro_gateway') then /var/log/remote/payments-payflow
& ~

if ($HOSTNAME startswith 'payments') and ($programname contains 'apache2') then /var/log/remote/payments-apache2_errors
& ~

if ($HOSTNAME startswith 'payments') and ($programname contains 'amazon_gateway') then /var/log/remote/payments-amazon_gateway
& ~

if ($HOSTNAME startswith 'payments') then /var/log/remote/payments-misc
& ~