sawmill_unified_media = { plugin_version = "1.0" # 2009-11-13 - 1.0 - GMF - Initial creation # The name of the log format log.format.format_label = "Sawmill Unified Media Log Format" log.miscellaneous.log_data_type = "generic_w3c" log.miscellaneous.log_format_type = "media_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^#Software: Uvault Unified" auto_setup.omit_database_fields = "worm,spider" log.fields = { protocol = "" } database.fields = { protocol = "" } # Get search engine and search phrase information from the referrer field (before it gets simplified). log.parsing_filters.compute_se_sp = { value = `if (get_search_engine_info(referrer)) then ( search_engine = volatile.search_engine; search_phrase = volatile.search_phrase; ); ` requires_fields = { referrer = true } } # Get web browser, operating system, web browser, and spider information from the user-agent field. log.parsing_filters.derive_from_user_agent = { value = `get_user_agent_info(replace_all(cs_user_agent, '+', ' ')); web_browser = volatile.web_browser; operating_system = volatile.operating_system; spider = volatile.spider; ` requires_fields = { cs_user_agent = true } } # Log Filters log.filters = { simplify_referrer = { label = "$lang_admin.log_filters.simplify_referrer_label" comment = "$lang_admin.log_filters.simplify_referrer_comment" value = "if (referrer eq '-') then referrer = '(no referrer)' else if (matches_regular_expression(referrer, '^([^:]+://[^/]+/)')) then referrer = $1 . '(omitted)'" requires_fields = { referrer = true } } # simplify_referrer internal_referrer = { label = "$lang_admin.log_filters.internal_referrer_label" comment = "$lang_admin.log_filters.internal_referrer_comment" value = "if (contains(referrer, 'mydomain.com/')) then referrer = '(internal referrer)';" disabled = true requires_fields = { referrer = true } } # internal_referrer extract_protocol = { label = 'Extract protocol' comment = 'This extracts the protocol from the URL' value = 'if (matches_regular_expression(cs_uri_stem, "^([a-zA-Z0-9]+)://")) then protocol = $1;' } # extract_protocol mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'requests = 1;' } # mark_entry } # log.filters log.field_options = { sessions_page_field = "cs_uri_stem" sessions_visitor_id_field = "c_ip" sessions_event_field = "requests" } # log.field_options database.numerical_fields = { requests = { label = "$lang_stats.field_labels.requests" default = false requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # requests visitors = { label = "$lang_stats.field_labels.visitors" default = false requires_log_field = true log_field = "c_ip" type = "unique" display_format_type = "integer" } # visitors sc_bytes = { label = "$lang_stats.field_labels.sc_bytes" default = false log_field = "sc_bytes" requires_log_field = true type = "float" display_format_type = "bandwidth" } x_duration = { default = false requires_log_field = false type = "float" display_format_type = "duration_compact" } x_file_length = { default = false requires_log_field = true aggregation_method = "max" } # average_percentage_viewed = { # default = false # requires_log_field = false # aggregation_method = "average" # log_field = "x_duration" # requires_log_field = false # type = "float" # aggregation_method = "average" # average_denominator_field = "x_file_length" # display_format_type = "integer" # } } # database.numerical_fields create_profile_wizard_options = { final_step = ` include "templates.admin.profiles.setup_reports_util"; string profile = "profiles." . volatile.new_profile_name; delete_database_field(profile, 'worm'); delete_database_field(profile, 'spider'); delete_database_field(profile, 'screen_dimensions'); delete_database_field(profile, 'screen_depth'); # Create the standard reports add_standard_reports(profile); ` # How the reports should be grouped in the report menu report_groups = { date_time_group = "" content_group = { x_vhost = true x_app = true x_appinst = true cs_uri_stem = true file_type = true } source_group = { c_ip = true domain_description = true country = true region = true city = true organization = true domain = true isp = true } referrer_group = { referrer = true referrer_description = true search_engine = true search_phrase = true search_phrase_by_search_engine = true } visitor_systems_group = { screen_dimensions = true screen_depth = true web_browser = true operating_system = true x_playerversion = true } other_group = { worm = true spider = true } } # report_groups } # create_profile_wizard_options } # sawmill_unified_media