It seems that logrotation is not working properly in jetson

Hello,

It seems that logrotation is not working properly in jetson.
I set syslog maxsize to 100K.
syslogs exceeding 100Kbytes continue to accumulate.
Request to confirm the function of logrotation.

sudo vi /etc/logrotate.d/rsyslog
/var/log/syslog
{
rotate 2
maxsize 100K
daily
missingok
notifempty
delaycompress
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}

Thank you.

I can’t directly answer your question, but a place to start might be this article:
https://www.networkworld.com/article/3218728/how-log-rotation-works-with-logrotate.html

For actual options see “man logrotate” (you might need to do this on the host PC if logs were trimmed on your Jetson).

This article does talk about maxsize:
https://medium.com/@mandeep309/logrotate-rotating-log-files-based-on-maxsize-bef33587665d

Sorry, I don’t know enough about the problem other than to provide content to read through to check.

1 Like

Thank linuxdev’s quick suggestion.

Hi Hodu,
This is by default in Ubuntu/Linux system and we don’t do any modification. Don’t have much experience about this and would need other users to share experience. Please try linuxdev’s suggestion. Thanks.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.