1

we are using chrony in order to sync our servers to ntp servers ( redhat 7.2 )

we configured the logdir /var/log/chrony in chrony.conf

and restart the chrony ( systemctl restart chronyd ) ,

but still folder - /var/log/chrony is empty without logs

what could be the reason ?

shalom
  • 461
  • 13
  • 29

1 Answers1

2

As well as having a logdir defined, you must also enable logging with the log directive. Here's an extract from the default RHEL 7.2 /etc/chrony.conf:

...
# Specify directory for log files.
logdir /var/log/chrony

# Select which information is logged.
#log measurements statistics tracking

You must uncomment the last line (or include another relevant log ... directive) to obtain logging.

Paul Gear
  • 4,367
  • 19
  • 38