radius_accounting = { plugin_version = "1.1" # 2006-04-07: Added maximum connections -GMF # The name of the log format log.format.format_label = "Radius Accounting Log Format" log.miscellaneous.log_data_type = "csv" log.miscellaneous.log_format_type = "network_device" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "Date,Time,User-Name,Group-Name,Calling-Station-Id,Acct-Status-Type,Acct-Session-Id," # Use , as the separator log.format.field_separator = "," log.fields = { current_connections = "" } log.filter_initialization = ` int running_current_connections = 0; ` log.parsing_filters.parse = ` # Compute the current number of connections if (acct_status_type eq "Start") then running_current_connections = running_current_connections + 1; else if (acct_status_type eq "Stop") then ( running_current_connections = running_current_connections - 1; if (running_current_connections < 0) then running_current_connections = 0; ); current_connections = running_current_connections; ` database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events acct_input_octets = { label = "$lang_stats.field_labels.acct_input_octets" default = false requires_log_field = true log_field = "acct_input_octets" type = "float" display_format_type = "bandwidth" } # acct_input_octets acct_output_octets = { label = "$lang_stats.field_labels.acct_output_octets" default = false requires_log_field = true log_field = "acct_output_octets" type = "float" display_format_type = "bandwidth" } # acct_output_octets acct_input_packets = { label = "$lang_stats.field_labels.acct_input_packets" default = false requires_log_field = true log_field = "acct_input_packets" type = "int" display_format_type = "integer" } # acct_input_packets acct_output_packets = { label = "$lang_stats.field_labels.acct_output_packets" default = false requires_log_field = true log_field = "acct_output_packets" type = "int" display_format_type = "integer" } # acct_output_packets maximum_connections = { log_field = "current_connections" requires_log_field = false aggregation_method = "max" } # current_connections = { # requires_log_field = false # } } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'events = 1;' } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" day_of_week = true hour_of_day = true timeras_client = true user_name = true group_name = true calling_station_id = true acct_status_type = true service_type = true framed_protocol = true framed_ip_address = true nas_port = true nas_ip_address = true real_name = true termination_action = true } # report_groups } # create_profile_wizard_options } # radius_accounting