return TM_ECODE_OK;
SCMutexLock(&aft->file_ctx->fp_mutex);
- if (json_out == ALERT_FILE) {
+ if (json_out == ALERT_SYSLOG) {
+ syslog(alert_syslog_level, "%s", js_s);
+ } else if (json_out == ALERT_FILE) {
MemBufferWriteString(buffer, "%s\n", js_s);
(void)MemBufferPrintToFPAsString(buffer, aft->file_ctx->fp);
fflush(aft->file_ctx->fp);
- } else {
- syslog(alert_syslog_level, "%s", js_s);
}
*count += 1;
SCMutexUnlock(&aft->file_ctx->fp_mutex);
enabled: yes
type: file #file|syslog|unix_dgram|unix_stream
filename: eve.json
+ # the following are valid when type: syslog above
+ #identity: "suricata"
+ #facility: local5
+ #level: Info ## possible levels: Emergency, Alert, Critical,
+ ## Error, Warning, Notice, Info, Debug
types:
- alert
- http: