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.Check a single file
filetrace inspect file reports everything known about one file: its identity, every transfer, totals and the provenance of the attribution.
* wildcards as long as they match a single file.
Check a directory or pattern
filetrace files lists every file associated with a transfer. Narrow it with --path, which accepts * wildcards, or --path-regex, which takes a POSIX extended regular expression:
--deleted to list only files that no longer have a directory entry.
Decide how sure the answer is
TheCONFIDENCE column says what the association rests on:
- EXACT with method
sendfile: the kernel moved the file’s data to the socket itself. The file was sent. - INFERRED with method
read-write: the same thread read the file and then sent on the socket within two seconds, with no receive in between. The payload cannot be proven to come only from the file.
* after the level marks a transfer during which events were lost; its byte counts may be incomplete. File attribution and confidence explains both methods and their limits.
Follow the process
Once you know the PID, look at the process from its side: its connections, rates, top destinations and every file it sent.Catch the next transfer
History answers questions about the past. To see a file the moment it is sent, follow the event stream with a path filter:file_transfer events over OpenTelemetry or stream them from the gRPC API.