# Copyright (c) 2012 Flowerfire, Inc. All Rights Reserved. npr_reporting = { plugin_version = "1.0" info.1.manufacturer = "NPR Digital Services" info.1.device = "IceCast Reporting" info.1.version = "" # 2014-02-17 - 1.0 - GMF - Initial creation. # The name of the log format log.format.format_label = "NPR Digital Services IceCast Reporting Log Format" log.miscellaneous.log_data_type = "media_server" log.miscellaneous.log_format_type = "media_server" # The log is in this format if any of the first ten lines match this regular expression #30/Mar/2012:17:43:50 -0500|/khum-hi|0|KHUM - Radio Without the Rules log.format.autodetect_regular_expression = '^[0-9a-f.:]+ [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [^ ]+ [0-9]+ [0-9]+ ' log.format.parsing_regular_expression = '^([0-9a-f.:]+) ([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]) ([0-9][0-9]:[0-9][0-9]:[0-9][0-9]) ([^ ]+) ([0-9]+) ([0-9]+) (.*)$' # Log fields log.fields = { source_ip = "" date = "" time = "" stream_name = "" duration = "" server_response = "" user_agent = "" plays = "" } # log.fields # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" source_ip = "" stream_name = "" server_response = "" user_agent = "" } # database.fields # Log Filters log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'plays = 1;' } # mark_entry } # log.filters database.numerical_fields = { plays = { requires_log_field = false default = true entries_field = true } # plays duration = { default = true type = "int" integer_bits = 64 display_format_type = "duration_compact" } # duration } # database.numerical_fields create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options } # npr_reporting