This cookbook sets your rsyslog to forward logs to another rsyslog server that's listening on port 514. This is one of my first recipes so it's a bit rough.
Tested on: RHEL 6 / CentOS 6
e.g.
rsyslog- Default CentOS 6 logger
| Key | Type | Description | Default |
|---|---|---|---|
| ['rsyslog']['client']['config'] | string | This is where rsyslog.conf is located | /etc/rsyslog.conf |
| ['rsyslog']['client']['service'] | string | rsyslog is the service | rsyslog |
| ['rsyslog']['server']['ipaddress'] | string | This is the IP address for the listening server | 10.13.37.23 |
| ['rsyslog']['server']['subnet'] | string | Your local subnet | 10.13.37.0/24 |
| ['rsyslog']['server']['mysqlip'] | string | The IP address of your mysql server | 127.0.0.1 |
| ['rsyslog']['server']['mysqldb'] | string | The database name of your rsyslog server | Syslog |
| ['rsyslog']['server']['mysqluser'] | string | The username for your mysqluser | root |
| ['rsyslog']['server']['mysqlpass'] | string | The password for the mysqluser | secret |
Note: I don't know how to use encrytped databags yet so the password is currently plaintext. Keep that in mind
Just include rsyslog in your node's run_list:
TODO: (optional) If this is a public cookbook, detail the process for contributing. If this is a private cookbook, remove this section.
e.g.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Andrew Raymer