Skip to content

Instantly share code, notes, and snippets.

@alicansaykal
alicansaykal / VPCFlow
Created March 9, 2022 06:56
AWS Flow Log - Logstash input / Grok Filter
else if [type] == "VPCFlow" {
grok {
match => { "message" => ["%{NUMBER:version:int} %{NOTSPACE:account-id} %{NOTSPACE:interface-id} %{NOTSPACE:srcaddr} %{NOTSPACE:destinationAddress} %{NOTSPACE:sourcePort:int} %{NOTSPACE:destinationPort:int} %{NOTSPACE:protocol:int} %{NOTSPACE:packets:int} %{NOTSPACE:bytes:int} %{NUMBER:startTime:int} %{NUMBER:endTime:int} %{NOTSPACE:action} %{NOTSPACE:logStatus}"] }
remove_field => "message"
}
}
}
# Version 2