Notes |
(0000977)
landley
01-22-06 16:36
|
What's wrong with logread | tail -n ? |
| |
(0000978)
akvadrako
01-22-06 17:13
|
Well, I clearly expalin that in my description. Tail has no way to display the last lines of a stream because it has no way to know when the stream will end. So instead it has to copy the entire input into memory buffer and then display the last few lines. This takes too much memory. |
| |
(0001675)
vda
09-30-06 14:21
|
Is our tail THAT stupid? tail has to remember only last N lines (when it reads next line, it can forget oldest line in buffer).
The other thing, I really dislike syslogd. Not the code, the concept. Keeping log in shmem... isn't it silly? shmem in Linux is just a hidden tmpfs after all, why not use the filesystem explicitly (with log rotation)? That way no one will need logread AT ALL. |
| |
(0005114)
vda
02-18-08 16:51
|
"logread | tail -n" should work. Our tail is not eating all input upfront, it will efficiently read it in small bits.
Alternatively, making syslog dump log into ordinary files (on tmpfs if you have no writable storage) with log rotation will allow you to use tail on these files. |
| |