crowdsec/pkg/leakybucket/tests/simple-leaky-uniq/test.json
Sebastien Blot cb1a86fdc8
fix tests
2022-08-10 12:35:56 +02:00

64 lines
1.2 KiB
JSON

{
"lines": [
{
"Line": {
"Labels": {
"type": "testlog"
},
"Raw": "xxheader VALUE1 trailing stuff"
},
"MarshaledTime": "2020-01-01T10:00:00+00:00",
"Meta": {
"source_ip": "1.2.3.4",
"uniq_key": "aaa"
}
},
{
"Line": {
"Labels": {
"type": "testlog"
},
"Raw": "xxheader VALUE2 trailing stuff"
},
"MarshaledTime": "2020-01-01T10:00:01+00:00",
"Meta": {
"source_ip": "1.2.3.4",
"uniq_key": "aaa"
}
},
{
"Line": {
"Labels": {
"type": "testlog"
},
"Raw": "xxheader VALUE2 trailing stuff"
},
"MarshaledTime": "2020-01-01T10:00:02+00:00",
"Meta": {
"source_ip": "1.2.3.4",
"uniq_key": "aab"
}
}
],
"results": [
{
"Alert": {
"sources": {
"1.2.3.4": {
"scope": "Ip",
"value": "1.2.3.4",
"ip": "1.2.3.4"
}
},
"Alert" : {
"scenario": "test/simple-leaky-uniq",
"events_count": 2
}
}
}
]
}