How do I set the time of day for logwatch?

Robert Moskowitz rgm at htt-consult.com
Fri Jun 20 20:17:53 UTC 2025


I found it.  The system-wide /etc/crontab:

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR 
sun,mon,tue,wed,thu,t
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed
17 *    * * *    root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *    root    test -x /usr/sbin/anacron || { cd / && 
run-parts --repo}
47 6    * * 7    root    test -x /usr/sbin/anacron || { cd / && 
run-parts --repo}
52 6    1 * *    root    test -x /usr/sbin/anacron || { cd / && 
run-parts --repo}

so on this system it is set for 6am period.  I can change that for 4am 
period...

On 6/20/25 4:14 PM, Robert Moskowitz via ubuntu-users wrote:
>
>
> On 6/20/25 3:59 PM, Jeffrey Walton wrote:
>> On Fri, Jun 20, 2025 at 3:11 PM Robert Moskowitz via ubuntu-users
>> <ubuntu-users at lists.ubuntu.com> wrote:
>>> Each of my new servers are running logwatch at a different time, and I
>>> can't find where this is controlled.  it is not crontab.
>>>
>>> I would like them all to run within a tight time window.
>> I can't give you a definitive answer because I do not have logwatch
>> installed on my workstation, but..
>
> well, I am talking servers here...
>
>> Perhaps a Systemd timer? According to
>> <https://sourceforge.net/p/logwatch/feature-requests/14/>, it looks
>> like the two install options are Cron or Systemd. That's assuming a
>> distro did not make non-trivial changes, like adding additional ways
>> to trigger the program.
>
> I don't know enough to find any systemd timers.  I can't find any 
> obvious cron stuff.  the
>
> /etc/cron.daily/00logwatch
>
> So it may be tied into the daily cron timer, but where is that?
>
>
>




More information about the ubuntu-users mailing list