Commit 1bd0d3ab74693a8d2204924cd9c6a23a3170ce60

Authored by Thanasis Naskos
1 parent 511b94fbee

Fixing date format on the XlsiemController. Removing mltd1-2.json files

Showing 3 changed files with 1 additions and 35 deletions

api/app/Http/Controllers/V1/Partners/XlsiemController.php View file @ 1bd0d3a
... ... @@ -33,7 +33,7 @@
33 33 'event_alarm_id' => $ev['event_alarm_id'],
34 34 'event_alarm_char' => $ev['event_alarm_char'],
35 35 'name' => isset($ev['name']) ? $ev['name'] : null,
36   - 'time' => $request->get('timestamp'),
  36 + 'time' => Carbon::createFromTimestamp($request->get('timestamp')),
37 37 'source_ip' => $ev['source_ip'],
38 38 'source_port' => isset($ev['source_port']) ? $ev['source_port'] : null,
39 39 'destination_ip' => $ev['destination_ip'],
pcap-data/mltd1.json View file @ 1bd0d3a
1   -{
2   - "asset_id": "server",
3   - "timestamp": "2021-05-28T13:40:18.224Z",
4   - "event_alarm": [
5   - {
6   - "event_alarm_id": "danger",
7   - "event_alarm_char": "danger",
8   - "name": "danger",
9   - "source_ip": "192.168.1.1",
10   - "source_port": 1234,
11   - "destination_ip": "192.168.1.50",
12   - "destination_port": 1231,
13   - "priority": 0,
14   - "confidence": 0
15   - }
16   - ]
17   -}
pcap-data/mltd2.json View file @ 1bd0d3a
1   -{
2   - "asset_id": "server",
3   - "timestamp": "2021-05-29T13:40:18.224Z",
4   - "event_alarm": [
5   - {
6   - "event_alarm_id": "danger",
7   - "event_alarm_char": "danger",
8   - "name": "danger",
9   - "source_ip": "192.168.1.1",
10   - "source_port": 1234,
11   - "destination_ip": "192.168.1.50",
12   - "destination_port": 1231,
13   - "priority": 0,
14   - "confidence": 0
15   - }
16   - ]
17   -}