#[non_exhaustive]pub struct LogsLookupProcessor {
pub default_lookup: Option<String>,
pub is_enabled: Option<bool>,
pub lookup_table: Vec<String>,
pub name: Option<String>,
pub source: String,
pub target: String,
pub type_: LogsLookupProcessorType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Use the Lookup Processor to define a mapping between a log attribute and a human readable value saved in the processors mapping table. For example, you can use the Lookup Processor to map an internal service ID into a human readable service name. Alternatively, you could also use it to check if the MAC address that just attempted to connect to the production environment belongs to your list of stolen machines.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.default_lookup: Option<String>
Value to set the target attribute if the source value is not found in the list.
is_enabled: Option<bool>
Whether or not the processor is enabled.
lookup_table: Vec<String>
Mapping table of values for the source attribute and their associated target attribute values,
formatted as ["source_key1,target_value1", "source_key2,target_value2"]
name: Option<String>
Name of the processor.
source: String
Source attribute used to perform the lookup.
target: String
Name of the attribute that contains the corresponding value in the mapping list
or the default_lookup
if not found in the mapping list.
type_: LogsLookupProcessorType
Type of logs lookup processor.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl LogsLookupProcessor
impl LogsLookupProcessor
pub fn new( lookup_table: Vec<String>, source: String, target: String, type_: LogsLookupProcessorType, ) -> LogsLookupProcessor
pub fn default_lookup(self, value: String) -> Self
pub fn is_enabled(self, value: bool) -> Self
pub fn name(self, value: String) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for LogsLookupProcessor
impl Clone for LogsLookupProcessor
Source§fn clone(&self) -> LogsLookupProcessor
fn clone(&self) -> LogsLookupProcessor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more