1
vote
2answers
914 views

Is there any standard log format that includes time taken to serve the request? Can i just add it without breaking standard logfile parsers?

I would like to log the %D and %O log format strings in apache 2. They are the time taken to serve a request in microseconds and the total bytes sent. This is useful to generate stats of the server ...
3
votes
1answer
659 views

Is it possible to specify custom error log format in nginx?

I can specify custom log format for access log in nginx, but it won't work for error log. I wish I always saw time when error occur. Is it possible?
2
votes
3answers
980 views

Getting correct linefeeds in emails generated from linux

I have a script that emails certain linux log entries to me, and I read the email in MS Outlook. The problem is that all the lines run together with no linefeeds between the lines. To address this I ...