1 |
Hello list, |
2 |
|
3 |
For some time now I've had syslog-ng writing /var/log/messages in a binary |
4 |
format: |
5 |
|
6 |
# file /var/log/messages |
7 |
/var/log/messages: data |
8 |
# grep syslog-ng /var/log/messages |
9 |
Binary file /var/log/messages matches |
10 |
|
11 |
Yet: |
12 |
|
13 |
# head /var/log/messages |
14 |
Dec 21 03:10:02 wstn run-crons[29014]: (root) CMD (/etc/cron.daily/man-db) |
15 |
[...] |
16 |
|
17 |
Can I use the following method to restore the original text format of |
18 |
/var/log/messages? |
19 |
|
20 |
1. Boot rescue system and mount main system |
21 |
2. # cd /mnt/main/var/log |
22 |
3. # mv messages messages.bin |
23 |
4. # strings messages.bin > messages |
24 |
5. # rm messages.bin |
25 |
6. Reboot. |
26 |
|
27 |
I tried steps 1 - 4 and got a text file with very long lines, but I |
28 |
chickened out before rebooting. |
29 |
|
30 |
It would be nice to find a config setting that's changed, but the change log |
31 |
is silent and the admin guide gives me a headache :-( |
32 |
|
33 |
-- |
34 |
Rgds |
35 |
Peter. |