set puppet agent log file

54 views
Skip to first unread message

Laci D

unread,
Jun 14, 2023, 3:28:28 PM6/14/23
to Puppet Users
I'm looking fir a way to configure puppet-agent to log in it's own file rather than /var/log/syslog.

I found that if I edit puppet.conf and specify for ex:
logdest = /var/log/puppetlabs/agent.log
That does it, however I'm using theforeman-puppet module for other Puppet related configuration which overwrites it. Though I haven't found within the modules directory where or how.

On Debian and Ubuntu I can edit /etc/default/puppet and specify the file there, as described here: https://support.puppet.com/hc/en-us/articles/219814687-Change-the-Puppet-run-log-location-using-logdest-in-Puppet-Enterprise

However that doesn't work for FreeBSD.

Has anyone configured this before?
Reply all
Reply to author
Forward
0 new messages