pub fn detect_grok_for_a_list_of_string(&self, strings: &Vec<String>) -> Option<String> {
        let mut best_match = None;
        let mut best_match_score = 0;
        for (pattern_name, grok_pattern, compiled_patterns) in self.compiled_patterns.iter() {
            let current_score =
                self.pattern_score_against_string_vector(pattern_name, compiled_patterns, strings);
            if current_score > best_match_score {
                best_match_score = current_score;
                best_match = Some(grok_pattern.to_owned());
                // println!(
                //     "[New Match score] {:?} => {} => {:?}",
                //     strings, best_match_score, pattern_name
                // );
            }
        }
        best_match
    }
/// takes as input a list of strings and detect the best base GROK pattern for it
takes as input a list of strings and detect the best base GROK pattern for it
takes as input a list of strings and detect the best base GROK pattern for it
pub fn detect_grok_for_a_list_of_string(&self, strings: &Vec<String>) -> Option<String> {
        let mut best_match = None;
        let mut best_match_score = 0;
        for (pattern_name, grok_pattern, compiled_patterns) in self.compiled_patterns.iter() {
            let current_score =
                self.pattern_score_against_string_vector(pattern_name, compiled_patterns, strings);
            if current_score > best_match_score {
                best_match_score = current_score;
                best_match = Some(grok_pattern.to_owned());
                // println!(
                //     "[New Match score] {:?} => {} => {:?}",
                //     strings, best_match_score, pattern_name
                // );
            }
        }
        best_match
    }
pub fn detect_grok_for_a_list_of_string ( & self , strings : & Vec < String > ) -> Option < String > { let mut best_match = None ; let mut best_match_score = 0 ; for ( pattern_name , grok_pattern , compiled_patterns ) in self . compiled_patterns . iter ( ) { let current_score = self . pattern_score_against_string_vector ( pattern_name , compiled_patterns , strings ) ; if current_score > best_match_score { best_match_score = current_score ; best_match = Some ( grok_pattern . to_owned ( ) ) ; // println!( //     "[New Match score] {:?} => {} => {:?}", //     strings, best_match_score, pattern_name // ); } } best_match }
takes as input a list of strings and detect the best base GROK pattern for it
takes as input a list of strings and detect the best base GROK pattern for it
&self
strings
&Vec<String>
&self
strings
&Vec<String>