cleanup index-pattern
add dicompot log to logstash
This commit is contained in:
t3chn0m4g3 2020-06-24 13:21:29 +00:00
parent 99d8cf9b32
commit 238a08b055
3 changed files with 35 additions and 0 deletions

View file

@ -64,6 +64,13 @@ input {
type => "Dionaea"
}
# Dicompot
file {
path => ["/data/dicompot/log/dicompot.log"]
codec => json
type => "Dicompot"
}
# ElasticPot
file {
path => ["/data/elasticpot/log/elasticpot.json"]
@ -298,6 +305,34 @@ filter {
}
}
# Dicompot
if [type] == "Dicompot" {
date {
match => [ "time", "yyyy-MM-dd HH:mm:ss" ]
remove_field => ["time"]
remove_field => ["timestamp"]
}
mutate {
rename => {
"[Address][IP]" => "src_ip"
"[Address][Port]" => "src_port"
"[Address][Zone]" => "zone"
"AETitle" => "aetitle"
"Command" => "input"
"Files" => "files"
"Identifier" => "identifier"
"Matches" => "matches"
"Status" => "session"
"Version" => "version"
}
}
if [Address] {
mutate {
remove_field => "[Address]"
}
}
}
# ElasticPot
if [type] == "ElasticPot" {
date {

Binary file not shown.

Binary file not shown.