Ask yourself if you are happy and then you cease to be.
Bij de gentoo-distro staan ze gewoon in /var/log/messages met een datum-tijd ervoor
Dat bedacht ik idd ook; alleen het probleem is dat dmesg het buffer weergeeft wat nog niet altijd naar file is geschreven. Hierdoor komen de meeste dmesg berichten nog niet voor in je syslog. Ik kan in /etc/syslog.conf trouwens ook helemaal niets vinden over de configuratie van die dmesg applicatie (is dat geen onderdeel van syslog?)BoAC schreef op 26 juli 2004 @ 15:18:
Worden die boot/kernel messages/errors ook niet in de log gezet.
Bij de gentoo-distro staan ze gewoon in /var/log/messages met een datum-tijd ervoor
---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate
De TS kan natuurlijk ook zijn eigen logger schrijven
Het is tijd om mijn hoofd onder de koude kraan te houden
*tail -f /var/log/syslog*
Ask yourself if you are happy and then you cease to be.
Hey die kon ik nog nietLethalis schreef op 26 juli 2004 @ 15:38:
Okay okay, 't is maandag
Het is tijd om mijn hoofd onder de koude kraan te houden
*tail -f /var/log/syslog*
Verwijderd
Lethalis schreef op 26 juli 2004 @ 15:38:
Okay okay, 't is maandag
Het is tijd om mijn hoofd onder de koude kraan te houden
*tail -f /var/log/syslog*
1
2
| tail: /var/log/syslog: No such file or directory tail: no files remaining |
man 8 klogd:
-o Execute in ’one-shot’ mode. This causes klogd to read and log
all the messages that are found in the kernel message buffers.
After a single read and log cycle the daemon exits.
Lethalis schreef op 26 juli 2004 @ 15:38:
Okay okay, 't is maandag
Het is tijd om mijn hoofd onder de koude kraan te houden
*tail -f /var/log/syslog*
bash: *tail: command not found
---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate
Kernel messages worden door klogd afgehandeld, niet door syslogd. Het is familie van elkaar, maar staat betreft werking wel los van elkaar. De ringbuffer blijft bewaard totdat hij uitgelezen wordt, en dat kun je ook maar een keer. De meeste distro's draaien gedurende het bootproces een dmesg -s getal > bestandje, zodat de inhoud ervan wordt veilig gesteld.Spider.007 schreef op 26 juli 2004 @ 15:21:
Dat bedacht ik idd ook; alleen het probleem is dat dmesg het buffer weergeeft wat nog niet altijd naar file is geschreven. Hierdoor komen de meeste dmesg berichten nog niet voor in je syslog. Ik kan in /etc/syslog.conf trouwens ook helemaal niets vinden over de configuratie van die dmesg applicatie (is dat geen onderdeel van syslog?)
'man syslog' zegt mij dat je als user de syslog alleen maar kan lezen en root hem wel kan legenigmar schreef op 26 juli 2004 @ 16:23:
[...]
Kernel messages worden door klogd afgehandeld, niet door syslogd. Het is familie van elkaar, maar staat betreft werking wel los van elkaar. De ringbuffer blijft bewaard totdat hij uitgelezen wordt, en dat kun je ook maar een keer. De meeste distro's draaien gedurende het bootproces een dmesg -s getal > bestandje, zodat de inhoud ervan wordt veilig gesteld.
Zeg ik wat anders danBoAC schreef op 26 juli 2004 @ 16:49:
'man syslog' zegt mij dat je als user de syslog alleen maar kan lezen en root hem wel kan legen
[ Voor 4% gewijzigd door igmar op 26-07-2004 21:04 ]
igmar schreef op 26 juli 2004 @ 16:23:
...
De ringbuffer blijft bewaard totdat hij uitgelezen wordt, en dat kun je ook maar een keer.
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| # man syslog
...
Only function 3 is allowed to non-root processes. (Function 9 was
added in 2.4.10.)
The kernel log buffer
The kernel has a cyclic buffer of length LOG_BUF_LEN (4096, since
1.3.54: 8192, since 2.1.113: 16384; in recent kernels the size can be
set at compile time) in which messages given as argument to the kernel
function printk() are stored (regardless of their loglevel).
The call syslog (2,buf,len) waits until this kernel log buffer is
nonempty, and then reads at most len bytes into the buffer buf. It
returns the number of bytes read. Bytes read from the log disappear
from the log buffer: the information can only be read once. This is
the function executed by the kernel when a user program reads
/proc/kmsg.
The call syslog (3,buf,len) will read the last len bytes from the log
buffer (nondestructively), but will not read more than was written into
the buffer since the last `clear ring buffer' command (which does not
clear the buffer at all). It returns the number of bytes read.
The call syslog (4,buf,len) does precisely the same, but also executes
the `clear ring buffer' command.
The call syslog (5,dummy,idummy) only executes the `clear ring buffer'
command.
... |
[ Voor 77% gewijzigd door BoAC op 27-07-2004 08:23 ]