github.com/crowdsecurity/crowdsec@v1.6.1/pkg/leakybucket/tests/simple-leaky-blackhole/test.json (about)

     1  {
     2    "lines": [
     3      {
     4        "Line": {
     5          "Labels": {
     6            "type": "testlog"
     7          },
     8          "Raw": "xxheader VALUE1 trailing stuff"
     9        },
    10        "MarshaledTime": "2020-01-01T10:00:00+00:00",
    11        "Meta": {
    12          "source_ip": "1.2.3.4",
    13          "entry": "1"
    14        }
    15      },
    16      {
    17        "Line": {
    18          "Labels": {
    19            "type": "testlog"
    20          },
    21          "Raw": "xxheader VALUE2 trailing stuff"
    22        },
    23        "MarshaledTime": "2020-01-01T10:00:04+00:00",
    24        "Meta": {
    25          "source_ip": "1.2.3.4",
    26          "entry": "2"
    27        }
    28      },
    29      {
    30        "Line": {
    31          "Labels": {
    32            "type": "testlog"
    33          },
    34          "Raw": "xxheader VALUE3 trailing stuff"
    35        },
    36        "MarshaledTime": "2020-01-01T10:00:15+00:00",
    37        "Meta": {
    38          "source_ip": "1.2.3.4",
    39          "entry": "3"
    40        }
    41      },
    42      {
    43        "Line": {
    44          "Labels": {
    45            "type": "testlog"
    46          },
    47          "Raw": "xxheader VALUE4 trailing stuff"
    48        },
    49        "MarshaledTime": "2020-01-01T10:00:16+00:00",
    50        "Meta": {
    51          "source_ip": "1.2.3.4",
    52          "entry": "4"
    53        }
    54      },
    55      {
    56        "Line": {
    57          "Labels": {
    58            "type": "testlog"
    59          },
    60          "Raw": "xxheader VALUE5 trailing stuff"
    61        },
    62        "MarshaledTime": "2020-01-01T10:01:15+00:00",
    63        "Meta": {
    64          "source_ip": "1.2.3.4",
    65          "entry": "5"
    66        }
    67      },
    68      {
    69        "Line": {
    70          "Labels": {
    71            "type": "testlog"
    72          },
    73          "Raw": "xxheader VALUE6 trailing stuff"
    74        },
    75        "MarshaledTime": "2020-01-01T10:01:16+00:00",
    76        "Meta": {
    77          "source_ip": "1.2.3.4",
    78          "entry": "6"
    79        }
    80      }
    81    ],
    82    "results": [
    83      {
    84        "Alert": {
    85          "sources": {
    86            "1.2.3.4": {
    87                "scope": "Ip",
    88                "value": "1.2.3.4",
    89              
    90              "ip": "1.2.3.4"
    91            }
    92          },
    93          "Alert" : {
    94            "scenario": "test/simple-leaky",
    95            "events_count": 2
    96            
    97          }
    98        }
    99      },
   100      {
   101        "Alert": {
   102        }
   103      },
   104      {
   105        "Alert": {
   106          "sources": {
   107            "1.2.3.4": {
   108                "scope": "Ip",
   109                "value": "1.2.3.4",
   110              
   111              "ip": "1.2.3.4"
   112            }
   113          },
   114          "Alert" : {
   115            "scenario": "test/simple-leaky",
   116            "events_count": 2
   117            
   118          }
   119        }
   120      }
   121    ]
   122  }
   123