0

I have a log, which looks perfectly fine. However, after the log rotation by daemontools, it is no longer human readable.

What could be the problem?

Mingyu
  • 115
  • 7

1 Answers1

1

My spidey-sense tingles and tells me you are trying to comb through a rotated log file with more or cat. Better to use zless, zcat, zgrep or similar. Or, if the daemontools does compress the files with bzip, then bzless, bzcat, bzgrep ...

If in doubt, you can do file /path/to/rotated/log and check out the output.

Janne Pikkarainen
  • 31,454
  • 4
  • 56
  • 78