Anyone have a better solution to looking through CF logs? The CF admin log filter is frustrating.
04/04/2022, 5:14 PM
either going to the log files and opening them directly, if you have access, or hitting the download button in the administrator, and then opening the downloaded file.
they're just text files, but I find them easier to read that way than in the log viewer.
04/04/2022, 5:15 PM
Yeah, I always just read them in sublime text or something
04/04/2022, 5:37 PM
04/04/2022, 5:52 PM
You also can read log files through CF Administrator web interface.
04/04/2022, 6:04 PM
@Mark S. I believe that the CF Administrator interface is what he found frustrating… and it most certainly is a cumbersome way to view the logs.
04/04/2022, 7:55 PM
@PK I have a client using the Elastic APM ELK stack for this and it's pretty amazing. There's some setup and maint required to get all the servers sending over their log files, but once it's setup you can do all sorts of searches and reports on them.
It make managing their Docker swarm 1000 times easier, especaily when they have a lot of short-lived tasks that spin up and down on schedules so the log files and console logs are gone within minutes.
If you just want something like error reporting, I'd recommend a service like Sentry which you hook up to LogBox or your app's error handler. You can host your own Sentry server in Docker pretty easy.