Hi,
I want to know only output a field called network.application when it contains the value ALPHA but I am getting an error that
Expected one of [ \t\r\n], "#", "{" at line 152, column 7 (byte 3941) after output {
if [network][application] == "ALPHA" {
codec
[FATAL] 2021-10-26 17:07:00.423 [LogStash::Runner] Logstash - Logstash stopped processing because of an error: (SystemExit) exit
output {
if [network][application] == "ALPHA" {
codec => cef {
reverse_mapping => true
delimiter => "\r\n"
fields => [
"start",
"end",
"cs1",
"cs2",
"cs3",
"cs4",
"src",
"act",
"deviceProduct",
"deviceVendor"
]
vendor => "TEST"
product => "ALPHa"
}
}
}
its obviously the way the syntax ist but I can't figure it out. I just want to convert any log to CEF that has the network.application = ALPHA
thx