-
Notifications
You must be signed in to change notification settings - Fork 902
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
Access to more variables in output_fields #2127
Comments
This makes a lot of sense. Will look into it and hopefully get this in the next release! /milestone 0.33.0 |
I just noticed the same thing. Parsing - rule: Attach/Exec Pod
append: true
output: src_ip=%json.value[sourceIPs/0]
- rule: K8s Namespace Deleted
append: true
output: src_ip=%json.value[sourceIPs/0]
... Falco 0.32.2 fails to load it because it does not contain an
Would be great to see support for appending to output or even just adding extra fields to output_fields in 0.33.0 😃 |
Out of curiosity, was this supported in Falco <= 0.31.1, or is this a brand new feature request? I agree this can be useful for many. @robinlandstrom Would you like to open. a feature request issue on this repo to support the cases you reported in these code examples? |
I don't think it was supported in Falco <= 0.31.1, have not tried thou. Just being able to append to rule output as shown by @wdoekes would be enough for my use case. |
/milestone 0.33.0 |
/remove-milestone 0.33.0 /milestone 0.34.0 |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
/remove-lifecycle stale |
/milestone 0.35.0 |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
/remove-lifecycle stale |
/milestone 0.36.0 Sorry we havent' got the time to work on this during this release cycle. |
In addition to defining extra output fields for a single rule, it would be nice to be able to define extra output fields for every rule with a certain tag (e.g. k8s) or source (e.g. k8s_audit). |
@wdoekes @sboschman @robinlandstrom I am on it. There are other issues remotely realted to this, please allow for some time to triage them all and then decide on necessary patches to support all features requests. The first PR is just to expand |
@incertum if you want more details on the setup we are trying to run, to perhaps better decide if and how falco can better support such a scenario, let me know. It is of course just one of many scenarios described in this issue and all the related issues, but hopefully there is enough similarity to cover most/all of them. |
@sboschman this would be amazing! And agreed let's collect all information. We can then see what could be the best solution for #2127 (comment). By the way my setup is a custom script and I do exactly what you describe in there I add certain output fields when xyz tags are available. But of course I create a whole new patched up rules file where I also prioritize the ordering of rules given it's currently "first match wins". This is also something @jasondellaluce and @leogr are thinking about a lot how we can expose better options to end users. Thank you! |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
Sorry, I had lost track of this. |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
This issue should be addressed by #2981 cc @LucaGuerra correct? 🤔 |
Stale issues rot after 30d of inactivity. Mark the issue as fresh with Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle rotten |
@LucaGuerra ping |
Rotten issues close after 30d of inactivity. Reopen the issue with Mark the issue as fresh with Provide feedback via https://github.com/falcosecurity/community. |
@poiana: Closing this issue. In response to this:
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. |
Motivation
Right now, we're parsing the
jsonOutput: true
json generated by falco and feeding it to Slack.Instead of using the unformatted
"output"
, we use the"output_fields"
. This way, we can do something like this.We take this json:
And we turn it into this:
We can create that nicely formatted message because all fields are separately accessible.
All
%
-fields mentioned in theoutput
are available inoutput_fields
, as seen above.But, we do not have access to -- for instance --
proc.aname[2]
.The easy solution sounds like amending the
output:
in the default rules. But alas, this does not work.The
condition
s are amended, but theoutput
is not amended/overwritten: so I cannot get more values in theoutput_fields
without copying the entireWrite below root
rule to something new.Feature
I'd like to be able to get more values in the
output_fields
.output
,also_add_these_variables_in_output_fields: [proc.aname[2], ...]
on the rule,Cheers,
Walter Doekes
OSSO B.V.
The text was updated successfully, but these errors were encountered: