By using ``custom`` it is possible to select which TLS fields to log.
+Drops
+~~~~~
+
+Drops are event types logged when the engine drops a packet.
+
+Config::
+
+ - drop:
+ alerts: yes # log alerts that caused drops
+ flows: all # start or all: 'start' logs only a single drop
+ # per flow direction. All logs each dropped pkt.
+ # Enable logging the final action taken on a packet by the engine
+ # (will show more information in case of a drop caused by 'reject')
+ verdict: yes
+
+
Date modifiers in filename
~~~~~~~~~~~~~~~~~~~~~~~~~~
},
"reason": {
"type": "string"
+ },
+ "verdict": {
+ "$ref": "#/$defs/verdict_type"
}
},
"additionalProperties": false
#define MODULE_NAME "JsonDropLog"
-#define LOG_DROP_ALERTS 1
+#define LOG_DROP_ALERTS BIT_U8(1)
+#define LOG_DROP_VERDICT BIT_U8(2)
typedef struct JsonDropOutputCtx_ {
uint8_t flags;
/* Close drop. */
jb_close(js);
+ if (aft->drop_ctx->flags & LOG_DROP_VERDICT) {
+ EveAddVerdict(js, p);
+ }
+
if (aft->drop_ctx->flags & LOG_DROP_ALERTS) {
int logged = 0;
int i;
const char *extended = ConfNodeLookupChildValue(conf, "alerts");
if (extended != NULL) {
if (ConfValIsTrue(extended)) {
- drop_ctx->flags = LOG_DROP_ALERTS;
+ drop_ctx->flags |= LOG_DROP_ALERTS;
}
}
extended = ConfNodeLookupChildValue(conf, "flows");
"'flow' are 'start' and 'all'");
}
}
+ extended = ConfNodeLookupChildValue(conf, "verdict");
+ if (extended != NULL) {
+ if (ConfValIsTrue(extended)) {
+ drop_ctx->flags |= LOG_DROP_VERDICT;
+ }
+ }
}
drop_ctx->eve_ctx = ajt;
# alerts: yes # log alerts that caused drops
# flows: all # start or all: 'start' logs only a single drop
# # per flow direction. All logs each dropped pkt.
+ # Enable logging the final action taken on a packet by the engine
+ # (will show more information in case of a drop caused by 'reject')
+ # verdict: yes
- smtp:
#extended: yes # enable this for extended logging information
# this includes: bcc, message-id, subject, x_mailer, user-agent