prevent status field from being indexed as string

This commit is contained in:
Marco Ochse 2018-08-28 12:41:11 +02:00 committed by GitHub
parent 7255a3dbe0
commit d19d3823f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" {