NetBox housekeeping cron job logs in email #9162
-
I'm trying to prevent the output of the housekeeping cron job to be sent via email. Is there a setting that would allow NetBox to handle this? If not, I think one of the ways to prevent email is to redirect the output to a log file, but would like to get some advice on the best/standard approach to handle this. Output of cron job: [] Clearing expired authentication sessions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Cron configuration is not really within the scope of Netbox itself, it's a system service that many things use (see man 5 crontab for the full documentation), but one technique I use when I don't want to get the default reporting emails with the script output is to pipe to /usr/bin/logger to convert the output to syslog messages eg.
that keeps my inbox smaller and if I do need to look a the output of a historical run of the script, I can get it from the logs with the normal retention rules that apply there. |
Beta Was this translation helpful? Give feedback.
Cron configuration is not really within the scope of Netbox itself, it's a system service that many things use (see man 5 crontab for the full documentation), but one technique I use when I don't want to get the default reporting emails with the script output is to pipe to /usr/bin/logger to convert the output to syslog messages eg.
that keeps my inbox smaller and if I do need to look a the output of a historical run of the script, I can get it from the logs with the normal retention rules …