1
Я не могу заставить фильтр KV работать в logstash и не могу понять, что я делаю неправильно. Любая помощь будет в значительной степени будут оценены :)Logstash Grok и KV
Конфигурация
filter {
if [type] == "syslog" and [message] =~ "SFDC-IT"{
grok {
match => { "message" => "%{DATE:date} %{TIME:time}%{GREEDYDATA:sfdc_message}"}
}
kv {
source => "sfdc_message"
include_keys => ["Application Information","Process ID","Application Name","Inbound Source Address","Source Port","Destination Address","Destination Port","Protocol","Filter Run-Time ID","Layer Name","Layer Run-Time ID"]
field_split => " "
value_split => ":"
target => "data"
remove_field => [ "sfdc_message" ]
}
}
}
Выход из rubydebug (я пытаюсь разделить sfdc_message используя Kv фильтр)
"message" => "<133>RealSource: \"dc-wp1\" Environment: \"SFDC-IT\" UUID: \"\" RawMsg: EvntSLog: Security`2015-12-12 23:52:45`Microsoft-Windows-Security-Auditing`Information`5156`Audit Success`[AUS]`N\\A`4`0x8020000000000000`12810`2147483647`The Windows Filtering Platform has permitted a connection. Application Information: Process ID: 876 Application Name: \\device\\harddiskvolume2\\windows\\system32\\svchost.exe Network Information: Direction: Inbound Source Address: 10.1.34.2 Source Port: 49153 Destination Address: 10.1.45.199 Destination Port: 50278 Protocol: 6 Filter Information: Filter Run-Time ID: 67090 Layer Name: Receive/Accept Layer Run-Time ID: 44",
"@version" => "1",
"@timestamp" => "2015-12-13T00:01:37.061Z",
"type" => "syslog",
"host" => "10.1.45.199",
"date" => "2015-12-12",
"time" => "23:52:45",
"sfdc_message" => "`Microsoft-Windows-Security-Auditing`Information`5156`Audit Success`[AUS]`N\\A`4`0x8020000000000000`12810`2147483647`The Windows Filtering Platform has permitted a connection. Application Information: Process ID: 876 Application Name: \\device\\harddiskvolume2\\windows\\system32\\svchost.exe Network Information: Direction: Inbound Source Address: 10.1.34.2 Source Port: 49153 Destination Address: 10.1.45.199 Destination Port: 50278 Protocol: 6 Filter Information: Filter Run-Time ID: 67090 Layer Name: Receive/Accept Layer Run-Time ID: 44"