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

Error reporting for output channels #1466

Closed
leogr opened this issue Oct 30, 2020 · 12 comments
Closed

Error reporting for output channels #1466

leogr opened this issue Oct 30, 2020 · 12 comments

Comments

@leogr
Copy link
Member

leogr commented Oct 30, 2020

Motivation

Errors that may occur in output channels are not being reported. This behavior can lead users to wrong assumptions.

Feature

Add a comprehensive error reporting mechanism to the Falco outputs implementation.
For example, when an output channel cannot write to the configured file or cannot reach the configured HTTP endpoint, Falco should report the error to stderr at least.

Alternatives

Do nothing is always an alternative, but users have almost no chance to get what is going on without error reporting.

Additional context

There could be cases where Falco can't continue to run when one of such error occurs. For example, what to do if Falco cannot write to a file because there's no more space on the disk?

@poiana
Copy link

poiana commented Jan 28, 2021

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

@leogr leogr added this to the 1.0.0 milestone Jan 29, 2021
@leogr
Copy link
Member Author

leogr commented Jan 29, 2021

/remove-lifecycle stale

@MINQ1NG
Copy link

MINQ1NG commented Apr 12, 2021

evt.type = write is igored by low-level settings of falco, that's why it doesn't output any error reporting after run falco. So, the left issue is find out how remove the wirte type from ignored list.

@fntlnz
Copy link
Contributor

fntlnz commented Apr 13, 2021

@MINQ1NG you can do that by passing the -A flag when starting Falco, however that has a performance penalty depending on the environment's load.

@leodido
Copy link
Member

leodido commented Apr 13, 2021

To do not ignore a particular event type (eg. write) we can set its event mask (using the libsinsp interface, set_eventmask if I do not recall it wrong).

@poiana
Copy link

poiana commented Jul 12, 2021

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

@leogr
Copy link
Member Author

leogr commented Jul 12, 2021

/remove-lifecycle stale

@poiana
Copy link

poiana commented Oct 10, 2021

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

@leogr
Copy link
Member Author

leogr commented Oct 11, 2021

/remove-lifecycle stale

@jasondellaluce
Copy link
Contributor

I don't know if this is outdated, but we seem to cover this right now: 👇🏼

falco_logger::log(LOG_ERR, o->get_name() + ": " + string(e.what()) + "\n");

Falco catches exceptions arising from output channels and logs them with LOG_ERR level.

@leogr
Copy link
Member Author

leogr commented Nov 12, 2021

I don't know if this is outdated, but we seem to cover this right now: 👇🏼

falco_logger::log(LOG_ERR, o->get_name() + ": " + string(e.what()) + "\n");

Falco catches exceptions arising from output channels and logs them with LOG_ERR level.

You are right, this issue was fixed by #1451. Thank you for noticing that!

/close

@poiana
Copy link

poiana commented Nov 12, 2021

@leogr: Closing this issue.

In response to this:

I don't know if this is outdated, but we seem to cover this right now: 👇🏼

falco_logger::log(LOG_ERR, o->get_name() + ": " + string(e.what()) + "\n");

Falco catches exceptions arising from output channels and logs them with LOG_ERR level.

You are right, this issue was fixed. Thank you for noticing that!

/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 poiana closed this as completed Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants