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

file_output not working when falco is running as a service #1763

Closed
pabloopez opened this issue Oct 25, 2021 · 5 comments
Closed

file_output not working when falco is running as a service #1763

pabloopez opened this issue Oct 25, 2021 · 5 comments

Comments

@pabloopez
Copy link
Contributor

Using the default falco.yaml file and applying changes to the file_output option as follows:

file_output:
  enabled: true
  keep_alive: true
  filename: /path/to/my/file.txt

Alerts are written to the file if falco is executed with:

falco

but when executed as a service, no alerts are outputted to the file (but I can see alerts in the logs of the service):

systemctl start falco

Expected behaviour

The expected behaviour is alerts being printed into the file, same behavior as observed when running falco manually from the cli.

Environment

  • Falco version:
Falco version: 0.30.0
Driver version: 3aa7a83bf7b9e6229a3824e3fd1f4452d1e95cb4
  • System info:
{
  "machine": "x86_64",
  "nodename": "host",
  "release": "5.4.0-1040-gcp",
  "sysname": "Linux",
  "version": "#43-Ubuntu SMP Fri Mar 19 17:49:48 UTC 2021"
}
  • OS:
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
  • Kernel:
Linux host 5.4.0-1040-gcp #43-Ubuntu SMP Fri Mar 19 17:49:48 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Installation method:
apt
@FedeDP
Copy link
Contributor

FedeDP commented Nov 8, 2021

Hi! Thanks for opening this bug report!
Is filename: /path/to/my/file.txtplaced in your home?
Note the ProtectHome=read-only in the falco service file: you are not able to open a log file in any /home/ subdir.

I just opened a PR (#1773) to at least give user a clue if output_file failed to be created.

@poiana
Copy link
Contributor

poiana commented Feb 6, 2022

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
Copy link
Contributor

poiana commented Mar 9, 2022

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
Copy link
Contributor

poiana commented Apr 8, 2022

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 poiana closed this as completed Apr 8, 2022
@poiana
Copy link
Contributor

poiana commented Apr 8, 2022

@poiana: Closing this issue.

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.

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

3 participants