New York Web Design
New York Web Design Forum IndexHome FAQFAQ SearchSearch MemberlistMemberlist UsergroupsUsergroups
Log inLog in Log inMy Password RegisterRegister ProfileProfile  Check MessagesCheck Messages

How to create URCHIN Filters


Post new topic   Reply to topic    New York Web Design Forum Index -> Coding Forum
Author Message
webguru
Site Admin


Joined: 07 Aug 2005
Posts: 19
Location: New York

Post

Subject: How to create URCHIN Filters  Posted: Wed October 08, 2008

Reply with quote

As an example, I pose the following case:

Say you're building a website under Windows IIS and have several test scripts that you've coded. Now that you're ready to launch the Web site, you want to exclude or filter out all the files that were used for testing purposes.

Lets say you have the following test scripts that you were using and now want to filter out of the URCHIN reports:

  1. index_test.html
  2. contact_us_test04.html
  3. register_beta_01.php
  4. sample_junk.html


To exclude files/web pages from URCHIN reports, do the following:


  1. Click on Configuration -> Filter Manager
  2. On the top right, Click Add (+ icon)
  3. For Filter Name, enter an appropriate name, e.g "exclude test"
  4. For Filter Type, select Exclude Pattern
  5. For Filter Field, select cs_uristem (RAW)
  6. For Filter Pattern, enter (test)+|(beta)+|(junk\.html)+
  7. For Case Sensitive, select No
  8. Click Done
  9. Click More Options
  10. Select the the profiles you want to filter out listed under "Available Profiles" column and move them over to the "Applied To" column.
  11. Click Update


Code:
()  grouping (of operators)
|   alternation aka OR
+   matches character to left one or more times
\   matches character to right literally


So based on the above regular expressions, we have
Code:
(test)+       matches any uri stem containing "test" one or more times
(beta)+       matches any uri stem containing "beta" one or more times
(junk\.html)+ matches any uri stem containing "junk.html" one or more times


For more information about using regular expressions in your filters, I've created a regular expressions quick reference guide here http://www.webdesignsnow.com/forums/about122.html

IMPORTANT NOTE
If you've already setup your URCHIN profile, the filter will only apply to future reports. It does not apply to past reports already generated by URCHIN. To apply the filter for all reports, you need to delete and recreate the profile and log source with the filter applied to the log source.

PLEASE ensure that your server log files are intact before deleting the profile and the corresponding log source.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    New York Web Design Forum Index -> Coding Forum All times are GMT - 3 Hours
Page 1 of 1

 
Remember Me
Username:
Password:
 
 © Copyright 2007 WebDesignsNow.com, All rights reserved  |  Privacy Web Design Forums  |  Web Design News  |  Advertise  |  About Us  |  W3C Compliant 
Powered by phpBB © 2007