On 03/03/2016 03:13 PM, Ruediger Meier wrote:
On Thursday 03 March 2016, Anton Aylward wrote:
On 03/03/2016 03:55 AM, Carlos E. R. wrote:
Telcontar:~ # time journalctl --no-pager | grep "fetchnews\|postfix\|fetchmail" | wc -l 202170
real 0m7.878s user 0m6.173s sys 0m1.351s Telcontar:~ #
That in six days.
No fair!
try this
time journalctl --no-pager _COMM=fetchnews \ _COMM=postfix \ _COMM=fetchmail | wc -l
Hehe this comparision is even better. :)
$ time grep "sshd" /var/log/messages | wc -l 34755
real 0m0.066s user 0m0.052s sys 0m0.016s
$ time journalctl --no-pager _COMM=sshd | wc -l 34945
real 0m2.097s user 0m1.916s sys 0m0.168s
Note that this journal is stored in RAM. What is RAM speed today? 10-20GB/s? Journald is able to show 7MB/s. Congratulations.
And how many total records in /var/log/messages and how many total records in journald? And how does that compare with journalctl _SYSTEMD_UNIT=sshd.service -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org