<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>OnRails.org: Tag Analyzer</title>
    <link>http://onrails.org/articles/tag/analyzer?tag=analyzer</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Ruby On Rails and related matters.</description>
    <item>
      <title>RailsLogVisualizer:  now open source and 6 x faster.</title>
      <description>I moved the RailsLogAnalyzer to RubyForge and as there was already a project on RubyForge with the same name, so I renamed it to &lt;a href="http://railslogvislzr.rubyforge.org/"&gt;RailsLogVisualizer&lt;/a&gt;. So &lt;b&gt;RailsLogVisualizer&lt;/b&gt; it is. Version 0.3 provide a drastic speed improvement over version 0.2. If you are curious or adventurous you can browse the &lt;a href="http://rubyforge.org/viewvc/?root=railslogvislzr"&gt;source code&lt;/a&gt; on RubyForge.
&lt;br/&gt;
The Project Home Page is &lt;a href="http://railslogvislzr.rubyforge.org/"&gt;http://railslogvislzr.rubyforge.org/&lt;/a&gt;&lt;br/&gt;
The project is at &lt;a href="http://rubyforge.org/projects/railslogvislzr/"&gt;http://rubyforge.org/projects/railslogvislzr/&lt;/a&gt;&lt;br/&gt;
Enjoy!
</description>
      <pubDate>Wed, 29 Nov 2006 21:40:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:41002264-db5f-4eb0-bc93-eb9f08aa7664</guid>
      <author>Daniel Wanja</author>
      <link>http://onrails.org/articles/2006/11/29/railslogvisualizer-now-open-source-and-6-x-faster</link>
      <category>Ruby On Rails</category>
      <category>Log</category>
      <category>Analyzer</category>
      <category>Open</category>
      <category>Source</category>
      <category>RubyForge</category>
    </item>
    <item>
      <title>RailsLogAnalyzer v0.2 for OSX - Faster, Better</title>
      <description>Version 0.2 of the RailsLogAnalyzer is still a development version but a great improvement over my first prototype. This version has been rewritten from the ground up and doesn't use a database to store intermediate log file aggreation.

&lt;img src="http://onrails.org/files/RailsLogAnalyzerActionView.gif" border="0" height="396" width="564" alt="RailsLogAnalyzerActionView.gif" align="right" /&gt;
 

&lt;p/&gt;
&lt;b&gt;Analyzing your log file data.&lt;/b&gt;

Once the log file is loaded you will see a breakdown of your requests by year, month, and day.
Click on the year, month, or day to see the controllers invocations during that period.
Click on the controller in the chart to see the method invocations during the selected period.
The method are further broken down based on their http methods (get, post, delete, ...).

Note: loading a 10Mb  production log file with 30000  requests takes about 10 seconds on my MacBook Pro.
        loading a 250Mb production log file with 530000 requests takes about 2 minutes.
        loading a 4.5Gb production log file with 11 million request takes about 45 minutes. 
The data is loaded in memory and must be reloaded once the application is closed.   

Download it here &lt;a href="http://onrails.org/files/RailsLogAnalyzer_0.2.dmg"&gt;RailsLogAnalyzer_0.2.dmg (487KB)&lt;/a&gt; and let me know your findings at daniel@onrails.org


</description>
      <pubDate>Wed, 15 Nov 2006 22:05:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:e1fdc8cd-c7e0-4916-855b-8a68a835600c</guid>
      <author>Daniel Wanja</author>
      <link>http://onrails.org/articles/2006/11/15/railsloganalyzer-v0-2-for-osx-faster-better</link>
      <category>Ruby On Rails</category>
      <category>Playground</category>
      <category>Log</category>
      <category>Analyzer</category>
    </item>
    <item>
      <title>RailsLogAnalyzer – help wanted</title>
      <description>&lt;p&gt;I need some Mac users to test and give feed back on a very early version of the RailsLogAnalyzer.  This app is an &lt;span class="caps"&gt;OSX&lt;/span&gt; app and not deployed on a server, so I would like to find out the obvious bug that may occur on different Macs. I tried it on my own MacBook Pro, G5    server, and on an old PowerBook G4. But then again the people most likely to use it are Rails developers that may have differences in their environment.&lt;/p&gt;


	&lt;p&gt;So if you like to take risks :-), understand the basic structure of a Rails app, have a production.log you want to analyze, and are not afraid of some scary bugs then read on&amp;#8230;&lt;/p&gt;&lt;p&gt;The RailsLogAnalyzer is an &lt;span class="caps"&gt;OSX&lt;/span&gt; application that allows to visualize the production.log of a Rails application. The RailsLogAnalyzer is itself a Rails application, with a Flash user interface, and wrapped as an &lt;span class="caps"&gt;OSX&lt;/span&gt; app using Platypus.&lt;/p&gt;


	&lt;p&gt;To use the application you &amp;#8216;just&amp;#8217; need to drop it in your application folder (or where ever you want) and double click it. See the &amp;#8216;user guide&amp;#8217; here after.&lt;/p&gt;


	&lt;p&gt;I wrote this small utility to help me see how users where using different Rails applications I was working on by visualizing the production log data. This utility is just doing what I needed and is pretty basic. It&amp;#8217;s definitively not ready for prime time, however your input will help drive it&amp;#8217;s development.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Requirements:&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;You need the Flash Player 9. For intel macs the player is in beta and can be downloaded here http://fpdownload.macromedia.com/get/flashplayer/current/fp9_beta/install_flash_player_9_ub_beta.dmg. More info here http://www.adobe.com/products/flashplayer/public_beta/. For PowerPC macs, just starting the application will open a browser window that will guide you through the flash player upgrade if you don&amp;#8217;t have version 9 installed.&lt;/li&gt;
		&lt;li&gt;Port 3000 needs to be free. So don&amp;#8217;t run any other Rails app when you launch the application. &lt;/li&gt;
		&lt;li&gt;Don&amp;#8217;t click too fast. See the user guide here after for more information.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;What the application does&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Show graph of unique session and total request per day.&lt;/li&gt;
		&lt;li&gt;Show pie chart of controller usage (at end of the period observed) .&lt;/li&gt;
		&lt;li&gt;Show the top ten actions invoked (can be filter by http method and controller)&lt;/li&gt;
		&lt;li&gt;Show the graphical geoip information ((at end of the period observed). [Very buggy]&lt;/li&gt;
		&lt;li&gt;Allow time navigation (30 days/7 days increment)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;What it doesn&amp;#8217;t do so well&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Visual feedback when processing. You gotta check the launch window output to see if it&amp;#8217;s still busy.&lt;/li&gt;
		&lt;li&gt;Disable buttons when processing. You can there overload the server if you are not patient.&lt;/li&gt;
		&lt;li&gt;Report errors. In corner cases you have to open the log file that are inside the application pacakage. Use the &amp;#8216;Show Package Contents&amp;#8217; on the application then goto to /Contents/Resources/RailsLogAnalyzerPackage/log folder.&lt;/li&gt;
		&lt;li&gt;Time aggregation. It would be nice to see data aggregated by week/month.&lt;/li&gt;
		&lt;li&gt;Local File Browsing to upload the log file. Currently you need to enter the full path to the file, there is not UI to select a file.&lt;/li&gt;
		&lt;li&gt;Log parsing. Certainly can be greatly improved. Haven&amp;#8217;t tried to parse development files. Wouldn&amp;#8217;t support custom log files either. Doesn&amp;#8217;t support well multi processes logging to the same production.log (which is most cases).&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;Licenses&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Well, I still need to put a complete list of what I use and the implications there off. Mostly Rails which is &lt;span class="caps"&gt;MIT&lt;/span&gt; and the GeoLiteCity.dat from maxmind.com/ that is &lt;span class="caps"&gt;GPL &lt;/span&gt;. Note the GeoLiteCity.dat file is 24mb big, thus at least partly the large size of the application. Also I am using the Flex Charting Trial components, that&amp;#8217;s visible when the application is running. My trial is running out in 17days as of this writing. I would like to buy the version of Flex Builder with Charting, but Adobe hasn&amp;#8217;t answered yet if buying the license for Windows would grant me usage of the version for &lt;span class="caps"&gt;OSX&lt;/span&gt;, when it comes out.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Performances&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;The application doesn&amp;#8217;t provide the best visual feed back yet. It also takes about 1 minute on my MacBook Pro to load a 20Mb production log file and 13 minutes for a 264Mb production log.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Side notes&lt;/strong&gt;&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;The database is a sqlite3 and is created in your  /Users/daniel/Library/Application\ Support/RailsLogAnalyzer&lt;/li&gt;
		&lt;li&gt;Note the application must be &amp;#8216;read-write&amp;#8217;. Use &amp;#8216;Get Info&amp;#8217; on the application and ensure in the &amp;#8216;Ownership &amp;#38; Permissions&amp;#8217; that the application is &amp;#8216;Read &amp;#38; Write&amp;#8217;. This is due to the fact that rails needs to write to the tmp folder and log folder that are embedded in the application it self.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Please provide feedback to daniel@onrails.org. 
Thanks in advance,
Daniel.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://onrails.org/RailsLogAnalyzer0.1.dmg "&gt;Download RailsLogAnalyzer0.1.dmg (18.6MB)&lt;/a&gt;&lt;br&gt;
&lt;a href="http://onrails.org/pages/RailsLogAnalyzerUserGuide.html" target="_blank"&gt;User Guide&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 03 Aug 2006 22:37:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:19782f89-ac13-4b7c-afc0-7b3153053b90</guid>
      <author>Daniel Wanja</author>
      <link>http://onrails.org/articles/2006/08/03/railsloganalyzer-%E2%80%93-help-wanted</link>
      <category>Playground</category>
      <category>Ruby On Rails</category>
      <category>Flex</category>
      <category>Analyzer</category>
      <category>Log</category>
      <category>Rails</category>
    </item>
  </channel>
</rss>
