Skip to content

Events Examples

Tânia Esteves edited this page Sep 7, 2021 · 2 revisions

Examples of Socket requests

Connect event

Example of a connect (ID = 11) event issued on host cloud126.cluster.lsd.di.uminho.pt. The connect request was issued from IP address 127.0.0.1 with port number 39342 to IP address 142.250.200.132 with port number 80.

{
    "timestamp": 49072346343,
    "type": 11,
    "thread": "18472@cloud126.cluster.lsd.di.uminho.pt",
    "pid": 18472,
    "socket": "127.0.0.1:39342-142.250.200.132:80",
    "socket_type": "TCP",
    "src": "127.0.0.1",
    "src_port": 39342,
    "dst": "142.250.200.132",
    "dst_port": 80,
    "data":
    {
        "host": "cloud126.cluster.lsd.di.uminho.pt"
    }
}
Accept event

Example of a accept (ID = 12) event issued on host cloud126.cluster.lsd.di.uminho.pt. The accept request was issued from IP address 192.168.112.128 with port number 49638 to IP address 192.168.112.126 with port number 5000.

{
    "timestamp": 50015878097,
    "type": 12,
    "thread": "19020@cloud126.cluster.lsd.di.uminho.pt",
    "pid": 19020,
    "socket": "192.168.112.126:5000-192.168.112.128:49638",
    "socket_type": "TCP",
    "src": "192.168.112.128",
    "src_port": 49638,
    "dst": "192.168.112.126",
    "dst_port": 5000,
    "data":
    {
        "host": "cloud126.cluster.lsd.di.uminho.pt"
    }
}
Send event

Example of a send (ID = 8) event issued on host cloud126.cluster.lsd.di.uminho.pt. A message with 141 bytes was sent from IP address 192.168.112.126 with port number 57762 to IP address 142.250.200.132 with port number 80. The field data.signature contains the signature of the message sent.

{
    "timestamp": 49072360480,
    "type": 8,
    "thread": "18472@cloud126.cluster.lsd.di.uminho.pt",
    "pid": 18472,
    "socket": "142.250.200.132:80-192.168.112.126:57762",
    "socket_type": "TCP",
    "src": "192.168.112.126",
    "src_port": 57762,
    "dst": "142.250.200.132",
    "dst_port": 80,
    "size": 141,
    "returned_value": 141,
    "data":
    {
        "host": "cloud126.cluster.lsd.di.uminho.pt",
        "signature":
        [
            14374578411108713,
            47592000146608422,
            32145223086044688,
            249483952361945051,
            93974677759041266,
            79875397053041892,
            83214384300320108,
            104491093463104266,
            38783744951870977,
            352271028715510892
        ]
    }
}
Receive event

Example of a receive (ID = 9) event issued on host cloud126.cluster.lsd.di.uminho.pt. A message with the content "ola\n" was sent from IP address 192.168.112.128with port number 49644 to IP address 192.168.112.126 with port number 5000.

{
    "timestamp": 57458224194,
    "type": 9,
    "thread": "19636@cloud126.cluster.lsd.di.uminho.pt",
    "pid": 19636,
    "socket": "192.168.112.126:5000-192.168.112.128:49644",
    "socket_type": "TCP",
    "src": "192.168.112.128",
    "src_port": 49644,
    "dst": "192.168.112.126",
    "dst_port": 5000,
    "size": 16384,
    "returned_value": 4,
    "data":
    {
        "host": "cloud126.cluster.lsd.di.uminho.pt",
        "msg": "ola\n",
        "msg_len": 4
    }
}

Examples of Disk requests

Open event

Example of a open (ID = 23) event issued on host cloud126.cluster.lsd.di.uminho.pt. The request openned a file with the descriptor 4 and path /tmp/index.html.

{
    "timestamp": 49755419451,
    "type": 23,
    "thread": "18754@cloud126.cluster.lsd.di.uminho.pt",
    "pid": 18754,
    "data":
    {
        "host": "cloud126.cluster.lsd.di.uminho.pt"
    },
    "fd": 4,
    "filename": "/tmp/index.html"
}
Write event

Example of a write (ID = 21) event issued on host cloud126.cluster.lsd.di.uminho.pt. The request wrote 8192 bytes to a file with the descriptor 4 and path /tmp/index.html. The field data.signature contains the signature of the content written.

{
    "timestamp": 49755419985,
    "type": 21,
    "thread": "18754@cloud126.cluster.lsd.di.uminho.pt",
    "pid": 18754,
    "size": 8192,
    "returned_value": 8192,
    "data":
    {
        "host": "cloud126.cluster.lsd.di.uminho.pt",
        "signature":
        [
            4633361649553014,
            680090080360446,
            992936755999130,
            7841390318131855,
            3736538420722853,
            1905903942347554,
            3811701922132517,
            801011817078274,
            16815875971312483,
            1058069288932332
        ]
    },
    "fd": 4,
    "filename": "/tmp/index.html"
}
Read event

Example of a read (ID = 22) event issued on host cloud126.cluster.lsd.di.uminho.pt. The request read 784 bytes from the file with the descriptor 3 and path /usr/lib/x86_64-linux-gnu/libc-2.31.so. The field data.signature contains the signature of the content read.

{
    "timestamp": 49755152718,
    "type": 22,
    "thread": "18754@cloud126.cluster.lsd.di.uminho.pt",
    "pid": 18754,
    "size": 784,
    "returned_value": 784,
    "data":
    {
        "host": "cloud126.cluster.lsd.di.uminho.pt",
        "signature":
        [
            10111027253870184,
            216683911899971796,
            8434535566132561,
            40606492248426934,
            185647383327731957,
            23898010955791364,
            91070033091746618,
            22149457356644293,
            147844250440363597,
            37014490316709112
        ]
    },
    "fd": 3,
    "filename": "/usr/lib/x86_64-linux-gnu/libc-2.31.so"
}