mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 20:42:11 +00:00
prevent status field from being indexed as string
This commit is contained in:
parent
7255a3dbe0
commit
d19d3823f6
1 changed files with 6 additions and 1 deletions
7
docker/elk/logstash/dist/logstash.conf
vendored
7
docker/elk/logstash/dist/logstash.conf
vendored
|
@ -365,7 +365,7 @@ if "_grokparsefailure" in [tags] { drop {} }
|
|||
}
|
||||
}
|
||||
|
||||
# In some rare conditions dest_port, src_port is indexed as string, forcing integer for now
|
||||
# In some rare conditions dest_port, src_port, status are indexed as string, forcing integer for now
|
||||
if [dest_port] {
|
||||
mutate {
|
||||
convert => { "dest_port" => "integer" }
|
||||
|
@ -376,6 +376,11 @@ if "_grokparsefailure" in [tags] { drop {} }
|
|||
convert => { "src_port" => "integer" }
|
||||
}
|
||||
}
|
||||
if [status] {
|
||||
mutate {
|
||||
convert => { "status" => "integer" }
|
||||
}
|
||||
}
|
||||
|
||||
# Add T-Pot hostname and external IP
|
||||
if [type] == "Ciscoasa" or [type] == "ConPot" or [type] == "Cowrie" or [type] == "Dionaea" or [type] == "ElasticPot" or [type] == "eMobility" or [type] == "Glastopf" or [type] == "Honeytrap" or [type] == "Heralding" or [type] == "Mailoney" or [type] == "Rdpy" or [type] == "Suricata" or [type] == "Tanner" or [type] == "Vnclowpot" {
|
||||
|
|
Loading…
Reference in a new issue