mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
NEWS: Add HookPublishEvent() note
This commit is contained in:
parent
0bf3417d4c
commit
48d965f85c
1 changed files with 15 additions and 0 deletions
15
NEWS
15
NEWS
|
@ -14,6 +14,21 @@ Breaking Changes
|
||||||
New Functionality
|
New Functionality
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- A new plugin hook, ``HookPublishEvent()``, has been added for intercepting
|
||||||
|
publishing of Zeek events. This hook may be used for monitoring purposes,
|
||||||
|
modifying or rerouting remote events.
|
||||||
|
|
||||||
|
Plugins can implement and enable this hook by calling the following method
|
||||||
|
within their Configure() implementation.
|
||||||
|
|
||||||
|
EnableHook(HOOK_PUBLISH_EVENT)
|
||||||
|
|
||||||
|
The signature of ``HookPublishEvent()`` is as follows.
|
||||||
|
|
||||||
|
bool HookPublishEvent(zeek::cluster::Backend& backend,
|
||||||
|
const std::string& topic,
|
||||||
|
zeek::cluster::detail::Event& event);
|
||||||
|
|
||||||
Changed Functionality
|
Changed Functionality
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue