CSYSDIG(8)
π NAME
okay so bestie, meet csysdig β it's the ncurses user interface for sysdig, and yes that's the whole vibe. section 8 of the manual, icon behavior only.
β¨ SYNOPSIS
csysdig [option]... [filter]
π¦ DESCRIPTION
csysdig takes everything sysdig can do and serves it through an ncurses-based user interface that is, genuinely, intuitive AND powerful. not a combo you see every day, i fear.
the whole design goal is "mimic tools like top and htop" β but lowkey it does way more, including:
- Support for both live analysis and
sysdigtrace files. Trace files can come from the same machine or from another machine. π«Ά - Visibility into a broad range of metrics, including CPU, memory, disk I/O, network I/O. the full buffet.
- Ability to observe input/output activity for processes, files, network connections and more.
- Ability to drill down into processes, files, network connections and more to further explore their behavior. it's giving detective era π
- Full customization support.
- Support for
sysdig's filtering language. - Container support by design. no cap.
csysdig works on any terminal, and has support for colors and mouse input. periodt.
π Views
csysdig is built on the concept of 'views' β little Lua scripts that determine how metrics are collected, processed and represented on screen. the slay part? adding a whole new visualization to csysdig doesn't require updating the program at all, it's simply a matter of adding a new view. Views rely on the sysdig processing engine, which means they can include any sysdig filter field. Views live in the sysdig chisel directory path, usually /usr/share/sysdig/chisels and ~/.chisels.
πΈ BASIC USAGE
here are some basic tips to get you started with sysdig (and by extension, your new main character):
- If you run
csysdigwithout arguments, it will display live system data, updating every 2 seconds. To analyze a trace file, use the-rcommand line flag. - You can switch to a different view by using the F2 key.
- You can drill down into a selection by clicking enter. You can navigate back by typing backspace.
- You can observe input/output for the currently selected entity by typing F5
- You can see
sysdigevents for the currently selected entity by typing F6
π₯ DRILLING DOWN
okay so this is the fun part. you drill down by selecting an element in a view and then clicking enter. once you're inside a selection, you can switch to a different view, and β plot twist β the new view gets applied in the context of the selection. for example, if you drill down into a process called foo and then switch to the Connections view, the output will include only the connections made or received by foo. iconic behavior honestly.
to drill down multiple times, keep clicking enter. for example, you can click on a container in the Containers view to get the processes running inside it, and then click on one of the processes to see its threads. it's layers, bestie. π§
β ACTIONS AND HOTKEYS
Each view has a list of command lines that can be executed in the context of the current selection by pressing 'hotkeys'. for example, pressing k in the Processes view kills the selected process, pressing b in the Containers view opens a bash shell in the selected container. yes, really.
Each view supports different actions. you can see which actions a view supports by pressing F8. and you can customize the view's actions by editing the view's Lua file. go off. β¨
π CONTAINERS SUPPORT
Starting csysdig with the -pc command line switch will cause many of the views to include additional container information. for example, the Processes will include a column showing the container the process belongs to. similarly, the Connections view will show which container each connection belongs to. container girlies stay winning.
π INTERACTIVE COMMANDS
π₯οΈ Views Window
- Arrows, PgUP, PgDn, Home, End β Change the selection and scroll view content, both vertically and horizontally.
- Enter β Drill down into the currently highlighted entry.
- Backspace β Navigate back to the previous view.
- F2 β Show the view picker. This will let you switch to another view.
- **CTRL+F / ** β Incremental search in the list of view entries.
- F4 β Incremental filtering of the view entries.
- F5, e β 'echo FDs' for the selection, i.e. view FD input/output for the currently highlighted entry.
- F6, d β 'dig' into the selection, i.e. view
sysdigevents for the currently highlighted entry. Refer to thesysdigman page to learn about interpreting the content of this window. - F7 β Show the help page for the currently displayed view.
- F8 β Open the view's actions panel.
- F9, > β Open the column sort panel.
- F10, q β Quit. say bye π
- DEL, c β For views that are listing elements without aggregating them by key (identifiable by yellow column headers), this command clears the view content.
- p β Pause screen updates.
- <shift> <1-9> β sort column <n>
- F1, h, ? β Show the help screen.
π§ Echo and sysdig Windows
- Arrows, PgUP, PgDn, Home, End β Scroll the page content.
- Backspace β Navigate back to the previous view.
- **CTRL+F / ** β Search inside the window content.
- F3 β Find Next.
- F2 β Chose the output rendering format. Options are 'Dotted ASCII' (non-printable binary bytes are rendered as dots), 'Printable ASCII' (non-printable binary bytes are not included and line endings are rendered accurately) and 'Hex' (dotted ASCII representation is included together with the Hexadecimal rendering of the buffers).
- DEL, c β Clear the screen content.
- p β Pause screen updates.
- CTRL+G β Go to line.
π Spectrogram Window
- F2 β Show the view picker. This will let you switch to another view.
- p β Pause/Resume the visualization.
- Backspace β Navigate back to the previous view.
π MOUSE USAGE
- Clicking on column headers lets you sort the table.
- Double clicking on row entries performs a drill down.
- Clicking on the filter string at the top of the screen (the text after 'Filter:') lets you change the
sysdigfilter and customize the view content. - You can use the mouse on the entries in the menu at the bottom of the screen to perform their respective actions.
mouse girlies, this one's for you π«Ά
π COMMAND LINE OPTIONS
-d period,--delay=periodβ Set the delay between updates, in milliseconds (by default =2000). This works similarly to the-doption intop.-E,--exclude-usersβ Don't create the user/group tables by querying the OS whensysdigstarts. This also means that no user or group info will be written to the tracefile by the-wflag. The user/group tables are necessary to use filter fields likeuser.nameorgroup.name. However, creating them can increasesysdig's startup time.--force-term-compatβ Try to configure simple terminal settings (xterm-1002) that work better with terminals like putty. Try to use this flag if you experience terminal issues like the mouse not working. (putty girlies, this is your moment)-h,--helpβ Print this page-k,--k8s-apiβ Enable Kubernetes support by connecting to the API server specified as argument. E.g."http://admin:password@127.0.0.1:8080". The API server can also be specified via the environment variableSYSDIG_K8S_API.- **
-K btfile | certfile:keyfile[#password][:cacertfile],--k8s-api-cert=_btfile | certfile:keyfile[#password][:cacertfile]_ β Use the provided files names to authenticate user and (optionally) verify the K8S API server identity. Each entry must specify full (absolute, or relative to the current directory) path to the respective file. Private key password is optional (needed only if key is password protected). CA certificate is optional. For all files, only PEM file format is supported. Specifying CA certificate only is obsoleted β when single entry is provided for this option, it will be interpreted as the name of a file containing bearer token. Note that the format of this command-line option prohibits use of files whose names contain':'or'#'characters in the file name. Option can also be provided via the environment variableSYSDIG_K8S_API_CERT. -l,--listβ List all the fields that can be used in views.--logfile fileβ Print program logs into the given file.- **
-m url[,marathon-url],--mesos-api=_url[,marathon-url]_ β Enable Mesos support by connecting to the API server specified as argument (e.g.http://admin:password@127.0.0.1:5050). Mesos url is required. Marathon url is optional, defaulting to auto-follow β if Marathon API server is not provided,csysdigwill attempt to retrieve (and subsequently follow, if it migrates) the location of Marathon API server from the Mesos master. Note that, with auto-follow,csysdigwill likely receive a cluster internal IP address for Marathon API server, so runningcsysdigwith Marathon auto-follow from a node that is not part of Mesos cluster may not work. Additionally, runningcsysdigwith Mesos support on a node that has no containers managed by Mesos is of limited use because, although cluster metadata will be collected, there will be no Mesos/Marathon filtering capability. The API servers can also be specified via the environment variableSYSDIG_MESOS_API. -n num,--numevents=numβ Stop capturing afternumevents--page-faultsβ Capture user/kernel major/minor page faults-pc,-pcontainersβ Instructcsysdigto use a container-friendly format in its views. This will cause several of the views to contain additional container-related columns.-R,--resolve-portsβ Resolve port numbers to names.-r readfile,--read=readfileβ Read the events fromreadfile.-s len,--snaplen=lenβ Capture the firstlenbytes of each I/O buffer. By default, the first 80 bytes are captured. Use this option with caution, it can generate huge trace files.-T,--force-tracers-captureβ Tell the driver to make sure full buffers are captured from/dev/null, to make sure that tracers are completely captured. Note thatsysdigwill enable extended/dev/nullcapture by itself after detecting that tracers are written there, but that could result in the truncation of some tracers at the beginning of the capture. This option allows preventing that.-v view_id,--views=view_idβ Run the view with the given ID whencsysdigstarts. View IDs can be found in the view documentation pages incsysdig. Combine this option with a command line filter for complete output customization.--versionβ Print version number.
π FILTERING
Similarly to what you do with sysdig, you can specify a filter on the command line to restrict the events that csysdig processes. to modify the filter while the program is running, or to add a filter at runtime, click on the filter text in the UI with the mouse. yup, that's it. π
β¨ CUSTOMIZING CSYSDIG β¨
Okay bestie, this is the part where it gets good. csysdig is completely customizable, which means you can literally go in and modify any of the csysdig views β and yes, you can absolutely cook up your own views from scratch too. No cap. π
So here's the tea: just like sysdig chisels, csysdig views are Lua scripts. That's the whole vibe. π
The full rundown lives at this github wiki page, and you're gonna want to bookmark it:
https://github.com/draios/sysdig/wiki/csysdig-View-Format-Reference
π FILES π
/usr/share/sysdig/chiselsβ the global views directory. This is where the shared, everybody-gets-these views hang out. π~/.chiselsβ the personal views directory. Your own private stash, just for you. π«Ά
π AUTHOR π
Draios Inc. (dba Sysdig) β info@sysdig.com π
π SEE ALSO π
sysdig(8), strace(8), tcpdump(8), lsof(8)
β¨ and that's the whole page, bestie β¨ β the source/version and date on this one are literally just () (iconic minimalism, honestly π), so consider this your official cute sign-off. Now go forth and customize some views, you absolute legend. ππ¦πΈ
π¦ where this page comes from
- arch rolling: sysdig 0.41.4-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms