Hello list,

For some time now I've had syslog-ng writing /var/log/messages in a binary 
format:

# file /var/log/messages
/var/log/messages: data
# grep syslog-ng /var/log/messages                                       
Binary file /var/log/messages matches                                           

Yet:

# head /var/log/messages
Dec 21 03:10:02 wstn run-crons[29014]: (root) CMD (/etc/cron.daily/man-db)
[...]

Can I use the following method to restore the original text format of 
/var/log/messages? 

1.      Boot rescue system and mount main system
2.      # cd /mnt/main/var/log
3.      # mv messages messages.bin
4.      # strings messages.bin > messages
5.      # rm messages.bin
6.      Reboot.

I tried steps 1 - 4 and got a text file with very long lines, but I 
chickened out before rebooting.

It would be nice to find a config setting that's changed, but the change log 
is silent and the admin guide gives me a headache :-(

-- 
Rgds
Peter.

Reply via email to