Closed rcohencyberarmor closed 1 year ago
I suspect that the ring buffer overruns here, but it is not clear how should I manage the libs to avoid this.
@slashben @rcohencyberarmor, looking at the issue it seems like in some runs you faced some event drops, buffers are full and you miss some events. If you call the example like this,
sudo ./build/libsinsp/examples/sinsp-example -a -b ./build/driver/bpf/probe.o &> to-some-file
it is very likely that it will drop since it is printing every single event it sees into your file. Printing something in userspace consumes a lot of userspace time so no one is reading the buffers and they will become full in short time.
So first of all probably you have to use a filter -f proc.name=<redis-whatever>
and if this is not enough you can configure bigger buffers with the -d
option, something like -d 16777216
will create buffers of 16 MB (16777216
is the dimension is in bytes). Default buffer dimension is 8 MB
The libraries offer some other features like the simple-consumer
approach that allows you to ignore not interesting syscalls for your use case, but they are not implemented in this example, as the name said this is just an example of how to use the libraries, I would avoid to use it in real scenarios or in production.
Hoping this could help you, let me know if you have other doubts :)
The libraries offer some other features like the simple-consumer approach that allows you to ignore not interesting syscalls for your use case, but they are not implemented in this example, as the name said this is just an example of how to use the libraries, I would avoid to use it in real scenarios or in production.
I fully agree with Andrea here; we cannot declare an example as production ready
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Provide feedback via https://github.com/falcosecurity/community. /close
@poiana: Closing this issue.
Hi All,
I'm using the sinsp-example for monitor all syscalls of simple redis container running on k8s (on minikube) and I get inconsistent results. sometimes some syscalls are missing and sometimes all of the syscalls are found , I have compare the sinsp-example result to strace results. I have saw that the syscalls that are missing is called in the redis processes not so often(syscalls like uname, lseek, etc)
stage #6 need to be successful for all 10 times
the list of the syscalls between the attempts are thye missing one
kernel version: 5.15.0-48-generic linux distribuion: ~20.04.1-Ubuntu on the latest falco libs