7 Commits

Author SHA1 Message Date
Vincent Bernat
cb92fc7199 outlet/flow: persist decoders' state
Currently, for NetFlow, persist data/options templates and options. This
should allow the outlet to restart without loosing any message.

Fix #2100
2025-11-18 21:13:51 +01:00
Vincent Bernat
61eb082db5 common/helpers: replace custom code for atomic file writing
Use github.com/google/renameio/v2 instead.
2025-11-18 08:44:51 +01:00
guangwu
98a9303ff9 fix: close cache file 2024-05-23 05:51:21 +02:00
Vincent Bernat
2467a3c136 inlet/metadata: fix versioning of metadata cache
Gob decoding is quite liberal and accepts anything that is not
conflicting as long as there is at least one field matching. That's not
what we want. To check we are decoding the right things, use a string
representation of zero values.
2024-04-12 22:44:50 +02:00
Vincent Bernat
9db516e424 build: don't use ioutil
This is deprecated.
2023-11-12 22:58:41 +01:00
Vincent Bernat
a912da7fa1 build: use gofumpt
Undecided if we need to use it. I think it's nice.
2023-02-11 10:03:45 +01:00
Vincent Bernat
577e27f7d4 inlet/snmp: move cache to helpers
We will reuse this implementation for classifiers too.
2023-02-01 09:11:11 +01:00