HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux main-website-vm 5.15.0-1089-azure #98~20.04.1-Ubuntu SMP Fri May 2 20:18:39 UTC 2025 x86_64
User: www-data (33)
PHP: 7.3.33-24+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //etc/logrotate.d/waagent.logrotate
/var/log/waagent.log {
    # Old versions of log files are compressed with gzip by default.
    compress

    # Rotate log files > 20 MB, and keep last 50 archived files. With an compression ratio ranging from 5-10%, The
    # archived files would take an average of around 50-100 MB. Even for extremely chatty agent, the average size of
    # the compressed files would not go beyond ~2 MB per day.
    size 20M
    rotate 50

    # Add date as extension when rotating logs
    dateext

    # Formatting the date extension to YYYY-MM-DD-SSSSSSS format. logrotate does not provide hours, mins and seconds
    # option. Adding the %s (system clock epoch time) to differentiate rotated log files within the same day.
    dateformat -%Y-%m-%d-%s

    # Do not rotate the log if it is empty
    notifempty

    # If the log file is missing, go on to the next one without issuing an error message.
    missingok
}