Crate logcheck_fluent_bit_filter
Source - cli
- regex_conversion
- rules
- LogEntry ๐
- Log entry structure matching the Python LogEntry model
- LOGCHECK_DB ๐
- Initialize logcheck database with embedded rules
In production, this would load from /etc/logcheck/ or similar
- apply_logcheck_rules ๐
- Apply logcheck rules to a log entry using the modern rule database
- create_filtered_entry ๐
- Create a filtered log entry with logcheck metadata
- logcheck_demo_json
- Test/demo function that adds simple metadata
- logcheck_filter_json
- Main logcheck filter function for JSON format
Returns: Modified JSON record with logcheck metadata, or NULL to drop the record
- parse_log_entry ๐
- Parse input record as JSON and extract log entry
- to_c_string ๐
- Convert Rust string to leaked C string for Fluent-Bit