1 |
On Friday 26 December 2014 23:33:33 I wrote: |
2 |
> For some time now I've had syslog-ng writing /var/log/messages in a binary |
3 |
> format: |
4 |
> [...] |
5 |
> Can I use the following method to restore the original text format of |
6 |
> /var/log/messages? |
7 |
> |
8 |
> 1. Boot rescue system and mount main system |
9 |
> 2. # cd /mnt/main/var/log |
10 |
> 3. # mv messages messages.bin |
11 |
> 4. # strings messages.bin > messages |
12 |
> 5. # rm messages.bin |
13 |
> 6. Reboot. |
14 |
> |
15 |
> I tried steps 1 - 4 and got a text file with very long lines, but I |
16 |
> chickened out before rebooting. |
17 |
|
18 |
Never mind. I did as I suggested and rebooted, and so far everything seems |
19 |
hunky-dory. Sorry for making a noise. |
20 |
|
21 |
-- |
22 |
Rgds |
23 |
Peter. |