← 返回命令列表

Linux command

kyanos 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Watch HTTP traffic

kyanos watch http

Watch traffic on a specific port

kyanos watch --port [port]

Watch traffic filtered by process ID

kyanos watch --pids [1234]

Watch traffic filtered by container ID

kyanos watch --container-id [abc123]

Watch Redis traffic filtered by key

kyanos watch redis --keys [my-key1,my-key2]

Show network statistics

kyanos stat

Show an overview of external dependencies

kyanos overview

说明

kyanos is a networking analysis tool using eBPF that can visualize the time packets spend in the kernel, capture requests and responses for protocols like HTTP, Redis, and MySQL, and make troubleshooting more efficient. It provides three subcommands: watch for capturing network traffic with filtering by IP, port, process, container, or protocol-level details; stat for aggregating request/response data with statistical information; and overview for displaying external resources the machine depends on. It can also automatically decrypt SSL traffic. The tool provides kernel-level trace points showing packet journey from network card arrival to kernel socket buffer, displayed in a visual format to identify exactly which stage causes delays.

FAQ

What is the kyanos command used for?

kyanos is a networking analysis tool using eBPF that can visualize the time packets spend in the kernel, capture requests and responses for protocols like HTTP, Redis, and MySQL, and make troubleshooting more efficient. It provides three subcommands: watch for capturing network traffic with filtering by IP, port, process, container, or protocol-level details; stat for aggregating request/response data with statistical information; and overview for displaying external resources the machine depends on. It can also automatically decrypt SSL traffic. The tool provides kernel-level trace points showing packet journey from network card arrival to kernel socket buffer, displayed in a visual format to identify exactly which stage causes delays.

How do I run a basic kyanos example?

Run `kyanos watch http` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more kyanos examples?

This page includes 7 examples for kyanos, plus related commands for nearby Linux tasks.