eve: Log tenant_id for all eve-json messages

pull/5693/head
Justin Ossevoort 6 years ago committed by Victor Julien
parent 660b68a083
commit 320de5f43d

@ -215,3 +215,10 @@ unregister-tenant-handler <tenant id> vlan <vlan id>
The registration of tenant and tenant handlers can be done on a
running engine.
Eve JSON output
---------------
When multi-tenant support is configured and the detect engine is active then
all EVE-types that report based on flows will also report the corresponding
``tenant_id`` for events matching a tenant configuration.

@ -501,5 +501,12 @@ YAML::
# Seed value for the ID output. Valid values are 0-65535.
community-id-seed: 0
Multi Tenancy
-------------
Suricata can be configured to support multiple tenants with different detection
engine configurations. When these tenants are configured and the detection
engine is running then all EVE logging will also report the ``tenant_id`` field
for traffic matching a specific tenant.
.. _deprecation policy: https://suricata-ids.org/about/deprecation-policy/

@ -453,6 +453,9 @@ void EveAddCommonOptions(const OutputJsonCommonSettings *cfg,
if (cfg->include_community_id && f != NULL) {
CreateEveCommunityFlowId(js, f, cfg->community_id_seed);
}
if (f != NULL && f->tenant_id > 0) {
jb_set_uint(js, "tenant_id", f->tenant_id);
}
}
/**

Loading…
Cancel
Save