zeek/scripts/base
Arne Welzel 0d925e935e logging: Dedicated log flush timer
Log flushing is currently triggered based on the threading heartbeat timer
of WriterBackends and the hard-coded WRITE_BUFFER_SIZE 1000.

This change introduces a separate timer that is managed by the logger
manager instead of piggy-backing on the heartbeat timer, as well as a
const &redef for the buffer size.

This allows to modify the log flush frequency and batch size independently
of the threading heartbeat interval. Later, this will allow to re-use the
buffering and flushing logic of writer frontends for non-Broker cluster
backends, too.

One change here is that even frontends that do not have a backend will
be flushed regularly. This is wanted for non-Broker backends and should be
very cheap. Possibly, Broker can piggy back on this timer down the road, too,
rather than using its own script-level timer (see Broker::log_flush()).
2024-09-27 15:30:35 +02:00
..
files Copy timestamp from file object 2024-05-17 15:03:06 +02:00
frameworks Spicy: Register well-known ports through an event handler. 2024-08-22 10:24:55 +02:00
misc Parse and store localversion string 2024-04-17 14:17:22 -07:00
packet-protocols gtpv1: Replace connection_state_remove() with RemovalHook 2024-09-17 18:15:09 +02:00
protocols postgresql: Initial parser implementation 2024-09-06 16:10:48 +02:00
utils Clarify membership in the Site::private_address_space prefix list. [skip ci] 2024-05-04 11:21:26 -07:00
init-bare.zeek logging: Dedicated log flush timer 2024-09-27 15:30:35 +02:00
init-default.zeek postgresql: Initial parser implementation 2024-09-06 16:10:48 +02:00
init-frameworks-and-bifs.zeek Add necessary script-land changes 2024-05-31 13:30:31 -07:00
init-supervisor.zeek Establish a separate init script when using the supervisor 2021-07-08 13:12:53 -07:00