http://coldfusion.com logo
#cfml-general
Title
# cfml-general
p

PK

04/04/2022, 5:02 PM
Anyone have a better solution to looking through CF logs? The CF admin log filter is frustrating.
ā˜šŸ» 1
t

Tim

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.
s

Scott Bennett

04/04/2022, 5:15 PM
Yeah, I always just read them in sublime text or something
p

PK

04/04/2022, 5:37 PM
Thanks!
m

Mark S.

04/04/2022, 5:52 PM
You also can read log files through CF Administrator web interface.
s

Scott Bennett

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.
b

bdw429s

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.
šŸ‘ 1
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.
t

tia

04/06/2022, 5:31 PM
I use grep and other text filters in wsl.
6 Views