mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Tweaking logs-to-elasticsearch.bro so that it doesn't do anything if
ES server is unset.
This commit is contained in:
parent
32590177a0
commit
4bdac985cb
2 changed files with 10 additions and 1 deletions
|
@ -19,6 +19,9 @@ export {
|
|||
|
||||
event bro_init() &priority=-5
|
||||
{
|
||||
if ( server_host == "" )
|
||||
return;
|
||||
|
||||
for ( stream_id in Log::active_streams )
|
||||
{
|
||||
if ( fmt("%s", stream_id) in excluded_log_ids ||
|
||||
|
|
6
testing/external/scripts/testing-setup.bro
vendored
6
testing/external/scripts/testing-setup.bro
vendored
|
@ -4,3 +4,9 @@
|
|||
# MDD5s can depend on libmagic output.
|
||||
redef SMTP::never_calc_md5 = T;
|
||||
@endif
|
||||
|
||||
@ifdef ( LogElasticSearch::server_host )
|
||||
# Set to empty so that logs-to-elasticsearch.bro doesn't try to setup
|
||||
#log forwarding to ES.
|
||||
redef LogElasticSearch::server_host = "";
|
||||
@endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue