mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tweaking
cleanup index-pattern add dicompot log to logstash
This commit is contained in:
35
docker/elk/logstash/dist/logstash.conf
vendored
35
docker/elk/logstash/dist/logstash.conf
vendored
@ -64,6 +64,13 @@ input {
|
|||||||
type => "Dionaea"
|
type => "Dionaea"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Dicompot
|
||||||
|
file {
|
||||||
|
path => ["/data/dicompot/log/dicompot.log"]
|
||||||
|
codec => json
|
||||||
|
type => "Dicompot"
|
||||||
|
}
|
||||||
|
|
||||||
# ElasticPot
|
# ElasticPot
|
||||||
file {
|
file {
|
||||||
path => ["/data/elasticpot/log/elasticpot.json"]
|
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
|
# ElasticPot
|
||||||
if [type] == "ElasticPot" {
|
if [type] == "ElasticPot" {
|
||||||
date {
|
date {
|
||||||
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user