mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00

The broxygen-generated files now live in the git repo, have tests that check that they are up-to-date, and a script to re-generate them on-demand.
65 lines
2 KiB
ReStructuredText
65 lines
2 KiB
ReStructuredText
:tocdepth: 3
|
|
|
|
policy/integration/barnyard2/main.bro
|
|
=====================================
|
|
.. bro:namespace:: Barnyard2
|
|
|
|
This script lets Barnyard2 integrate with Bro. It receives alerts from
|
|
Barnyard2 and logs them. In the future it will do more correlation
|
|
and derive new notices from the alerts.
|
|
|
|
:Namespace: Barnyard2
|
|
:Imports: :doc:`policy/integration/barnyard2/types.bro </scripts/policy/integration/barnyard2/types.bro>`
|
|
|
|
Summary
|
|
~~~~~~~
|
|
Types
|
|
#####
|
|
=============================================== =
|
|
:bro:type:`Barnyard2::Info`: :bro:type:`record`
|
|
=============================================== =
|
|
|
|
Redefinitions
|
|
#############
|
|
===================================== =
|
|
:bro:type:`Log::ID`: :bro:type:`enum`
|
|
===================================== =
|
|
|
|
Functions
|
|
#########
|
|
================================================== =====================================================================
|
|
:bro:id:`Barnyard2::pid2cid`: :bro:type:`function` This can convert a Barnyard :bro:type:`Barnyard2::PacketID` value to
|
|
a :bro:type:`conn_id` value in the case that you might need to index
|
|
into an existing data structure elsewhere within Bro.
|
|
================================================== =====================================================================
|
|
|
|
|
|
Detailed Interface
|
|
~~~~~~~~~~~~~~~~~~
|
|
Types
|
|
#####
|
|
.. bro:type:: Barnyard2::Info
|
|
|
|
:Type: :bro:type:`record`
|
|
|
|
ts: :bro:type:`time` :bro:attr:`&log`
|
|
Timestamp of the alert.
|
|
|
|
pid: :bro:type:`Barnyard2::PacketID` :bro:attr:`&log`
|
|
Associated packet ID.
|
|
|
|
alert: :bro:type:`Barnyard2::AlertData` :bro:attr:`&log`
|
|
Associated alert data.
|
|
|
|
|
|
Functions
|
|
#########
|
|
.. bro:id:: Barnyard2::pid2cid
|
|
|
|
:Type: :bro:type:`function` (p: :bro:type:`Barnyard2::PacketID`) : :bro:type:`conn_id`
|
|
|
|
This can convert a Barnyard :bro:type:`Barnyard2::PacketID` value to
|
|
a :bro:type:`conn_id` value in the case that you might need to index
|
|
into an existing data structure elsewhere within Bro.
|
|
|
|
|