On 2016-03-03 19:42, Anton Aylward wrote:
On 03/03/2016 12:17 PM, Carlos E. R. wrote:
Wait. My point was about the size of the logs,
...
where you said:
But I'd prefer not to have journal running. Or at least impede some entries from going into it, like email or nntp.
Telcontar:~ # time journalctl --no-pager | grep "fetchnews\|postfix\|fetchmail" | wc -l 202170
real 0m7.878s user 0m6.173s sys 0m1.351s
The important data on that command output is the number of lines, not the time it took to run. You are picking on the time, but that one is not important there.
I said that instead of the "grep" in that pipeline you should use the proper journalctl filters.
Yes, those times are outrageous, I agree, but its because you are getting journalctl to format and output *ALL* of its entries. There is no need for that.
Again, no, I'm not worried about time in that command. It took just 8 seconds, it is stored in RAM.
An analogy would be to have a database ...
Again, I know very well the advantages of having a log in a database. It was my job. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)