Hi guys,
I am trying out sysdig and i wanted to extract its output to a txt with each data separated by commas. My goal is to feed this to a sql db; below is the cmd I use.
The cmd does not yield any errors but does not output anything to the screen and when i tried to pipe the output to the file its empty. Am i doing something wrong?
sudo sysdig -p "%evt.num, %evt.datetime, %evt.latency, %evt.deltatime, %evt.dir, %evt.type, %evt.cpu, %
evt.info, %evt.is_io, %evt.io_dir, %evt.is_wait, %evt.is_syslog, %evt.is_io_read, %evt.is_io_write, %user.uid, %
user.name, %user.homedir, %user.shell, %group.gid, %
group.name, %syslog.severity, %syslog.message, %fd.num, %fd.type, %
fd.name, %fd.directory, %fd.filename, %fd.ip, %fd.cip, %fd.sip, %fd.cport, %fd.sport, %fd.l4proto, %fd.sockfamily, %fd.is_server, %proc.pid, %proc.exe, %
proc.name, %proc.cmdline, %proc.cwd, %proc.nchilds, %proc.ppid, %proc.pname, %proc.aname, %proc.loginshellid, %proc.duration, %proc.fdopencount, %proc.vmsize, %proc.vmrss, %proc.vmswap, %thread.pfmajor, %thread.pfminor, %thread.tid, %thread.ismain, %thread.exectime, %thread.totexectime" > sysdig_raw_data.txt
If anyone can give me some advice would be great.
Thanks