2024-10-02 21:36:31 +08:00
|
|
|
# sysdig
|
|
|
|
|
|
|
|
> System troubleshooting, analysis and exploration.
|
|
|
|
> Capture, filter and store systemcalls.
|
|
|
|
> More information: <https://github.com/draios/sysdig/wiki>.
|
|
|
|
|
|
|
|
- Capture all the events from the live system and print them to screen:
|
|
|
|
|
|
|
|
`sysdig`
|
|
|
|
|
|
|
|
- Capture all the events from the live system and save them to disk:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sysdig {{[-w|--write]}} {{path/to/file}}.scap`
|
2024-10-02 21:36:31 +08:00
|
|
|
|
|
|
|
- Read events from a file and print them to screen:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sysdig {{[-r|--read]}} {{path/to/file}}.scap`
|
2024-10-02 21:36:31 +08:00
|
|
|
|
|
|
|
- Filter and Print all the open system calls invoked by cat:
|
|
|
|
|
|
|
|
`sysdig proc.name=cat and evt.type=open`
|
|
|
|
|
|
|
|
- Register any found plugin and use dummy as input source passing to it open params:
|
|
|
|
|
|
|
|
`sysdig -I dummy:'{{parameter}}'`
|
|
|
|
|
|
|
|
- List the available chisels:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sysdig {{[-cl|--list-chisels]}}`
|
2024-10-02 21:36:31 +08:00
|
|
|
|
|
|
|
- Use the spy_ip chisel to look at the data exchanged with ip address:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sysdig {{[-c|--chisel]}} spy_ip {{ip_address}}`
|