]> git.ipfire.org Git - thirdparty/suricata.git/commit
json: use top-level sensor-name if provided. 1860/head
authorJason Ish <ish@unx.ca>
Thu, 11 Feb 2016 20:45:23 +0000 (14:45 -0600)
committerJason Ish <ish@unx.ca>
Thu, 18 Feb 2016 04:56:17 +0000 (22:56 -0600)
commit3d2834a232df34af3edbb2c4e8be3eb23e9ac6f7
tree40d5ad57cea6a483d7c11e8a4ec9c872a7691537
parent5f3972850996873fed821bb53368d57f59ab3812
json: use top-level sensor-name if provided.

Currently the default configuration file contains a "sensor-name"
at the root of the configuration file, however, eve-log will only
use it if its specified under eve-log.

Now we will look for it at the eve-log, if present we'll use it
but log a deprecation warning, if its not present we'll look
for sensor-name at the root of the configuration.
src/output-json.c
src/util-error.c
src/util-error.h