len(results) == 3 "2.2.2.2" in results[0].Overflow.GetSources() results[0].Overflow.Sources["2.2.2.2"].IP == "2.2.2.2" results[0].Overflow.Sources["2.2.2.2"].Range == "" results[0].Overflow.Sources["2.2.2.2"].GetScope() == "Ip" results[0].Overflow.Sources["2.2.2.2"].GetValue() == "2.2.2.2" results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "dovecot-spam.log" results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" results[0].Overflow.Alert.Events[0].GetMeta("dovecot_login_result") == "auth_failed" results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "dovecot_logs" results[0].Overflow.Alert.Events[0].GetMeta("machine") == "mail" results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "2.2.2.2" results[0].Overflow.Alert.Events[0].GetMeta("timestamp")[4:] == "-04-29T15:54:18Z" results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "dovecot-spam.log" results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file" results[0].Overflow.Alert.Events[1].GetMeta("dovecot_login_result") == "auth_failed" results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "dovecot_logs" results[0].Overflow.Alert.Events[1].GetMeta("machine") == "mail" results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "2.2.2.2" results[0].Overflow.Alert.Events[1].GetMeta("timestamp")[4:] == "-04-29T15:54:19Z" results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "dovecot-spam.log" results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file" results[0].Overflow.Alert.Events[2].GetMeta("dovecot_login_result") == "auth_failed" results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "dovecot_logs" results[0].Overflow.Alert.Events[2].GetMeta("machine") == "mail" results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "2.2.2.2" results[0].Overflow.Alert.Events[2].GetMeta("timestamp")[4:] == "-04-29T15:54:20Z" results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "dovecot-spam.log" results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file" results[0].Overflow.Alert.Events[3].GetMeta("dovecot_login_result") == "auth_failed" results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "dovecot_logs" results[0].Overflow.Alert.Events[3].GetMeta("machine") == "mail" results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "2.2.2.2" results[0].Overflow.Alert.Events[3].GetMeta("timestamp")[4:] == "-04-29T15:54:21Z" results[0].Overflow.Alert.GetScenario() == "crowdsecurity/dovecot-spam" results[0].Overflow.Alert.Remediation == true results[0].Overflow.Alert.GetEventsCount() == 4 "172.17.0.1" in results[1].Overflow.GetSources() results[1].Overflow.Sources["172.17.0.1"].IP == "172.17.0.1" results[1].Overflow.Sources["172.17.0.1"].Range == "" results[1].Overflow.Sources["172.17.0.1"].GetScope() == "Ip" results[1].Overflow.Sources["172.17.0.1"].GetValue() == "172.17.0.1" results[1].Overflow.Alert.Events[0].GetMeta("datasource_path") == "dovecot-spam.log" results[1].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" results[1].Overflow.Alert.Events[0].GetMeta("dovecot_login_result") == "auth_failed" results[1].Overflow.Alert.Events[0].GetMeta("log_type") == "dovecot_logs" results[1].Overflow.Alert.Events[0].GetMeta("machine") == "canyon" results[1].Overflow.Alert.Events[0].GetMeta("source_ip") == "172.17.0.1" results[1].Overflow.Alert.Events[0].GetMeta("timestamp")[4:] == "-10-12T15:44:47Z" results[1].Overflow.Alert.Events[1].GetMeta("datasource_path") == "dovecot-spam.log" results[1].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file" results[1].Overflow.Alert.Events[1].GetMeta("dovecot_login_result") == "auth_failed" results[1].Overflow.Alert.Events[1].GetMeta("log_type") == "dovecot_logs" results[1].Overflow.Alert.Events[1].GetMeta("machine") == "canyon" results[1].Overflow.Alert.Events[1].GetMeta("source_ip") == "172.17.0.1" results[1].Overflow.Alert.Events[1].GetMeta("timestamp")[4:] == "-10-12T15:46:28Z" results[1].Overflow.Alert.Events[2].GetMeta("datasource_path") == "dovecot-spam.log" results[1].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file" results[1].Overflow.Alert.Events[2].GetMeta("dovecot_login_result") == "auth_failed" results[1].Overflow.Alert.Events[2].GetMeta("log_type") == "dovecot_logs" results[1].Overflow.Alert.Events[2].GetMeta("machine") == "canyon" results[1].Overflow.Alert.Events[2].GetMeta("source_ip") == "172.17.0.1" results[1].Overflow.Alert.Events[2].GetMeta("timestamp")[4:] == "-10-12T15:46:32Z" results[1].Overflow.Alert.Events[3].GetMeta("datasource_path") == "dovecot-spam.log" results[1].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file" results[1].Overflow.Alert.Events[3].GetMeta("dovecot_login_result") == "auth_failed" results[1].Overflow.Alert.Events[3].GetMeta("log_type") == "dovecot_logs" results[1].Overflow.Alert.Events[3].GetMeta("machine") == "canyon" results[1].Overflow.Alert.Events[3].GetMeta("source_ip") == "172.17.0.1" results[1].Overflow.Alert.Events[3].GetMeta("timestamp")[4:] == "-10-12T15:46:33Z" results[1].Overflow.Alert.GetScenario() == "crowdsecurity/dovecot-spam" results[1].Overflow.Alert.Remediation == true results[1].Overflow.Alert.GetEventsCount() == 4 "1.1.1.1" in results[2].Overflow.GetSources() results[2].Overflow.Sources["1.1.1.1"].IP == "1.1.1.1" results[2].Overflow.Sources["1.1.1.1"].Range == "" results[2].Overflow.Sources["1.1.1.1"].GetScope() == "Ip" results[2].Overflow.Sources["1.1.1.1"].GetValue() == "1.1.1.1" results[2].Overflow.Alert.Events[0].GetMeta("datasource_path") == "dovecot-spam.log" results[2].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" results[2].Overflow.Alert.Events[0].GetMeta("dovecot_login_result") == "auth_failed" results[2].Overflow.Alert.Events[0].GetMeta("log_type") == "dovecot_logs" results[2].Overflow.Alert.Events[0].GetMeta("machine") == "canyon" results[2].Overflow.Alert.Events[0].GetMeta("source_ip") == "1.1.1.1" results[2].Overflow.Alert.Events[0].GetMeta("timestamp")[4:] == "-10-12T15:44:43Z" results[2].Overflow.Alert.Events[1].GetMeta("datasource_path") == "dovecot-spam.log" results[2].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file" results[2].Overflow.Alert.Events[1].GetMeta("dovecot_login_result") == "auth_failed" results[2].Overflow.Alert.Events[1].GetMeta("log_type") == "dovecot_logs" results[2].Overflow.Alert.Events[1].GetMeta("machine") == "canyon" results[2].Overflow.Alert.Events[1].GetMeta("source_ip") == "1.1.1.1" results[2].Overflow.Alert.Events[1].GetMeta("timestamp")[4:] == "-10-12T15:44:44Z" results[2].Overflow.Alert.Events[2].GetMeta("datasource_path") == "dovecot-spam.log" results[2].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file" results[2].Overflow.Alert.Events[2].GetMeta("dovecot_login_result") == "auth_failed" results[2].Overflow.Alert.Events[2].GetMeta("log_type") == "dovecot_logs" results[2].Overflow.Alert.Events[2].GetMeta("machine") == "canyon" results[2].Overflow.Alert.Events[2].GetMeta("source_ip") == "1.1.1.1" results[2].Overflow.Alert.Events[2].GetMeta("timestamp")[4:] == "-10-12T15:44:45Z" results[2].Overflow.Alert.Events[3].GetMeta("datasource_path") == "dovecot-spam.log" results[2].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file" results[2].Overflow.Alert.Events[3].GetMeta("dovecot_login_result") == "auth_failed" results[2].Overflow.Alert.Events[3].GetMeta("log_type") == "dovecot_logs" results[2].Overflow.Alert.Events[3].GetMeta("machine") == "canyon" results[2].Overflow.Alert.Events[3].GetMeta("source_ip") == "1.1.1.1" results[2].Overflow.Alert.Events[3].GetMeta("timestamp")[4:] == "-10-12T15:44:46Z" results[2].Overflow.Alert.GetScenario() == "crowdsecurity/dovecot-spam" results[2].Overflow.Alert.Remediation == true results[2].Overflow.Alert.GetEventsCount() == 4