When I told Gert Franz from Railo that it was a pity that there was no log viewing option in the Railo admin, he smiled and showed me a log analyzer plugin which he already wrote. "But it's still in development, so we haven't published it yet", he said.
The plugin indeed lacked some options, but not anymore! I added the remaining options, and now made it available to everyone via my extensionProvider.
It shows you the logs from the web admin, ordered by error message, last occurence date, or amount of occurences. And you can off course download the log file.
Installation for one website, or the server context (new!)
Go to your Web or Server admin, click on Extension > Providers, and add the following url:
http://www.railodeveloper.com/ExtensionProvider.cfc
Then, go to Extension > Applications, and install the Log analyzer (web version) or the Log analyzer (global server version) (server version)
Last, you have to logout and login to the admin again, to see the new plugin in the navigation.
Enjoy!
Installer for multiple websites
Someone asked on the mailing list why the plugin could not be installed from within the server admin. For my own servers, that would also be a great option. One installer to rule them all!
So what you now can do, is add the extension provider to the SERVER admin, and then install the Log analyzer installer plugin. This plugin can then install and uninstall the plugin to any web context (website) you want.
Enjoy*2!
Change log
Version 2.1, 1 december 2010: added the server Log analyzer plugin. Fixed a bug which occured if the log had an empty error message. Changed some security issues related to allowed paths.
Version 1.1.3, 4-11-2010: fixed a major bug in version 1.1.2: for some reason I can't use private functions in the plugin :-/
Version 1.1.2, 4-11-2010: fixed a bug: the last error of any parsed template was not used/shown.
Version 1.1.1, 4-11-2010:
- fixed error when trying to change the 'rows per page' select box on windows
- improved file parsing: sometimes new errors were skipped or appended to the previous error "detail output"
- html formatting in the error message and detail is now escaped with htmlEditFormat()
- chart on the detail page now hopefully only shows integers
- chart is only shown if there is more then one occurence date
- chart x-axis is now sorted correctly on date
- long text without spaces in error detail is now broken into pieces, to prevent the table from running off-screen.







#1 by Aaron Longnion - November 4, 2010 at 4:44 AM
#2 by User - November 4, 2010 at 5:51 AM
My installation failed:
error occured in Install.cfc:11
9: <cfargument name="step" type="numeric">
10:
11: <cfif len(config.mixed.lock_timeout) and not IsNumeric(config.mixed.lock_timeout)>
12: <cfset error.fields.lock_timeout="lock timeout must be a positive numeric value greather or equal to 0">
13: </cfif>
#3 by User - November 4, 2010 at 5:53 AM
key [LOCK_TIMEOUT] doesn't exist in struct (keys:)
error occured in Install.cfc:11
9: <cfargument name="step" type="numeric">
10:
11: <cfif len(config.mixed.lock_timeout) and not IsNumeric(config.mixed.lock_timeout)>
12: <cfset error.fields.lock_timeout="lock timeout must be a positive numeric value greather or equal to 0">
13: </cfif>
#4 by AJ Mercer - November 4, 2010 at 10:24 AM
#5 by Paul Klinkenberg - November 4, 2010 at 10:49 AM
#6 by Donal Mulcahy - November 4, 2010 at 11:07 AM
Invalid arguments count for operation GETDOWNLOADDETAILS (5 instead of 4)
#7 by Paul Klinkenberg - November 4, 2010 at 12:14 PM
Also, I think I "fixed" the problem you were having, so you can try it again! But please post the version number; it is important to me to be able to debug this issue.
Kind regards, Paul
#8 by TOm K - November 4, 2010 at 5:21 PM
#9 by Paul Klinkenberg - November 4, 2010 at 5:23 PM
#10 by TOm K - November 4, 2010 at 5:32 PM
Cheers
#11 by Craig Kaminsky - November 4, 2010 at 5:57 PM
Best,
Craig
#12 by david s - November 6, 2010 at 6:13 PM
Haven't looked at your source but i'm assuming you running cfexecute to do this. My setup is on a linux 64bit environment.
http://stackoverflow.com/questions/1124771/how-to-solve-java-io-ioexception-error12-cannot-allocate-memory-calling-runt
#13 by Paul Klinkenberg - November 6, 2010 at 10:56 PM
#14 by Andrew Clarke - November 11, 2010 at 1:36 PM
This is the first time I've tried to use a Railo extension but I'm running into a problem. I added http://www.railodeveloper.com/ExtensionProvider.cfc as an extension, but when I then go to applications, I get the following error: "can't load provider [http://www.railodeveloper.com/ExtensionProvider.cfc]". I then tried to verify your provider, and got the following alt/title tags describing the error: alt="Server returned HTTP response code: 403 for URL: http://www.railodeveloper.com/ExtensionProvider.cfc?wsdl "
This is on Railo 3.1.2.001 on Mac OS X. Any ideas? Thanks, - Andrew.
#15 by Paul Klinkenberg - November 11, 2010 at 1:54 PM
Yesterday, my server got 1.000's of requests from a few ip addresses that were all using the useragent "Java/1.6.0_xx". That's the default user-agent when you call a url from java. Therefor, I locked my server down to stop every request with such a useragent. But guess what? Railo also uses this useragent while retrieving extensionprovider data :-/
Anyway, it's fixed now!
#16 by Andrew Clarke - November 11, 2010 at 3:19 PM
- Andrew.
#17 by Paul Klinkenberg - December 2, 2010 at 12:09 AM
#18 by Tjarko - December 9, 2010 at 10:23 AM
#19 by William Dale - March 16, 2011 at 11:39 PM
Current Headings are as follow: Message, Last occurence, Thread name, Type, Occurences, and Detail.
Could you add url.
I use a query string to support mvc design pattern. So everything goes through index.cfm
Adding full url will help find templates to debug.
Great Work!
-- Bill Dale
#20 by Paul Klinkenberg - March 16, 2011 at 11:57 PM
The information shown with this plugin, is all the information which is available in the log files. So unfortunately, the requested URL is not saved to the log file at the moment of error.
I do think it is an interesting suggestion. What you could do, is make a "feature request" for this in the Railo bug tracking system at https://issues.jboss.org/secure/CreateIssue.jspa?pid=12310683&issuetype=2
If you make it really clear that it would be awesome to have the requested url inside the Detail section of the exception.log file, then you've got a (small) chance that the Railo developers might be so cool to put it in ;-)
What will probably help you more, is to add the tag [cferror] in your Application.cfm, which sends you all error data by email. See Ben's blog post about this: http://www.bennadel.com/blog/932-Ask-Ben-Handling-Errors-With-ColdFusion-CFError.htm
Good luck, Paul
#21 by Sebastiaan - September 22, 2011 at 1:41 PM
Thanx, this works! Would've been nice if it showed up somewhere at the top of the Railo Server Menu, but now I know where it is ;-) Gonna play some with it. Nice addition to the error handling we've built into all sites and apps (sends mail with full error and dumps when something goes awry).
#22 by Paul Klinkenberg - September 22, 2011 at 8:38 PM
Cheers, Paul
#23 by mike fransblow - September 27, 2012 at 7:12 PM
cheers, Mike F
#24 by Dan - March 12, 2013 at 2:40 PM
invalid component definition, can't find railo_plugin_directory.LogAnalyzerInstaller.Action
#25 by Paul Klinkenberg - March 12, 2013 at 2:57 PM
Cheers, Paul