Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 183 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.9"
thiserror = "2"
chrono = { version = "0.4", default-features = false, features = ["std"] }
chrono = { version = "0.4", default-features = false, features = ["std", "clock"] }
base64 = "0.22"
serde_json = "1"
crossbeam-channel = "0.5"
Expand Down
14 changes: 10 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
//! ### Processing events with multithreading
//!
//! ```rust
//! use sigma_engine::{SigmaCollection, SigmaDocument, LogProcessor, LogEvent, LogSource};
//! use sigma_engine::{SigmaCollection, SigmaDocument, LogProcessor, LogEvent, LogSource, DetectionResult};
//! use std::collections::HashMap;
//!
//! let yaml = r#"
Expand Down Expand Up @@ -126,8 +126,11 @@
//! drop(event_tx); // Signal completion
//!
//! // Receive detections
//! if let Ok(detection) = detection_rx.recv() {
//! println!("Rule matched: {}", detection.rule.title);
//! if let Ok(result) = detection_rx.recv() {
//! match result {
//! DetectionResult::Rule(detection) => println!("Rule matched: {}", detection.rule.title),
//! DetectionResult::Correlation(cd) => println!("Correlation triggered: {}", cd.rule.title),
//! }
//! }
//! ```

Expand All @@ -143,7 +146,10 @@ pub use error::Error;
pub use pipeline::*;
pub use types::*;
pub use matcher::SigmaRuleMatcher;
pub use processor::{LogProcessor, Detection, LogEvent};
pub use processor::{
parse_timespan, CorrelationDetection, Detection, DetectionResult, LogEvent, LogProcessor,
ProcessorConfig,
};

// Re-export chrono's NaiveDate for date field access
pub use chrono::NaiveDate;
Expand Down
Loading
Loading