icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

We are working on something new...

A Fresh New Splunkbase
We are designing a New Splunkbase to improve search and discoverability of apps. Check out our new and improved features like Categories and Collections. New Splunkbase is currently in preview mode, as it is under active development. We welcome you to navigate New Splunkbase and give us feedback.

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Ruby on Rails
SHA256 checksum (ruby-on-rails_101.tgz) a03db093166ca9a06d8c7a4a9949a5eb44f8980047abbbe56c8524370bcda188 SHA256 checksum (ruby-on-rails_10.tgz) 21cf33e6e2f30c47d12542114f59b7626da3d677402fb74851d9a95f9e85fff9
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Ruby on Rails

This app has been archived. Learn more about app archiving.
This app is NOT supported by Splunk. Please read about what that means for you here.
Overview
Details
This app contains a set of field extractions, searches, reports, and dashboards for analyzing Ruby on Rails production log data. It includes sample data, a full set of field extractions for typical RoR application logs, and example reports on metrics such as request times, controllers, actions, http methods etc.

Thanks to John Berry (Lumos Labs) and Simeon Yep (Splunk) for their invaluable assistance with this app.

Features

Two Dashboards and six saved searches/reports:

  • Rails Request Overview provides charts and tables that show requests over time, average, min, and max request times by Controller#action, and breakdowns by render and db time
  • Rails stats show basic stats around top action, method, and clients

Permissions

By default, permissions are set at the app level - users in the 'admin' role have read and write permissions.

You can change the app level permissions by navigating to Manager >> Apps >> Rails "Permissions". Use caution!

Field Extractions

To ensure that field extractions are working properly, you will need to ensure that the correct source type is linked to the field extractions.

By default, the app will already work if your rails events are coming in under the source type "rails".

Otherwise, you should copy $SPLUNK_HOME/etc/apps/rails/default/props.conf to $SPLUNK_HOME/etc/apps/rails/local/props.conf, and change the existing rails stanza to the source type that contains your Rails production data.

For example, to set the field extractions to work with the source type foobar, $SPLUNK_HOME/etc/apps/rails/local/props.conf should look as follows:

[foobar]
#field extractions
EXTRACT-rails-db = ((ActiveRecord:)|(DB:))\s(?<db_time>[\d.]*)
EXTRACT-rails-render = ((Views:)|(View:)|(Rendering:))\s(?<render_time>[\d.]*)
EXTRACT-rails-parameters = Completed.*in\s(?<request_time>[\d.]*)(ms)?(\s\((?<req_per_sec>\d*)\sreqs/sec)?
EXTRACT-rails-processing = Processing(\s)(?<controller>\S+)#(?<action>\S+)(\s\(for\s(?<client>[\d.]*).*\)\s\[(?<method>\S+)\])?
EXTRACT-rails-render-template = Rendering\s(?!template\swithin)(?<render_template>\S*)
EXTRACT-rails-response = Completed in.* \| (?P<response_code>\d{3})\s(?<response_msg>\S+)\s\[(?<response_uri>\S*)\]
EXTRACT-rails-sessionid = Session\sID:\s(?<session_id>\S*)
REPORT-ruby_on_rails = rails_delim, rails_sub_call_1, rails_sub_call_2

#timestamp recognition
TIME_PREFIX = (for [\d\.]+ at\s)
TIME_FORMAT = %Y-%m-%d %H:%M:%S

#line breaking for multiline ruby logs (groups events together in transactional view)
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = Processing

A diagram of the fields that get extracted for common Ruby log formats is located under the Views menu in the app.

Sample Data

Sample data to test this app is available at $SPLUNK_HOME/etc/apps/rails/logs/

Questions?

If you have problem or suggestions to improve the app please post to answers.splunk.com using the link on this page.

Release Notes

Version 1.01
Nov. 17, 2010

Changed naming

Version 1.0
Nov. 17, 2010

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.