draios / sysdig

Linux system exploration and troubleshooting tool with first class support for containers
http://www.sysdig.com/
Other
7.78k stars 725 forks source link

support for reading a writing gzipped trace files #1

Closed ldegio closed 10 years ago

ldegio commented 10 years ago

This is not hard per se, but requires including gzip as a dependency, which will make the build system much more complicated.

kristopolous commented 10 years ago

This seems to work fine:

mkfifo pipe
[terminal 1] cat pipe | gzip > cap.gz
[terminal 2] sysdig -w pipe 

This solution also has the nice feature of supporting unrar, pkzip, 7z, lzma, bzip2, and unix compress out of the box! =^D

Could being a bit clever and pivoting off of the fact we can do it in 2 extra lines be exploited and presented to the user in a nicer interface?

gianlucaborello commented 10 years ago

This should be fixed, now sysdig can be used with the -z option to produce compressed trace files, and it will be able to read them on all the supported platforms as well.