Debian Codegraph @

hub1/.tests/postscreen-logs/parser.assert

raw
1 len(results["s01-parse"]["crowdsecurity/postscreen-logs"]) == 1
2 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Success == true
3 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["message_attempt"] == "EHLO 127.0.0.1\\r\\n"
4 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["logsource"] == "syslog"
5 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["pid"] == "22244"
6 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["port"] == "41323"
7 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["time_attempt"] == "2.6"
8 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["timestamp"] == "Oct 25 04:24:59"
9 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["program"] == "postfix/postscreen"
10 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["remote_addr"] == "177.154.236.182"
11 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["count"] == "16"
12 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["message"] == "PREGREET 16 after 2.6 from [177.154.236.182]:41323: EHLO 127.0.0.1\\r\\n"
13 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Parsed["pregreet"] == "PREGREET"
14 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Meta["datasource_path"] == "postscreen-logs.log"
15 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Meta["datasource_type"] == "file"
16 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Meta["pregreet"] == "PREGREET"
17 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Meta["service"] == "postscreen"
18 results["s01-parse"]["crowdsecurity/postscreen-logs"][0].Evt.Meta["source_ip"] == "177.154.236.182"
19