mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-07 00:33:12 +01:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
# Author: Wes Lambert
|
|
# wlambertts@gmail.com
|
|
#
|
|
# Adapted from existing filters provided by Justin Henderson
|
|
#
|
|
# Last Update: 12/14/2017
|
|
#
|
|
# This conf file is based on accepting logs for rfb.log from Bro systems
|
|
#
|
|
# Parse using csv filter
|
|
filter {
|
|
if [type] == "bro_rfb" {
|
|
mutate {
|
|
gsub => [ "message", "[\"']", "" ]
|
|
}
|
|
csv {
|
|
columns => ["timestamp","uid","source_ip","source_port","destination_ip","destination_port","client_major_version","client_minor_version","server_major_version","server_minor_version","authentication_method","auth","share_flag","desktop_name","width","height"]
|
|
separator => " "
|
|
}
|
|
}
|
|
}
|
|
|
|
# Parse using grok
|
|
#filter {
|
|
# if [type] == "bro_rfb" {
|
|
# grok {
|
|
# match => [ "message", "(?<timestamp>(.*?))\t(?<uid>(.*?))\t(?<source_ip>(.*?))\t(?<source_port>(.*?))\t(?<destination_ip>(.*?))\t(?<destination_port>(.*?))\t(?<client_major_version>(.*?))\t(?<client_minor_version>(.*?))\t(?<server_major_version>(.*?))\t(?<server_minor_version>(.*?))\t(?<authentication_method>(.*?))\t(?<auth>(.*?))\t(?<share_flag>(.*?))\t(?<desktop_name>(.*?))\t(?<width>(.*?))\t(?<height>(.*?))$" ]
|
|
# }
|
|
# mutate {
|
|
# #add_tag => [ "conf_file_1129"]
|
|
# }
|
|
# }
|
|
#}
|