I've been looking into defining a user service for SysLog. Basically, implement a third party logging service (Papertrail). It's simple to set up.
cf cups papertrail -l syslog://papertail_url:port
It seemed to work ok but I hadn't really looked in detail to see if the log was 'draining' properly. And.. my company would not allow us to store logs with a third party. So... I wrote my own SysLog server and set up a user service pointing to my server.
The log started to flow but pretty quickly, my read on the socket would just block for ages.. then some more data would come in.. but it was missing a lot of data in between. Keep in mind that my Web app that was doing the logging is pretty simple too..and only produces a few message and a stacktrace on a deliberate error.
But the issue is that the log simply does not flow often enough and when it does...it misses a lot of data.
So, I set up PaperTrail again to see if this was my code... or not. But... the same. Even flowing to PaperTrail doesn't work 100%. You get some log messages.. a long wait.. then some more. And many more have been missed.
It seems that the Cloud Foundry Loggregator service isn't quite working correctly here. Has anyone experienced an issue like I have been? This is from BlueMix.
Note: I did read that you will miss messages when many log messages are being created in a short period.. but that is not the case here. I also checked my Bluemix logs to see if there are any messages about SysLog failures.. but I couldn't find any.
Thanks in advance...