pub enum SiemDestination {
Syslog {
host: String,
port: u16,
transport: String,
facility: SyslogFacility,
tag: String,
},
Http {
url: String,
method: String,
headers: HashMap<String, String>,
timeout: u64,
retry: RetryConfig,
},
Https {
url: String,
method: String,
headers: HashMap<String, String>,
timeout: u64,
retry: RetryConfig,
},
File {
path: String,
format: String,
rotation: Option<FileRotationConfig>,
},
Splunk {
url: String,
token: String,
index: Option<String>,
source_type: Option<String>,
},
Datadog {
api_key: String,
app_key: Option<String>,
site: String,
tags: Vec<String>,
},
Cloudwatch {
region: String,
log_group: String,
stream: String,
credentials: HashMap<String, String>,
},
Gcp {
project_id: String,
log_name: String,
credentials_path: String,
},
Azure {
workspace_id: String,
shared_key: String,
log_type: String,
},
}Expand description
SIEM destination configuration
Variants§
Syslog
Syslog destination
Fields
§
facility: SyslogFacilitySyslog facility
Http
HTTP/HTTPS webhook destination
Fields
§
retry: RetryConfigRetry configuration
Https
HTTPS webhook destination (alias for http with https URL)
Fields
§
retry: RetryConfigRetry configuration
File
File-based export destination
Fields
§
rotation: Option<FileRotationConfig>File rotation configuration
Splunk
Splunk HEC destination
Fields
Datadog
Datadog API destination
Fields
Additional tags
Cloudwatch
AWS CloudWatch Logs destination
Fields
Gcp
Google Cloud Logging destination
Fields
Azure
Azure Monitor Logs destination
Trait Implementations§
Source§impl Clone for SiemDestination
impl Clone for SiemDestination
Source§fn clone(&self) -> SiemDestination
fn clone(&self) -> SiemDestination
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SiemDestination
impl Debug for SiemDestination
Source§impl<'de> Deserialize<'de> for SiemDestination
impl<'de> Deserialize<'de> for SiemDestination
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SiemDestination
impl JsonSchema for SiemDestination
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SiemDestination
impl RefUnwindSafe for SiemDestination
impl Send for SiemDestination
impl Sync for SiemDestination
impl Unpin for SiemDestination
impl UnwindSafe for SiemDestination
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more