Rename all BRO-prefixed environment variables

For backward compatibility when reading values, we first check
the ZEEK-prefixed value, and if not set, then check the corresponding
BRO-prefixed value.
This commit is contained in:
Daniel Thayer 2019-05-21 21:40:21 -05:00
parent d6096b1618
commit 1a74516db1
105 changed files with 330 additions and 274 deletions

View file

@ -81,10 +81,14 @@ function default_rotation_postprocessor_func(info: Log::RotationInfo) : bool
{
# If the filename has a ".gz" extension, then keep it.
local gz = info$fname[-3:] == ".gz" ? ".gz" : "";
local bls = getenv("BRO_LOG_SUFFIX");
local bls = getenv("ZEEK_LOG_SUFFIX");
if ( bls == "" )
bls = "log";
{
bls = getenv("BRO_LOG_SUFFIX");
if ( bls == "" )
bls = "log";
}
# Move file to name including both opening and closing time.
local dst = fmt("%s.%s.%s%s", info$path,