Skip to content
Permalink
Browse files

Make streams without a $path set still work.

Thanks to Jordi Ros-Giralt from Reservoir Labs for pointing this out and suggesting the change.
  • Loading branch information...
sethhall committed Feb 28, 2019
1 parent a2cddc6 commit e0be0c3aaad5c320d76df8191a86e2ad0387e150
Showing with 2 additions and 6 deletions.
  1. +2 −6 scripts/main.bro
@@ -74,12 +74,8 @@ event bro_init() &priority=-1000

if ( filt?$path )
filt$path = "json_streaming_" + filt$path;

if ( filt?$path_func )
{
# We just delete any path function to get rid of dynamic log names.
delete filt$path_func;
}
else if ( filt?$path_func )
filt$path = "json_streaming_" + filt$path_func(stream, "", []);

filt$writer = Log::WRITER_ASCII;
filt$postprocessor = rotate_logs;

0 comments on commit e0be0c3

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.