|
Sawmill Discussion Forum
rbennett
Member since Feb-9-04
21 posts |
Jul-14-05, 07:58 AM (PDT) |
|
"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 |
|
|
ferrar
Member since Sep-5-01
2725 posts |
Jul-16-05, 08:28 PM (PDT) |
 |
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 |
|
|
 |
|
|