pub fn filter_patterns(mut self, filter_patterns: Vec<&str>) -> Self {
        self.filter_patterns_str = filter_patterns
            .iter()
            .map(|s| String::from(*s))
            .collect::<Vec<String>>();
        self
    }
/// Token filtering and name replacement for tokens
/// If you set this, be sure to call `build_patterns` so that they can be compiled before use.
/// # Examples:
/// ```
/// let mut g = grok::Grok::with_patterns();
/// let filter_patterns = vec![
///         "blk_(|-)[0-9]+",     //blockid
///        "%{IPV4:ip_address}", //IP
///         "%{NUMBER:number}",   //Num
///     ];
/// let drain_tree = drain_rs::DrainTree::new().filter_patterns(filter_patterns).build_patterns(&mut g);
/// ```
Token filtering and name replacement for tokens
If you set this, be sure to call `build_patterns` so that they can be compiled before use.
Token filtering and name replacement for tokens If you set this be sure to call ` build_patterns ` so that they can be compiled before use .
pub fn filter_patterns(mut self, filter_patterns: Vec<&str>) -> Self {
        self.filter_patterns_str = filter_patterns
            .iter()
            .map(|s| String::from(*s))
            .collect::<Vec<String>>();
        self
    }
pub fn filter_patterns ( mut self , filter_patterns : Vec < & str > ) -> Self { self . filter_patterns_str = filter_patterns . iter ( ) . map ( | s | String :: from ( * s ) ) . collect :: < Vec < String > > ( ) ; self }
Token filtering and name replacement for tokens
If you set this, be sure to call `build_patterns` so that they can be compiled before use.
Token filtering and name replacement for tokens If you set this be sure to call ` build_patterns ` so that they can be compiled before use .
mut self
filter_patterns
Vec<&str>
mut self
filter_patterns
Vec<&str>
examples:
```
let mut g = grok::Grok::with_patterns();
let filter_patterns = vec![
"blk_(|-)[0-9]+",     //blockid
"%{IPV4:ip_address}", //IP
"%{NUMBER:number}",   //Num
];
let drain_tree = drain_rs::DrainTree::new().filter_patterns(filter_patterns).build_patterns(&mut g);
```
` ` ` let mut g = grok :: Grok :: with_patterns () ; let filter_patterns = vec! [ " blk_ ( | - ) [ 0 - 9 ] + " // blockid " % { IPV4 : ip_address } " // IP " % { NUMBER : number } " // Num ] ; let drain_tree = drain_rs :: DrainTree :: new () . filter_patterns ( filter_patterns ) . build_patterns ( &mut g ) ; ` ` `