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.
Archived Comments
Yes, very cool indeed.
SIDE NOTE COMING!
How were you able to get those really cool black windows. Is it a MS Theme? Or are you running Vista? Please enlighten
It is part of ColdFusion 8.
Just joking. ;) GOogle for the Zune theme, or Royal Noir. It is one of them and you can download it.
Yeah Alright! MS finally made something worth while. It's actually a very cool theme. Thanks Ray. Ohhh and the CF Log is truly a great tool.
This is one of those "little known but really handy" Admin features. Another one is the "docked debug pane" which comes in hand for sites that rely heavilly on css. Keeps the debugging info from messing up the look and feel of your site.
Or you could use ColdFire. ;)
rofl - Somehow I "KNEW" that was coming. Let me rephrase then - "If you CAN'T use Coldfire - Another one is the 'docked debug pane' which comes in hand for sites that rely heavilly on css. "
I knew about it, but to be honest I normally just 'tail' the log files.
"TAIL" now THERE'S a utility that is VERY daggone handy!
You know about Mike Nimer's Log Viewer plugin for Eclipse, right? Let's you do a tail on a log and auto update it. VERY handy tool for Eclipse.
Frankly, i find the filter irritating. It requires dates in a specific format (and a format thats not standard to us in the US)... why cant it convert the dates? and it's slow, even when the log files arent that big
Generic Trackback:
http://cfsilence.com/blog/c...