mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-06 08:13:32 +01:00
34 lines
868 B
Plaintext
34 lines
868 B
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 dnp3.log from Bro systems
|
|
#
|
|
# Parse using csv filter
|
|
filter {
|
|
if [type] == "bro_dnp3" {
|
|
mutate {
|
|
gsub => [ "message", "[\"']", "" ]
|
|
}
|
|
csv {
|
|
columns => ["timestamp","uid","source_ip","source_port","destination_ip","destination_port","fc_request","fc_reply","iin"]
|
|
separator => " "
|
|
}
|
|
}
|
|
}
|
|
|
|
# Parse using grok
|
|
#filter {
|
|
# if [type] == "bro_dnp3" {
|
|
# grok {
|
|
# match => [ "message", "(?<timestamp>(.*?))\t(?<uid>(.*?))\t(?<source_ip>(.*?))\t(?<source_port>(.*?))\t(?<destination_ip>(.*?))\t(?<destination_port>(.*?))\t(?<fc_request>(.*?))\t(?<fc_reply>(.*?))\t(?<iin>(.*?))$" ]
|
|
# }
|
|
# mutate {
|
|
# #add_tag => [ "conf_file_1129"]
|
|
# }
|
|
# }
|
|
#}
|