Skip to content

Instantly share code, notes, and snippets.

@edsiper
Last active March 4, 2017 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsiper/b0e8ff2b7667c9bb42b1da499520a313 to your computer and use it in GitHub Desktop.
Save edsiper/b0e8ff2b7667c9bb42b1da499520a313 to your computer and use it in GitHub Desktop.
forward - msgpack

forward.dat => 162 bytes

decoding with msgpack-2.1.1

[
    "docker.61aef28b876e", 
    1488601623, 
    {
        "container_id"=>"61aef28b876e6d022419335ac2eee260de90523bcc64b44264a61e2feacaca4d",
        "container_name"=>"/prickly_sammet", 
        "source"=>"stdout", 
        "lo"
     },
     nil
]

decoding with msgpack2json tool

$ msgpack2json -di forward.dat 
[
    "docker.61aef28b876e",
    1488601623,
    {
        "container_id": "61aef28b876e6d022419335ac2eee260de90523bcc64b44264a61e2feacaca4d",
        "container_name": "/prickly_sammet",
        "source": "stdout",
        "log": "test\r"
    },
    null
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment