Welcome to Sawmill.Net
 
 

Sawmill Discussion Forum

Subject: "V6 to V7 config conversion"     Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences Support Topic #2497
Reading Topic #2497
rbennett
Member since Feb-9-04
21 posts
Jul-14-05, 07:58 AM (PDT)
Click to EMail rbennett Click to send private message to rbennett Click to add this user to your buddy list  
"V6 to V7 config conversion"
 
   I just purchased & installed V7.1.12, ran the conversion and the results look more like your default with my names on them than a converted configuration. I have appox 50 config.s to provide individual client information using the following filter in V6:
##
## CATEGORY: Log Filters
##

# Specifies one filter to accept or reject log entries
# Format: lf
log_filters
standard
do_b "" "" "" "" "" copy_field "" "" "visitor id" "client IP" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "visitor id" "" starts_with variable 10.202 goto_next_filter "" "" "visitor id" "client IP" reject "" "" "" "" collapsed
do_b "" "" "" "" "" convert_field_regexp ^(.*\?).*$ $1(parameters) URL URL goto_next_filter "" "" "" "" collapsed
do_b "" "" "" "" "" replace_first notfound allowed action "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value JPEG accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value JPG accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value GIF accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value ICO accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value PNG accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value CSS accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value SWF accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value JS accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
if_a_then_b_else_c "file type" "" equals value CLASS accept_as_hit "" "" "" "" goto_next_filter "" "" "" "" collapsed
filter_end
--------------------------------------------------------------------
that selects based on internal IP# (10.202 in this case). This doesn't show up in the new profiles (same reason I didn't go to 7.0.3 back at the end of Aug, expected conversion would be better by now).
It did pick up some filters:
parsing_filters = ""
filters = {
1 = {
value = "if (starts_with(visitor_id, variable)) then '' else 'reject';"
comment = "filter 1"
label = "filter1"
} # 1
2 = {
value = "if (matches_regular_expression(url, '^(.*\\?).*$')) then url = expand('$1(parameters)');"
comment = "filter 2"
label = "filter 2"
} # 2
3 = {
value = "action = replace_first(action, 'notfound', 'allowed');"
comment = "filter 3"
label = "filter 3"
} # 3
detect_page_views = {
value = "if ((file_type eq 'JPEG') or (file_type eq 'JPG') or (file_type eq 'GIF') or (file_type eq 'ICO') or (file_type eq 'PNG') or (file_type eq 'CSS') or (file_type eq 'SWF') or (file_type eq 'JS')) then page_views = 0; else page_views = 1;"
label = "$lang_admin.log_filters.detect_page_views_label"
comment = "$lang_admin.log_filters.detect_page_views_comment"
} # detect_page_views
} # filters
--------------------------------------------------------------------
the action for notfound.
So, can the conversion do better or can you suggest an alternative action that doesn't involve a redue of each config.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
ferraradmin
Member since Sep-5-01
2725 posts
Jul-16-05, 08:28 PM (PDT)
Click to EMail ferrar Click to send private message to ferrar Click to view user profileClick to add this user to your buddy list  
1. "RE: V6 to V7 config conversion"
In response to message #0
 
I think we can improve the converter. Right now it's trying to convert from the multi-filter page view categorization of v6 to the single-filter categorization of v7, which it does pretty well *unless* you've customized the v6 filters. I think we can improve it to build a v7 filter from those v6 filters. If you'd like us to do that, please send your Configs folder to support@flowerfire.com , with the URL of this thread.

You may also want to consider using the "create_many_profiles" option, which lets you create your 50 profiles from one template. This feature, which was also available in v6 but works somewhat differently in v7, is documented at http://sawmill.net/cgi-bin/sawmill7/docs/sawmill.cgi?dp+docs.technical_manual.multipleusers+webvars.username+samples+webvars.password+sawmill . That would allow you to set up the v7 profile filters however you want for one profile, and then regenerated the rest of them automatically. It's a good idea to use this approach anyway if you have 50 similar profiles, because it makes it easy to change something in all of them if you decide to.

-
Greg Ferrar, Sawmill Product Manager
support@sawmill.net


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
rbennett
Member since Feb-9-04
21 posts
Jul-18-05, 05:43 AM (PDT)
Click to EMail rbennett Click to send private message to rbennett Click to add this user to your buddy list  
2. "RE: V6 to V7 config conversion"
In response to message #1
 
   Hi Greg,
Thanks for the timely response and for making me think a bit more about this process. I was going for the easy route, but your 'create_many_profiles' option is tempting. I am going to play with that a bit and will let you know if I decide to go in that direction or send you the Configs folder.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
rbennett
Member since Feb-9-04
21 posts
Jul-18-05, 08:33 AM (PDT)
Click to EMail rbennett Click to send private message to rbennett Click to add this user to your buddy list  
3. "RE: V6 to V7 config conversion"
In response to message #2
 
   Hi,
With your 'create_many_profiles' option have you taken away all other methods of using a working profile as a template, as I don't see a 'save as' option with the profiles.

Also, I looked around to find where you would specify days for database expiration within the db spec.s with no success, so does it go in the 'Extra options' of the scheduler when you select 'remove database data'


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
ferraradmin
Member since Sep-5-01
2725 posts
Jul-20-05, 03:09 PM (PDT)
Click to EMail ferrar Click to send private message to ferrar Click to view user profileClick to add this user to your buddy list  
4. "RE: V6 to V7 config conversion"
In response to message #3
 
We don't yet have a "save as" option, or a "duplicate profile" option, but that's on the short-term To Do List. I will increase the priority a notch.

In Sawmill 7.1.12 (and most earlier 7 versions, though maybe not the really early 7.0 versions), there is a field "Remove database data older than" in the "remove database data" page of the Scheduler. Enter a 30 in there, and the "remove database data" task will remove all but the most recent 30 days of data. You can also use the Extra Options, but it's much easier to use the "Remove database data older than" field.

-
Greg Ferrar, Sawmill Product Manager
support@sawmill.net


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top

Conferences | Topics | Previous Topic | Next Topic

Home    Overview    Features    Samples    Testimonials     FAQ    Downloads    Ordering    Manual    Support

 

Copyright © 2005 by Flowerfire Privacy Policy