Did you know about the Log Viewer Filter?

Most folks use the ColdFusion Log Viewer to do simply that - view log files. But did you know that there was also a pretty good filter function built into it as well? It isn’t hidden per se, in fact you can see the button right here:

(Don’t you just love my art work?) But in the years I’ve been working with ColdFusion I’ve seen few people use it. Admittedly the Log Viewer in general isn’t the snazziest part of ColdFusion’s administrator. I’d actually recommend folks take a look at Flogr as a replacement. But if you can’t install Flogr, then the filter is an excellent way to help you work with large log files.

Upon clicking the button Launch Filter button the following window will open:

In general the options here are pretty self-explanatory. The keywords and date filters are probably the most important options. Just yesterday a client needed me to investigate some issues that occurred last Friday. I was able to supply both a date and time range which greatly reduced the size of the log I was working with. You can also search within the results of a previous search which can be handy in helping to narrow down the exact rows you need.

One feature I’d like to see both in the admin and in Flogr is a simple way to take the current result set and export it to a file. This could be useful either for printing or just saving for later analysis.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments