libs icon indicating copy to clipboard operation
libs copied to clipboard

libsinsp: increase log-level of cri errors

Open alban opened this issue 3 years ago • 18 comments

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area driver-kmod

/area driver-ebpf

/area libscap

/area libsinsp

/area tests

/area proposals

What this PR does / why we need it:

Sometimes the container metadata is missing. In order to figure out why the CRI does not return the container metadata, increase log-level.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

When using this patch in sysdig, you could take https://github.com/draios/sysdig/pull/1871

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Alban Crequy [email protected]

alban avatar Apr 27 '22 15:04 alban

Welcome @alban! It looks like this is your first PR to falcosecurity/libs 🎉

poiana avatar Apr 27 '22 15:04 poiana

Hi @alban. Thanks for your PR.

I'm waiting for a falcosecurity member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

poiana avatar Apr 27 '22 15:04 poiana

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: alban To complete the pull request process, please assign fededp after the PR has been reviewed. You can assign the PR to them by writing /assign @fededp in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

poiana avatar Apr 27 '22 15:04 poiana

Hi! Thanks for this PR! I think that the main issue is that increasing the log level would flood your log super quickly! I guess that's the reason why it was put as debug.

FedeDP avatar Apr 27 '22 15:04 FedeDP

Hi @FedeDP, yes, that's indeed a concern. My goal is to make use of that in production, so I tried to only increase the log level of actual errors, so that it would not be flooded. I left other debugs untouched. Do you think it could still flood the logs?

alban avatar Apr 27 '22 15:04 alban

I have a version of this patch rebased on commit e5c53d648f3c4694385bbe488e7d47eaa36c229a (see branch alban_e5c53d648f3c_cri_getstatususing) because that's what sysdig is using (see cmake/modules/falcosecurity-libs.cmake#L32). Sysdig can be compiled with that patch with something like the following:

$ cmake ../sysdig -DFALCOSECURITY_LIBS_SOURCE_DIR=$(realpath $PWD/../../falcosecurity/libs) && time make

Then, the error logs from this patch should be visible with the command sysdig -D --log-level=error.

alban avatar Apr 28 '22 10:04 alban

Closing and reopening to trigger the CI /close

leogr avatar Apr 28 '22 12:04 leogr

@leogr: Closed this PR.

In response to this:

Closing and reopening to trigger the CI /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

poiana avatar Apr 28 '22 12:04 poiana

/reopen

leogr avatar Apr 28 '22 12:04 leogr

@leogr: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

poiana avatar Apr 28 '22 12:04 poiana

/ok-to-test

leogr avatar Apr 28 '22 12:04 leogr

Hi, @alban thanks for that. I don't like too much the idea since maybe not all Falco users would have this severity enabled, maybe the best solution is to build it from sources changing only these lines and seeing what is not working correctly. Anyway, if this is not a viable solution for you, we may temporarily enable this severity, let's see what other maintainers think about it

Andreagit97 avatar Apr 29 '22 10:04 Andreagit97

/test build-libs-minimal build-libs-bundled-deps

FedeDP avatar May 06 '22 14:05 FedeDP

Hi, @alban do you have any news on this PR?

Andreagit97 avatar Jun 01 '22 15:06 Andreagit97

This issue https://github.com/falcosecurity/falco/issues/2068 presents a possible solution to the problem addressed in this PR

Andreagit97 avatar Jun 16 '22 20:06 Andreagit97

@alban PTAL, this enables logs from libsinsp into Falco! 👉🏼 https://github.com/falcosecurity/falco/pull/2093

jasondellaluce avatar Jun 30 '22 15:06 jasondellaluce

@alban can you try with Falco 0.32.1 that ships the PR linked by @jasondellaluce ? If it works for you, i think we can close this one :)

FedeDP avatar Jul 13 '22 08:07 FedeDP

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

poiana avatar Oct 11 '22 09:10 poiana

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

poiana avatar Nov 10 '22 15:11 poiana

/milestone 0.11.0

FedeDP avatar Dec 02 '22 13:12 FedeDP

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 avatar Jan 01 '23 15:01 poiana

@poiana: Closed this PR.

In response to this:

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

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

poiana avatar Jan 01 '23 15:01 poiana