# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. mps = { plugin_version = "1.0" # 2006-02-19 - 1.0beta - GMF - initial creation # 2007-09-13 - 1.0 - KBB - renumbered per new beta policy # The name of the log format log.format.format_label = "MPS Log Format" log.miscellaneous.log_data_type = "other" log.miscellaneous.log_format_type = "application" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^[0-9]+: [0-9]+: [0-9][0-9]/[A-Z][a-z][a-z]/[0-9][0-9][0-9][0-9]:[0-9][0-9]:[0-9][0-9]:[0-9][0-9][^:]*: [0-9]+: " # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { date = "" time = "" event_type = "" searched_databases = "" retrieved_from_database = "" query = "" item = "" document_id = "" mime_type = "" searches = "" retrieved_documents = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(current_log_line(), '^[0-9]+: [0-9]+: ([0-9][0-9]/[A-Z][a-z][a-z]/[0-9][0-9][0-9][0-9]):([0-9][0-9]:[0-9][0-9]:[0-9][0-9])[^:]*: [0-9]+: (.*)$')) then ( set_collected_field('', 'date', $1); set_collected_field('', 'time', $2); v.message = $3; if (matches_regular_expression(v.message, "^(Search! Databases): '([^']*)', Query: '([^']*)'")) then ( set_collected_field('', 'event_type', $1); set_collected_field('', 'searched_databases', $2); set_collected_field('', 'query', $3); set_collected_field('', 'document_id', ''); set_collected_field('', 'item', ''); set_collected_field('', 'mime_type', ''); set_collected_field('', 'retrieved_from_database', ''); set_collected_field('', 'retrieved_documents', 0); set_collected_field('', 'searches', 1); accept_collected_entry('', true); ); else if (matches_regular_expression(v.message, "^(Retrieving document), document ID: '([^']*)', item: '([^']*)', mime type: '([^']*)', from database: '([^']*)'")) then ( set_collected_field('', 'event_type', $1); set_collected_field('', 'document_id', $2); set_collected_field('', 'item', $3); set_collected_field('', 'mime_type', $4); set_collected_field('', 'retrieved_from_database', $5); set_collected_field('', 'retrieved_documents', 1); set_collected_field('', 'searches', 0); accept_collected_entry('', true); ); ); ` # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" event_type = "" searched_databases = "" retrieved_from_database = "" query = "" item = "" document_id = "" mime_type = "" } # database.fields database.numerical_fields = { searches.default = "true" retrieved_documents.default = "true" } # database.numerical_fields create_profile_wizard_options = { # This shows which numerical fields are related to which non-numerical fields. database_field_associations = { retrieved_from_database.retrieved_documents = true mime_type.retrieved_documents = true document_id.retrieved_documents = true item.retrieved_documents = true } # database_field_associations # How the reports should be grouped in the report menu report_groups = { date_time_group = "" } # report_groups } # create_profile_wizard_options } # mps