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

Next

Add specific file logging

  • Loading branch information
maxgutman committed Feb 3, 2014
commit 65d7113e8fdfd830c270840325436b5e9332d847
@@ -76,6 +76,13 @@
refreshonly => true,
}

define logfile($logname,$filepath,$severity='info') {
file { "/etc/rsyslog.d/$logname.conf":
content => template("log.conf.erb"),
notify => Exec["restart_rsyslogd"],
}
}

}

# vi:syntax=puppet:filetype=puppet:ts=4:et:
@@ -0,0 +1,12 @@
# Loggly
$ModLoad imfile
$InputFilePollInterval 10

#<%= logname %>
$InputFileName <%= filepath %>
$InputFileTag <%= logname %>:
$InputFileStateFile stat-<%= logname %>-log
$InputFileSeverity <%= severity %>
$InputRunFileMonitor


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