Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(userspace/falco): support libs logging #2093

Merged
merged 3 commits into from
Jul 7, 2022
Merged

Conversation

jasondellaluce
Copy link
Contributor

@jasondellaluce jasondellaluce commented Jun 23, 2022

What type of PR is this?

/kind cleanup

/kind feature

Any specific area of the project related to this PR?

/area engine

What this PR does / why we need it:

This PR adds support to logs coming from libsinsp, which are now piped into the Falco logger. By default this is disabled in order to avoid breaking changes in the UX as for the messages printed to stderr. A new option libs_logger has been added in the falco.yaml configuration.

Which issue(s) this PR fixes:

Fixes #2068

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

update(userspace/falco): support libs logging

@jasondellaluce
Copy link
Contributor Author

/milestone 0.33.0

@poiana poiana added this to the 0.33.0 milestone Jun 27, 2022
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
@jasondellaluce jasondellaluce changed the title update(userspace/falco): use move semantics in logger and support libsinsp logging update(userspace/falco): support libsinsp logging Jun 27, 2022
@jasondellaluce jasondellaluce changed the title update(userspace/falco): support libsinsp logging update(userspace/falco): support libs logging Jun 27, 2022
…on (default to false)

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
FedeDP
FedeDP previously approved these changes Jun 30, 2022
Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Contributor

poiana commented Jun 30, 2022

LGTM label has been added.

Git tree hash: 87b685a135a42b162947e1facfa8b4668a7dfa40

@jasondellaluce
Copy link
Contributor Author

/remove-milestone 0.33.0
/milestone 0.32.1

@poiana poiana modified the milestones: 0.33.0, 0.32.1 Jun 30, 2022
@shane-lawrence
Copy link
Contributor

I think this will be very helpful when debugging libs changes. Thank you! ❤️

Co-authored-by: Luca Guerra <luca@guerra.sh>
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana poiana added the lgtm label Jul 1, 2022
@poiana
Copy link
Contributor

poiana commented Jul 1, 2022

LGTM label has been added.

Git tree hash: cc6994d91194a488c3d08cdd188e8d72db05a986

@poiana
Copy link
Contributor

poiana commented Jul 1, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, jasondellaluce

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [FedeDP,jasondellaluce]

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

Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
LGTM

@poiana poiana merged commit 62c1e87 into master Jul 7, 2022
@poiana poiana deleted the new/sinsp-logging branch July 7, 2022 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable debug logging for the falco libs from the falco binary
6 participants