| 1 |
len(results) == 4 |
| 2 |
len(results["s00-raw"]["crowdsecurity/non-syslog"]) == 2 |
| 3 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Success == true |
| 4 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Parsed["message"] == "2022/03/01 12:57:58 ...ers/web/auth/auth.go:200:SignInPost() [I] Failed authentication attempt for test from 1.1.1.1:39522: user does not exist [uid: 0, name: test, keyid: 0]" |
| 5 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Parsed["program"] == "gitea" |
| 6 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Meta["datasource_path"] == "gitea-logs.log" |
| 7 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Meta["datasource_type"] == "file" |
| 8 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Success == true |
| 9 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Parsed["message"] == "2022/03/01 12:57:59 ...ers/web/auth/auth.go:200:SignInPost() [I] Failed authentication attempt for [email protected] from 1.1.1.1:39522: user does not exist [uid: 1, name: test, keyid: 0]" |
| 10 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Parsed["program"] == "gitea" |
| 11 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Meta["datasource_path"] == "gitea-logs.log" |
| 12 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Meta["datasource_type"] == "file" |
| 13 |
len(results["s00-raw"]["crowdsecurity/syslog-logs"]) == 2 |
| 14 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Success == false |
| 15 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Success == false |
| 16 |
len(results["s01-parse"]["LePresidente/gitea-logs"]) == 2 |
| 17 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Success == true |
| 18 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Parsed["timestamp"] == "2022/03/01 12:57:58" |
| 19 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Parsed["username"] == "test" |
| 20 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Parsed["message"] == "2022/03/01 12:57:58 ...ers/web/auth/auth.go:200:SignInPost() [I] Failed authentication attempt for test from 1.1.1.1:39522: user does not exist [uid: 0, name: test, keyid: 0]" |
| 21 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Parsed["program"] == "gitea" |
| 22 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Parsed["remote_ip"] == "1.1.1.1" |
| 23 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Parsed["remote_port"] == "39522" |
| 24 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Meta["datasource_path"] == "gitea-logs.log" |
| 25 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Meta["datasource_type"] == "file" |
| 26 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Meta["log_type"] == "gitea_failed_auth" |
| 27 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Meta["service"] == "gitea" |
| 28 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Meta["source_ip"] == "1.1.1.1" |
| 29 |
results["s01-parse"]["LePresidente/gitea-logs"][0].Evt.Meta["user"] == "test" |
| 30 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Success == true |
| 31 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Parsed["remote_ip"] == "1.1.1.1" |
| 32 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Parsed["remote_port"] == "39522" |
| 33 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Parsed["timestamp"] == "2022/03/01 12:57:59" |
| 34 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Parsed["username"] == "[email protected]" |
| 35 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Parsed["message"] == "2022/03/01 12:57:59 ...ers/web/auth/auth.go:200:SignInPost() [I] Failed authentication attempt for [email protected] from 1.1.1.1:39522: user does not exist [uid: 1, name: test, keyid: 0]" |
| 36 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Parsed["program"] == "gitea" |
| 37 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Meta["user"] == "[email protected]" |
| 38 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Meta["datasource_path"] == "gitea-logs.log" |
| 39 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Meta["datasource_type"] == "file" |
| 40 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Meta["log_type"] == "gitea_failed_auth" |
| 41 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Meta["service"] == "gitea" |
| 42 |
results["s01-parse"]["LePresidente/gitea-logs"][1].Evt.Meta["source_ip"] == "1.1.1.1" |
| 43 |
len(results["s02-enrich"]["crowdsecurity/dateparse-enrich"]) == 2 |
| 44 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Success == true |
| 45 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["remote_port"] == "39522" |
| 46 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["timestamp"] == "2022/03/01 12:57:58" |
| 47 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["username"] == "test" |
| 48 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["message"] == "2022/03/01 12:57:58 ...ers/web/auth/auth.go:200:SignInPost() [I] Failed authentication attempt for test from 1.1.1.1:39522: user does not exist [uid: 0, name: test, keyid: 0]" |
| 49 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["program"] == "gitea" |
| 50 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["remote_ip"] == "1.1.1.1" |
| 51 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_path"] == "gitea-logs.log" |
| 52 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_type"] == "file" |
| 53 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["log_type"] == "gitea_failed_auth" |
| 54 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["service"] == "gitea" |
| 55 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["source_ip"] == "1.1.1.1" |
| 56 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["timestamp"] == "2022-03-01T12:57:58Z" |
| 57 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["user"] == "test" |
| 58 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Enriched["MarshaledTime"] == "2022-03-01T12:57:58Z" |
| 59 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Success == true |
| 60 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["timestamp"] == "2022/03/01 12:57:59" |
| 61 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["username"] == "[email protected]" |
| 62 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["message"] == "2022/03/01 12:57:59 ...ers/web/auth/auth.go:200:SignInPost() [I] Failed authentication attempt for [email protected] from 1.1.1.1:39522: user does not exist [uid: 1, name: test, keyid: 0]" |
| 63 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["program"] == "gitea" |
| 64 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["remote_ip"] == "1.1.1.1" |
| 65 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["remote_port"] == "39522" |
| 66 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["service"] == "gitea" |
| 67 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["source_ip"] == "1.1.1.1" |
| 68 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["timestamp"] == "2022-03-01T12:57:59Z" |
| 69 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["user"] == "[email protected]" |
| 70 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["datasource_path"] == "gitea-logs.log" |
| 71 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["datasource_type"] == "file" |
| 72 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["log_type"] == "gitea_failed_auth" |
| 73 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Enriched["MarshaledTime"] == "2022-03-01T12:57:59Z" |
| 74 |
len(results["success"][""]) == 0 |