# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. openwebmail = { plugin_version = "1.0" # 2009-07-21 - 1.0 - GMF - Initial creation. info.1.manfacturer = "Open WebMail" info.1.device = "Open WebMail" info.1.version = "2" # 2.53 # The name of this format log.format.format_label = "Open WebMail Log Format" log.miscellaneous.log_data_type = "syslog_required" log.miscellaneous.log_format_type = "mail_server" # The log is in this format if any of the first ten lines match this regular expression #Sun Jul 5 13:11:43 2009 - [1889] (12.34.56.78) bob.jones - login - bob.jones*mail.somewhere.com.xy-session-0.57064812429914 - active=0,0,0 log.format.autodetect_regular_expression = '[[][0-9]+[]] [(][0-9.]+[)] [^ ]+ - (login|session cleanup|clean trash|mailfilter|logout|move message|delete message) ' # All log field parsing will be done using the parsing filters log.format.parse_only_with_filters = "true" # Log fields log.fields = { source_ip.type = "host" username = "" operation = "" events = "" } # log.fields # Log Parsing Filters log.parsing_filters.parse = ` if (matches_regular_expression(v.syslog_message, '[[][0-9]+[]] [(]([0-9.]+)[)] ([^ ]+) - (login|session cleanup|clean trash|mailfilter|logout|move message|delete message) ')) then ( set_collected_field('', 'source_ip', $1); set_collected_field('', 'username', $2); set_collected_field('', 'operation', $3); set_collected_field('', 'events', 1); accept_collected_entry('', false); ); ` # Database fields database.fields = { source_ip = "" location = "" username = "" operation = "" } # database.fields # Database numerical fields database.numerical_fields = { events = { default = true entries_field = true } # events } # 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 } # openwebmail