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

Nomad will only log to /var/log/messages (RHEL7) #39

Closed
zswanson opened this issue Jul 22, 2018 · 1 comment
Closed

Nomad will only log to /var/log/messages (RHEL7) #39

zswanson opened this issue Jul 22, 2018 · 1 comment

Comments

@zswanson
Copy link

I'm trying to get the role to configure nomad to log in /var/log/nomad rather than /var/log/messages, just for convenience of monitoring the cluster logs. I've set group_vars for my nomad group to:

nomad_syslog_enable: false

and otherwise am using the default location for logging. Regardless of the syslog setting though, all log messages from nomad are written to /var/log/messages rather than the default location specified in the role as:

nomad_log_dir: /var/log/nomad
@brianshumate
Copy link
Contributor

Hi!

Unfortunatley, the nomad_log_dir configuration was invalid.

Nomad logs only to stdout/stderr in a 12 factor app style, which is captured by the systemd journal by default on most Linux distributions including RHEL7.

Nomad doesn't actually have configuration to specify logging to a static file location so I've removed the non-functional configuration and related documentation and apologies for the confusion there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants