Skip to main content
An alert names an address, a firewall log shows an unexpected destination, or a cloud bill shows egress to a network you do not recognise. Filetrace turns that address into processes and files: who talks to it, what was sent, and over which connections. Wherever this page takes an address, a single address or a CIDR network works, IPv4 or IPv6.
The agent must be running, and it only knows what happened since it started. Run the commands with sudo when the agent runs as root.

Summarize an address

filetrace inspect ip gives the overview: bytes in each direction, the number of flows and processes, and the file transfers to that address.
The report continues with two lists: PROCESSES, each with its current outbound rate and the bytes it sent to and received from the address, and FILES SENT TO IT, with the file, process, remote endpoint, bytes, method and confidence of every transfer. --limit sets the number of rows per list (20 by default).

List the files sent to it

files lists only bytes that a file accounts for. To include sent bytes with no associated file, use transfers, which shows unknown in the FILE column for them:

Find the connections and flows

connections lists sockets by their two ends; flows lists the bytes each process exchanged with each remote endpoint. Both take --remote, --port and --protocol.
--group-by merges flows by process, remote, port or protocol, which turns a long list into a ranking. To see the top destinations of the whole machine instead:

Drill into one socket or flow

The SOCKET column of connections and the FLOW column of flows are IDs that inspect takes:
inspect socket shows the socket’s ends, owner, traffic and the files sent on it; inspect flow shows one process’s traffic with one remote endpoint on that socket.

Names instead of addresses

--resolve-hostnames shows remote addresses by host name where a reverse DNS lookup finds one:
The lookups go to the system’s DNS resolver, which then learns which addresses you are looking at. Leave the option off during an investigation that must stay quiet.

Watch the address live

See Watch transfers live for the live view and events for the event stream.