New answers tagged log
2
votes
My auth.log file, size is quite huge. How can I reduce it? Will trucate command work?
Investigate logrotate (man logrotate;less /etc_logrotate.conf. logrotate knows how to coordinate with the logging process to avoid the "unlinked but active" problem.
2
votes
My auth.log file, size is quite huge. How can I reduce it? Will trucate command work?
Yes that will work.
Maybe compress it if you want to keep it? It will end up about 10% of the original file.
sudo -i
cd /var/log/
gzip auth.log.gz auth.log
and then do
> /var/log/auth.log
(or ...
-1
votes
var/log/syslog growing indefinitely in size
Installing shurfshark snap made my syslog max out my hard drive in a day. Uninstalled and it appears to be stable in size now.
Top 50 recent answers are included
Related Tags
log × 749command-line × 57
server × 57
syslog × 51
logging × 41
boot × 37
14.04 × 31
bash × 31
12.04 × 28
ssh × 27
kernel × 26
20.04 × 23
scripts × 23
cron × 23
18.04 × 22
crash × 22
files × 21
16.04 × 20
apache2 × 20
disk-usage × 20
networking × 19
permissions × 19
rsyslog × 19
apt × 18
shutdown × 17