mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +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.
55 lines
2.1 KiB
ReStructuredText
55 lines
2.1 KiB
ReStructuredText
:tocdepth: 3
|
|
|
|
policy/misc/trim-trace-file.bro
|
|
===============================
|
|
.. bro:namespace:: TrimTraceFile
|
|
|
|
Deletes the ``-w`` tracefile at regular intervals and starts a new file
|
|
from scratch.
|
|
|
|
:Namespace: TrimTraceFile
|
|
|
|
Summary
|
|
~~~~~~~
|
|
Redefinable Options
|
|
###################
|
|
=============================================================================== ================================================================
|
|
:bro:id:`TrimTraceFile::trim_interval`: :bro:type:`interval` :bro:attr:`&redef` The interval between times that the output tracefile is rotated.
|
|
=============================================================================== ================================================================
|
|
|
|
Events
|
|
######
|
|
============================================== ===================================================================
|
|
:bro:id:`TrimTraceFile::go`: :bro:type:`event` This event can be generated externally to this script if on-demand
|
|
tracefile rotation is required with the caveat that the script
|
|
doesn't currently attempt to get back on schedule automatically and
|
|
the next trim likely won't happen on the
|
|
:bro:id:`TrimTraceFile::trim_interval`.
|
|
============================================== ===================================================================
|
|
|
|
|
|
Detailed Interface
|
|
~~~~~~~~~~~~~~~~~~
|
|
Redefinable Options
|
|
###################
|
|
.. bro:id:: TrimTraceFile::trim_interval
|
|
|
|
:Type: :bro:type:`interval`
|
|
:Attributes: :bro:attr:`&redef`
|
|
:Default: ``10.0 mins``
|
|
|
|
The interval between times that the output tracefile is rotated.
|
|
|
|
Events
|
|
######
|
|
.. bro:id:: TrimTraceFile::go
|
|
|
|
:Type: :bro:type:`event` (first_trim: :bro:type:`bool`)
|
|
|
|
This event can be generated externally to this script if on-demand
|
|
tracefile rotation is required with the caveat that the script
|
|
doesn't currently attempt to get back on schedule automatically and
|
|
the next trim likely won't happen on the
|
|
:bro:id:`TrimTraceFile::trim_interval`.
|
|
|
|
|