x-ray-client

x-ray-client is a command-line tool that connects to Process X-Ray and Network X-Ray’s system extensions. x-ray-client receives the same data as the GUI portions of Process & Network X-Ray. x-ray-client can save this data into rotating log files or print it to standard out.

By printing the log records to standard out, you can feed the log records into 3rd-party tools to support new functionality.