title: Puppet agent logging on Ubuntu?
body: <p>I'm looking for the logs on a puppet agent on Ubuntu. According to the <a href="https://docs.puppet.com/puppet/5.0/services_agent_unix.html#logging-for-puppet-agent-on-nix-systems" rel="nofollow noreferrer">Puppet documentation</a> it should be in <code>/var/log/messages</code>. </p>
  
  <blockquote>
    <p>Logging for Puppet agent on *nix systems When running as a service,
    Puppet agent logs messages to syslog. Your syslog configuration
    dictates where these messages are saved, but the default location is
    /var/log/messages on Linux, /var/log/system.log on Mac OS X, and
    /var/adm/messages on Solaris.</p>
  </blockquote>
  
  <p>I've set <code>log_level</code> to <code>debug</code>. I don't seem to have a <code>/var/log/messages</code> file. I do have folders <code>/var/log/puppetlabs/puppet</code> and <code>/var/log/puppetlabs/pxp-agent</code> but both of these folders are empty.</p>
  
  <p><s><em>Edit: <a href="https://docs.puppet.com/puppet/5.0/configuration.html#loglevel" rel="nofollow noreferrer">Reading</a> that the default logdir is <code>/var/log/puppetlabs/puppet</code>. But I never have log files when I look.</em></s> Striking out because I think this applies to puppet server not the agent.</p>