What is the format of mtr raw output?

Solution 1:

In their source files MTR has file named: FORMATS

source

From that file is the excerpt:

The "raw" format is:

hostline|xmitline|pingline|dnsline|timestampline|mplsline

hostline:
h <pos> <host IP>

xmitline:
x <pos> <seqnum>

pingline:
p <pos> <pingtime (ms)> <seqnum>

dnsline: 
d <pos> <hostname>

timestampline:
t <pos> <pingtime> <timestamp>

mplsline:
m <pos> <label> <traffic_class> <bottom_stack> <ttl>

When parsing this <pos> is an integer for the index of the host. The host at the first hop will be 0, second hop 1, etc. It should also be noted that pingtime is in ms, but microseconds and not miliseconds.