]> git.ipfire.org Git - people/ms/suricata.git/commit
output-json: add sensor-name config variable
authorEric Leblond <eric@regit.org>
Sat, 23 May 2015 14:59:16 +0000 (16:59 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 22 Oct 2015 08:01:05 +0000 (10:01 +0200)
commit60ea49c777ad839fc6306f5731fd12aa98b0f011
tree90d1591c4e46eaabc6916390c0198c88dc70b080
parent9286360f866b723c214d415e3314c76422b15bd9
output-json: add sensor-name config variable

When using redis output, we are loosing the host key (added by
logstash or logstash-forwarder) and we can't find anymore what
Suricata did cause the alert.

This patch is adding this key during message generation using the
'sensor-name' variable or the hostname is 'sensor-name' is not
defined.
src/output-json.c
src/util-logopenfile.h
suricata.yaml.in