productscience / ansible-papertrailapp

A role for adding papertrail logging to a Centos or Ubuntu machines, using both rsyslog and papertrail's own remote_syslog daemon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Papertrail Role

This role sets up papertrail on the host the playbook runs, on, setting up logging via TLS to a host and port defined by papertrail_logging_host and papertrail_logging_port.

Right now, it works with remote_syslog over TLS, and rsyslog over UDP, but frustratingly, not rsyslog over TLS.

Usage

  1. Download this role, and place it in your roles directory.
  2. Update the papertrail_logging_host and papertrail_logging_port vars to the ones supplied on the Papertrail WebUI
  3. Add role to your playbook
vars:
  - papertrail_logging_host: logs2.papertrailapp.com
  - papertrail_logging_port: 12345

roles:
 - productscience.papertrailapp

About

A role for adding papertrail logging to a Centos or Ubuntu machines, using both rsyslog and papertrail's own remote_syslog daemon

License:Apache License 2.0


Languages

Language:Shell 100.0%