# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. lrs_vpsx_accounting = { plugin_version = "1.0" info.1.manfacturer = "LRS" info.1.device = "VPSX Accounting" info.1.version.1 = "Version 1 Release 1" # fix level 27 # 2006-11-22 - 1.0 - Graham - Initial plug-in creation # This is a bespoke log format plug-in for v7.1.10 or later only. Created for www.lrs.com. Copyright The Sawmill Limited # these field labels will need to be added to lang_stats.cfg prior to 7.1.14: # # totpages = "total pages" # stime = "printer start time" # ptime = "printer end time" # printer = "printer name" # lines = "lines printed" # copies = "copies printed" # print_duration = "print duration" # The name of the log format log.format.format_label = "LRS VPSX Accounting Log Format" log.miscellaneous.log_data_type = "generic_w3c" log.miscellaneous.log_format_type = "application" # The log is in this format if there is a match this regular expression log.format.autodetect_regular_expression = '#Software: VPSX' # An entry in this log is called a "message" in the statistics statistics.miscellaneous.entry_name = "events" # This disables the collection of unclosed entries log.format.collected_entry_lifespan = "0" # The format of dates and times in this log log.format.date_format = "yyyy-mm-dd" log.format.time_format = "hh:mm:ss" 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 totpages = { label = "$lang_stats.field_labels.totpages" default = false requires_log_field = true log_field = "totpages" type = "int" display_format_type = "integer" } # totpages lines = { label = "$lang_stats.field_labels.lines" default = false requires_log_field = true log_field = "lines" type = "int" display_format_type = "integer" } # totpages copies = { label = "$lang_stats.field_labels.copies" default = false requires_log_field = true log_field = "copies" type = "int" display_format_type = "integer" } # copies bytes = { label = "$lang_stats.field_labels.bytes" default = false requires_log_field = true log_field = "bytes" type = "int" display_format_type = "bandwidth" } # bytes cost = { label = "$lang_stats.field_labels.copies" default = false requires_log_field = true log_field = "cost" type = "int" display_format_type = "integer" } # cost # print_duration = { # label = "$lang_stats.field_labels.print_duration" # default = false # requires_log_field = false # type = "int" # display_format_type = "duration_compact" # } # print_duration } # database.numerical_fields log.filters = { # print_duration_calc = { # value = "print_duration = epoc_to_date_time(date_time_to_epoc((normalize_date(substr(ptime, 10, length(ptime) - 10), mmmmm/dd/yyyy)) . ' ' . substr(ptime, 1, 8)) - date_time_to_epoc((normalize_date(substr(stime, 10, length(stime) - 10), mmmmm/dd/yyyy)) . ' ' . substr(stime, 1, 8)));" # label = "print_duration_calc" # comment = "print_duration_calc" # } # print_duration_calc mark_entry = { value = "events = 1;" label = "$lang_admin.log_filters.mark_entry_label" comment = "$lang_admin.log_filters.mark_entry_comment" } # mark_entry } # log.filters create_profile_wizard_options = { # How the reports should be grouped in the report menu report_groups = { date_time_group = "" printer = true owner = true host = true filename = true stime = true ptime = true # debug = true } # report_groups } # create_profile_wizard_options not_supported = { visitors = true sessions = true pageviews = true } # not_supported } # lrs_vpsx_accounting