Hello, you should be able to answer to your very same question by analyzing the logrotate configuration of your specific Aruba NetEdit installation (which is Linux, Debian distribution based).
As example, you could check various files within the /etc/logrotate.d/ folder to have an idea of what logs are rotated and under which conditions that rotation currently happens:
root@netedit:~# ls -alh /etc/logrotate.d/
total 44K
drwxr-xr-x 2 root root 4.0K Feb 12 2024 .
drwxr-xr-x 90 root root 4.0K Oct 8 13:45 ..
-rw-r--r-- 1 root root 120 Apr 19 2019 alternatives
-rw-r--r-- 1 root root 173 Sep 13 2017 apt
-rw-r--r-- 1 root root 130 Aug 29 2018 btmp
-rw-r--r-- 1 root root 112 Apr 19 2019 dpkg
-rw-r--r-- 1 root root 591 Aug 19 14:44 netedit-services
-rw-r--r-- 1 root root 329 Jul 12 2017 nginx
-rw-r--r-- 1 root root 173 Aug 9 2023 postgresql-common
-rw-r--r-- 1 root root 374 May 20 2022 rsyslog
-rw-r--r-- 1 root root 145 Feb 19 2018 wtmp
As example, a cat of the file /etc/logrotate.d/netedit-services produces this output on my Aruba NetEdit 2.12.0 (YMMV):
root@netedit:~# cat /etc/logrotate.d/netedit-services
/opt/netedit/logs/postgresql.log {
rotate 10
size 100M
compress
missingok
notifempty
copytruncate
dateext
dateformat -%Y%m%d_%H%M%S
}
/opt/netedit/logs/access.log {
rotate 10
size 100M
compress
missingok
notifempty
copytruncate
dateext
dateformat -%Y%m%d_%H%M%S
}
/opt/netedit/logs/netedit.log {
rotate 10
size 100M
compress
missingok
notifempty
copytruncate
dateext
dateformat -%Y%m%d_%H%M%S
}
/opt/netedit/logs/event.log {
rotate 10
size 100M
compress
missingok
notifempty
copytruncate
dateext
dateformat -%Y%m%d_%H%M%S
}
Happened rotations are updated on the /var/lib/logrotate/status file:
root@netedit:~# cat /var/lib/logrotate/status
logrotate state -- version 2
"/var/log/syslog" 2024-10-13-0:0:0
"/var/log/nginx/error.log" 2024-8-19-15:17:1
"/var/log/dpkg.log" 2024-10-8-14:17:1
"/opt/netedit/logs/access.log" 2023-8-29-4:0:0
"/var/log/auth.log" 2024-10-13-0:0:0
"/var/log/apt/term.log" 2024-10-8-14:17:1
"/var/log/apt/history.log" 2024-10-8-14:17:1
"/opt/netedit/logs/netedit.log" 2023-8-29-4:0:0
"/var/log/alternatives.log" 2024-7-1-16:17:1
"/var/log/debug" 2024-10-8-14:17:1
"/var/log/mail.log" 2024-2-26-7:0:0
"/var/log/kern.log" 2024-10-13-0:0:0
"/opt/netedit/logs/postgresql.log" 2023-8-29-4:0:0
"/var/log/wtmp" 2022-2-24-12:0:0
"/var/log/daemon.log" 2024-10-13-0:0:0
"/var/log/mail.warn" 2024-2-26-7:0:0
"/var/log/btmp" 2024-10-1-0:0:0
"/var/log/postgresql/postgresql-12-main.log" 2024-2-12-1:17:1
"/var/log/mail.err" 2024-2-26-7:0:0
"/var/log/lpr.log" 2024-2-26-7:0:0
"/var/log/user.log" 2024-10-8-14:17:1
"/var/log/mail.info" 2024-2-26-7:0:0
"/var/log/nginx/access.log" 2022-2-24-12:0:0
"/var/log/cron.log" 2024-2-26-7:0:0
"/opt/netedit/logs/event.log" 2023-8-29-4:0:0
"/var/log/messages" 2024-10-13-0:0:0
"/var/log/postgresql/postgresql-14-main.log" 2024-10-8-14:17:1
As you can see rotations for logs related to Aruba NetEdit application (defined into the above /etc/logrotate.d/netedit-services) follow the above configurations and, since their current sizes are well below 100MB, their last rotation is of more than one year ago, at least that's true on my specific installation.
Generally, you should check the system wide /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly and /etc/cron.monthly to understand what is rotated, when is rotated and what rotation configuration(s) is/are then followed.
As example:
root@netedit:~# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# 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,fri,sat
# | | | | |
# * * * * * 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 --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
and only /etc/cron.hourly and /etc/cron.daily have the logrotate as reference:
root@netedit:~# ls -lah /etc/cron.hourly/
total 16K
drwxr-xr-x 2 root root 4.0K Feb 12 2024 .
drwxr-xr-x 90 root root 4.0K Oct 8 13:45 ..
-rwxr-xr-x 1 root root 95 Aug 22 2023 logrotate
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
root@netedit:~# ls -lah /etc/cron.daily/
total 44K
drwxr-xr-x 2 root root 4.0K Feb 12 2024 .
drwxr-xr-x 90 root root 4.0K Oct 8 13:45 ..
-rwxr-xr-x 1 root root 1.5K Apr 19 2021 apt-compat
-rwxr-xr-x 1 root root 355 Oct 25 2016 bsdmainutils.dpkg-remove
-rwxr-xr-x 1 root root 384 Dec 12 2012 cracklib-runtime
-rwxr-xr-x 1 root root 1.3K Sep 13 2023 dpkg
-rwxr-xr-x 1 root root 377 Aug 29 2018 logrotate
-rwxr-xr-x 1 root root 1.1K Feb 10 2019 man-db
-rwxr-xr-x 1 root root 1.4K Mar 21 2019 ntp
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
-rwxr-xr-x 1 root root 518 Feb 2 2021 sysstat
root@netedit:~# ls -lah /etc/cron.weekly/
total 16K
drwxr-xr-x 2 root root 4.0K Feb 12 2024 .
drwxr-xr-x 90 root root 4.0K Oct 8 13:45 ..
-rwxr-xr-x 1 root root 813 Feb 10 2019 man-db
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
root@netedit:~# ls -lah /etc/cron.monthly/
total 12K
drwxr-xr-x 2 root root 4.0K Feb 12 2024 .
drwxr-xr-x 90 root root 4.0K Oct 8 13:45 ..
-rw-r--r-- 1 root root 102 Oct 7 2017 .placeholder
so I expect that logs rotations for NetEdit related services will happen hourly and daily, if conditions for logs rotation are met:
root@netedit:~# ls -lath /opt/netedit/logs/
total 49M
-rw-r--r-- 1 netedit-service netedit-service 49M Oct 14 14:47 netedit.log
-rw-r--r-- 1 netedit-service netedit-service 362K Oct 14 14:37 access.log
-rw-r--r-- 1 netedit-service netedit-service 442K Oct 14 14:36 event.log
-rw-r--r-- 1 netedit-service netedit-service 23K Aug 19 14:44 upgrade.log
drwxr-xr-x 11 netedit-service netedit-service 4.0K Aug 19 14:44 ..
-rw-r--r-- 1 netedit-service netedit-service 7.1K Nov 27 2023 postgresql.log
drwxr-x--- 2 netedit-service netedit-service 4.0K Nov 27 2023 .
Cheers.
Original Message:
Sent: Oct 14, 2024 07:45 AM
From: mohamed
Subject: NETEdit Logs
Hellow all,
please i want to know how many dayes does aruba netedit keep logs?