Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom file logging #2

Merged
merged 3 commits into from Feb 25, 2014
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Add custom logging example into README

  • Loading branch information
maxgutman committed Feb 3, 2014
commit f015fdcc4a16f737d3386652fbee31e7acc19985
@@ -1,8 +1,8 @@
# Automate your Loggly config with Puppet

If you've ever had to manage servers, you're probably very familiar with an age-old problem: "How do I keep track of what's happening on all of my systems?"
If you've ever had to manage servers, you're probably very familiar with an age-old problem: "How do I keep track of what's happening on all of my systems?"

[Loggly](http://loggly.com/) is a tool that can help you solve that very problem by bringing your logs from all of your systems into a central, easy-to-use dashboard.
[Loggly](http://loggly.com/) is a tool that can help you solve that very problem by bringing your logs from all of your systems into a central, easy-to-use dashboard.

Unfortunately, if you've got more than a handful of servers, it quickly becomes tedious to manage their configuration by hand. Since we're still years away from being able to delegate the setup to robot minions, the Loggly team has created a [Puppet](http://puppetlabs.com/puppet/what-is-puppet) module to get Puppet users up and running right away.

@@ -180,9 +180,32 @@ node 'my_server_node.example.net' {
}
}
```
Unfortunately, the packages in the EPEL repository for syslog-ng are not compiled with TLS support by default, so TLS is
Unfortunately, the packages in the EPEL repository for syslog-ng are not compiled with TLS support by default, so TLS is
disabled by default on Red Hat-style distributions. Data sent from your systems to Loggly will not be encrypted by default.


#### If you want to log custom logfiles

```puppet
node 'my_server_node.example.net' {
class { 'loggly::rsyslog':
customer_token => 'de7b5ccd-04de-4dc4-fbc9-501393600000',
}
loggly::rsyslog::logfile { "custom-logfile":
logname => "custom-logfile",
filepath => "/var/log/custom-logfile.log"
}
loggly::rsyslog::logfile { "mysql":
logname => "mysql",
filepath => "/var/log/mysqld.log"
}
}
```


#### Additional information
More information on available configuration options can be found in the source code for the Loggly Puppet module.

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.