Quote:
But the system crashed before the filesystem cache was written to the physical drive.
|
That makes some sense. I have seen these characters in syslog, but today I found the characters in maillog. The time stamps in the maillog indicate no system crash. Perhaps I had restarted sendmail at that point but one would think stopping the service would be graceful.
Quote:
the logfile contains 0-bytes (rendered as ^@)
|
Quote:
so ^@ is 0x00 - these are zero (0x00)
|
That info led me to change my search criteria. These weird log entries are null characters?
Quote:
which usually indicates some sort of file corruption
|
Yeah, I can understand this happening once in a blue moon with syslog, but maillog? Kind of weird.
So how to find the exact line in the affected log with these corrupt strings? Looks like the following might succeed:
grep -Pna '\x00'