filter f_synoxfer {
program("^FtpFileTransfer$") or
program("^TFtpFileTransfer$") or
program("^FileStation$") or
program("^Webdav$") or
program("^WinFileService$") or
program("^MacFileService$");
};
filter f_sys_conn_xfer { filter(f_synosys) or filter(f_synoxfer); };
rewrite r_syno_escape_double_quote { subst("\x22", "", value("MESSAGE"), flags("global")); };
rewrite r_syno_escape_backslash { subst("\\\\", "", value("MESSAGE"), flags("global")); };
filter f_syno_keyword_1 { message("Stichwort 1 von 3 Eingabefeld"); };
filter f_syno_keyword_2 { message("Stichwort 2 von 3 Eingabefeld"); };
filter f_syno_keyword_3 { message("Stichwort 3 von 3 Eingabefeld"); };
destination d_syno_keyword_notification_1 {
pipe("/tmp/syslog_recv.fifo"
template("{
\"hostname\": \"$HOST\",
\"command\": \"NTF\",
\"ntf_type\": \"keyword\",
\"keyword\": \"Stichwort 1 von 3 Eingabefeld\",
\"content\": \"$MSGONLY\"
}")
log_fifo_size(50000)
persist-name("syno_keyword_notification_1")
);
};
destination d_syno_keyword_notification_2 {
pipe("/tmp/syslog_recv.fifo"
template("{
\"hostname\": \"$HOST\",
\"command\": \"NTF\",
\"ntf_type\": \"keyword\",
\"keyword\": \"Stichwort 2 von 3 Eingabefeld\",
\"content\": \"$MSGONLY\"
}")
log_fifo_size(50000)
persist-name("syno_keyword_notification_2")
);
};
destination d_syno_keyword_notification_3 {
pipe("/tmp/syslog_recv.fifo"
template("{
\"hostname\": \"$HOST\",
\"command\": \"NTF\",
\"ntf_type\": \"keyword\",
\"keyword\": \"Stichwort 3 von 3 Eingabefeld\",
\"content\": \"$MSGONLY\"
}")
log_fifo_size(50000)
persist-name("syno_keyword_notification_3")
);
};
log { source(s_syno_syslog); filter(f_syno_keyword_1); filter(f_sys_conn_xfer); rewrite(r_syno_escape_double_quote); rewrite(r_syno_escape_backslash); destination(d_syno_keyword_notification_1); };
log { source(s_syno_syslog); filter(f_syno_keyword_2); filter(f_sys_conn_xfer); rewrite(r_syno_escape_double_quote); rewrite(r_syno_escape_backslash); destination(d_syno_keyword_notification_2); };
log { source(s_syno_syslog); filter(f_syno_keyword_3); filter(f_sys_conn_xfer); rewrite(r_syno_escape_double_quote); rewrite(r_syno_escape_backslash); destination(d_syno_keyword_notification_3); };