# Copyright (c) 2014 Flowerfire, Inc. All Rights Reserved.
winsshd_xml = {
plugin_version = "1.0"
info.1.manufacturer = "Bitvise"
info.1.device = "WinSSHD"
info.1.version.1 = "6" # 6.0.3
# 2014-01-29 - 1.0 - GMF - Initial creation
# The name of the log format
log.format.format_label = "Bitvise WinSSHD Log Format"
log.miscellaneous.log_data_type = "generic"
log.miscellaneous.log_format_type = "other"
# The log is in this format if any of the first ten lines match this regular expression
#
log.format.autodetect_regular_expression = "BvSshServer"
log.format.date_format = "auto"
log.format.time_format = "auto"
log.format.parse_only_with_filters = "true"
# Log fields
log.fields = {
date = ""
time = ""
#
appname = ""
appversion = ""
thisfile = ""
#
seq = ""
app = ""
name = ""
desc = ""
#
algorithm = ""
size = ""
md5 = ""
babble = ""
#
listenaddress = ""
port = ""
scope = ""
serviceaccount = ""
sessionid = ""
exepath = ""
computername = ""
computerdomain = ""
windowsversion = ""
servicepack = ""
isdomaincontroller = ""
addressrule = ""
clientversion = ""
kexalg = ""
cipheralgin = ""
cipheralgout = ""
macalgin = ""
macalgout = ""
compralgin = ""
compalgout = ""
#
id = ""
remoteaddress = ""
#
attemptnr = ""
username = ""
method = ""
failurereason = ""
#
type = ""
message = ""
events = ""
} # log.fields
# Database fields
database.fields = {
date_time = ""
day_of_week = ""
hour_of_day = ""
#
# appname = ""
# appversion = ""
# thisfile = ""
#
# seq = ""
# app = ""
name = ""
desc = ""
#
algorithm = ""
size = ""
# md5 = ""
# babble = ""
#
listenaddress = ""
port = ""
scope = ""
serviceaccount = ""
sessionid = ""
exepath = ""
computername = ""
computerdomain = ""
windowsversion = ""
servicepack = ""
isdomaincontroller = ""
addressrule = ""
clientversion = ""
kexalg = ""
cipheralgin = ""
cipheralgout = ""
macalgin = ""
macalgout = ""
compralgin = ""
compalgout = ""
#
id = ""
remoteaddress = ""
#
attemptnr = ""
username = ""
method = ""
failurereason = ""
#
type = ""
message = {
type = "unnormalized_string"
index = false
add_default_xref_table = false
} # message
} # database.fields
log.parsing_filters.parse = `
#
if (matches_regular_expression(current_log_line(), '^ $')) then (
collect_listed_fields('', $1, ' ', '=', '');
);
#
else if (matches_regular_expression(current_log_line(), '^ $')) then (
collect_listed_fields('', $1, ' ', '=', '');
);
#
else if (matches_regular_expression(current_log_line(), '^ $')) then (
collect_listed_fields('', $1, ' ', '=', '');
);
#
else if (matches_regular_expression(current_log_line(), '^ $')) then (
collect_listed_fields('', $1, ' ', '=', '');
);
#