Skip to content

Instantly share code, notes, and snippets.

@h0tw1r3
Created February 1, 2024 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h0tw1r3/b892587d9a3642ba719c96346df398fb to your computer and use it in GitHub Desktop.
Save h0tw1r3/b892587d9a3642ba719c96346df398fb to your computer and use it in GitHub Desktop.
send puppetserver logs to syslog
augeas { 'puppetserver-logback-journal':
incl => '/etc/puppetlabs/puppetserver/logback.xml',
lens => 'Xml.lns',
changes => [
"defnode aref configuration/root/appender-ref[#attribute/ref='STDOUT'] ''",
"set \$aref/#attribute/ref 'STDOUT'",
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment