Debian Codegraph @

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

raw
1 len(results["s01-parse"]["mstilkerich/bind9"]) == 9
2 results["s01-parse"]["mstilkerich/bind9"][0].Success == true
3 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["remote_addr"] == "104.219.136.31"
4 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["timestamp"] == "19-Oct-2022 05:34:02.425"
5 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["ts_m"] == "Oct"
6 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["ts_y"] == "2022"
7 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["ts_t"] == "05:34:02"
8 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["message"] == "19-Oct-2022 05:34:02.425 client @0x7f65100ee4d8 104.219.136.31#3076 (example.com): query (cache) 'example.com/ANY/IN' denied"
9 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["program"] == "named"
10 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["remote_port"] == "3076"
11 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["ts_d"] == "19"
12 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Parsed["ts_ms"] == "425"
13 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Meta["service"] == "bind9"
14 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Meta["source_ip"] == "104.219.136.31"
15 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Meta["datasource_path"] == "bind9-logs.log"
16 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Meta["datasource_type"] == "file"
17 results["s01-parse"]["mstilkerich/bind9"][0].Evt.Meta["log_type"] == "bind9_denied"
18 results["s01-parse"]["mstilkerich/bind9"][1].Success == true
19 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["ts_d"] == "19"
20 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["ts_m"] == "Oct"
21 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["program"] == "named"
22 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["remote_addr"] == "104.219.136.31"
23 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["remote_port"] == "3076"
24 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["timestamp"] == "19-Oct-2022 05:34:03.425"
25 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["message"] == "19-Oct-2022 05:34:03.425 client @0x7f65100ee4d8 104.219.136.31#3076 (example.com): query 'example.com/ANY/IN' denied"
26 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["ts_ms"] == "425"
27 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["ts_t"] == "05:34:03"
28 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Parsed["ts_y"] == "2022"
29 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Meta["service"] == "bind9"
30 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Meta["source_ip"] == "104.219.136.31"
31 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Meta["datasource_path"] == "bind9-logs.log"
32 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Meta["datasource_type"] == "file"
33 results["s01-parse"]["mstilkerich/bind9"][1].Evt.Meta["log_type"] == "bind9_denied"
34 results["s01-parse"]["mstilkerich/bind9"][2].Success == true
35 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["ts_m"] == "Oct"
36 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["ts_t"] == "08:30:43"
37 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["message"] == "20-Oct-2022 08:30:43.685 client @0x7f6520147ae8 164.92.117.245#55590 (example.com): zone transfer 'example.com/AXFR/IN' denied"
38 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["remote_addr"] == "164.92.117.245"
39 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["remote_port"] == "55590"
40 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["timestamp"] == "20-Oct-2022 08:30:43.685"
41 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["ts_d"] == "20"
42 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["ts_ms"] == "685"
43 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["ts_y"] == "2022"
44 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Parsed["program"] == "named"
45 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Meta["datasource_type"] == "file"
46 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Meta["log_type"] == "bind9_denied"
47 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Meta["service"] == "bind9"
48 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Meta["source_ip"] == "164.92.117.245"
49 results["s01-parse"]["mstilkerich/bind9"][2].Evt.Meta["datasource_path"] == "bind9-logs.log"
50 results["s01-parse"]["mstilkerich/bind9"][3].Success == true
51 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["remote_port"] == "62449"
52 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["timestamp"] == "03-Nov-2022 13:34:52.235"
53 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["ts_m"] == "Nov"
54 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["ts_ms"] == "235"
55 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["ts_y"] == "2022"
56 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["message"] == "03-Nov-2022 13:34:52.235 security: error: client @0x7fb04c007328 2003:f8:733:b600:6018:bbe4:d0ed:22#62449 (example.com): zone transfer 'example.com/AXFR/IN' denied"
57 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["program"] == "named"
58 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["remote_addr"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
59 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["ts_d"] == "03"
60 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Parsed["ts_t"] == "13:34:52"
61 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Meta["service"] == "bind9"
62 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Meta["source_ip"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
63 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Meta["datasource_path"] == "bind9-logs.log"
64 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Meta["datasource_type"] == "file"
65 results["s01-parse"]["mstilkerich/bind9"][3].Evt.Meta["log_type"] == "bind9_denied"
66 results["s01-parse"]["mstilkerich/bind9"][4].Success == true
67 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["ts_y"] == "2022"
68 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["message"] == "03-Nov-2022 13:37:23.345 error: client @0x7f7b200091e8 2003:f8:733:b600:6018:bbe4:d0ed:22#62465 (example.com): zone transfer 'example.com/AXFR/IN' denied"
69 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["ts_d"] == "03"
70 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["remote_port"] == "62465"
71 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["timestamp"] == "03-Nov-2022 13:37:23.345"
72 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["ts_m"] == "Nov"
73 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["ts_ms"] == "345"
74 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["ts_t"] == "13:37:23"
75 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["program"] == "named"
76 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Parsed["remote_addr"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
77 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Meta["service"] == "bind9"
78 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Meta["source_ip"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
79 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Meta["datasource_path"] == "bind9-logs.log"
80 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Meta["datasource_type"] == "file"
81 results["s01-parse"]["mstilkerich/bind9"][4].Evt.Meta["log_type"] == "bind9_denied"
82 results["s01-parse"]["mstilkerich/bind9"][5].Success == true
83 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["ts_m"] == "Nov"
84 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["remote_addr"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
85 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["timestamp"] == "03-Nov-2022 13:37:37.525"
86 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["remote_port"] == "62466"
87 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["ts_d"] == "03"
88 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["ts_ms"] == "525"
89 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["ts_t"] == "13:37:37"
90 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["ts_y"] == "2022"
91 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["message"] == "03-Nov-2022 13:37:37.525 security: client @0x7f3f9c009168 2003:f8:733:b600:6018:bbe4:d0ed:22#62466 (example.com): zone transfer 'example.com/AXFR/IN' denied"
92 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Parsed["program"] == "named"
93 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Meta["source_ip"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
94 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Meta["datasource_path"] == "bind9-logs.log"
95 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Meta["datasource_type"] == "file"
96 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Meta["log_type"] == "bind9_denied"
97 results["s01-parse"]["mstilkerich/bind9"][5].Evt.Meta["service"] == "bind9"
98 results["s01-parse"]["mstilkerich/bind9"][6].Success == true
99 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["message"] == "03-Nov-2022 13:38:37.525 client @0x7fa0a4137838 2003:f8:733:b600:2c44:fab4:5e6e:d791#61738 (example.com): bad zone transfer request: 'example.com/IN': non-authoritative zone (NOTAUTH)"
100 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["program"] == "named"
101 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["remote_addr"] == "2003:f8:733:b600:2c44:fab4:5e6e:d791"
102 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["ts_d"] == "03"
103 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["ts_y"] == "2022"
104 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["remote_port"] == "61738"
105 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["timestamp"] == "03-Nov-2022 13:38:37.525"
106 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["ts_m"] == "Nov"
107 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["ts_ms"] == "525"
108 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Parsed["ts_t"] == "13:38:37"
109 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Meta["datasource_path"] == "bind9-logs.log"
110 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Meta["datasource_type"] == "file"
111 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Meta["log_type"] == "bind9_denied"
112 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Meta["service"] == "bind9"
113 results["s01-parse"]["mstilkerich/bind9"][6].Evt.Meta["source_ip"] == "2003:f8:733:b600:2c44:fab4:5e6e:d791"
114 results["s01-parse"]["mstilkerich/bind9"][7].Success == true
115 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Parsed["message"] == "security: client @0x7f37ac012d98 2003:f8:733:b600:6018:bbe4:d0ed:22#62518 (example.com): zone transfer 'example.com/AXFR/IN' denied"
116 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Parsed["program"] == "named"
117 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Parsed["remote_addr"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
118 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Parsed["remote_port"] == "62518"
119 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Meta["datasource_path"] == "bind9-logs.log"
120 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Meta["datasource_type"] == "file"
121 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Meta["log_type"] == "bind9_denied"
122 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Meta["service"] == "bind9"
123 results["s01-parse"]["mstilkerich/bind9"][7].Evt.Meta["source_ip"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
124 results["s01-parse"]["mstilkerich/bind9"][8].Success == true
125 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Parsed["program"] == "named"
126 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Parsed["remote_port"] == "62524"
127 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Parsed["message"] == "client @0x7f8ac00071e8 2003:f8:733:b600:6018:bbe4:d0ed:22#62524 (example.com): zone transfer 'example.com/AXFR/IN' denied"
128 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Parsed["remote_addr"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"
129 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Meta["datasource_path"] == "bind9-logs.log"
130 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Meta["datasource_type"] == "file"
131 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Meta["log_type"] == "bind9_denied"
132 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Meta["service"] == "bind9"
133 results["s01-parse"]["mstilkerich/bind9"][8].Evt.Meta["source_ip"] == "2003:f8:733:b600:6018:bbe4:d0ed:22"