Have you tried something like this?
ls -lsR /var/log | sort -n | tail
Whether this works or not will depend on the structure of your log directories and the names of the files. This command will only tell you the file names of the ten largest files, not the directory paths.
Another option is something like this which finds all files over 1GB in size and prints the full paths to them:
find /var/log -size +1G -exec ls -lh {} +
Simply adjust the size to be slightly smaller than your largest log files.
Just in case you don't know where these error_log
files are (judging by your other question, this might be the case), you can use locate error_log
or find / -name error_log
to find them. You can even add the -name error_log
parameter to the above find
command.
du -kax /var/log | sort -n | tail -1000
can helps to check both directories and big files (sometimes there are directories full of small files).