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

Support output formats #5

Merged
merged 12 commits into from
Feb 24, 2016
Merged

Support output formats #5

merged 12 commits into from
Feb 24, 2016

Conversation

henridf
Copy link
Contributor

@henridf henridf commented Feb 24, 2016

This PR adds support for output formats in rules (| <output_format> syntax and plumbing).

It works with a companion PR on the sysdig repo that will go soon.

Also a few cleanups and fixes for things I encountered along the way.

This is needed so that rule_loader (which should be renamed in a later pass..) can tag
filters with their index.
This allows the compiler to define per-rule formats. They are currently
instantiated and stored on the c++ side, but not being made use of yet.
So that we can individually tag expressions that originate from the same macro (see next commit).
This allows to match events back up with the display output they are
associated with.
Before this change, events were only printed if they had all the
fields (same behavior as with sysdig when the output format doesn't have
a leading "*"). With this change, all events are printed; those that
don't have all fields are prefixed with a notification.
henridf added a commit that referenced this pull request Feb 24, 2016
@henridf henridf merged commit ef3b272 into master Feb 24, 2016
@henridf henridf deleted the replumb-events branch February 24, 2016 16:43
@henridf henridf restored the replumb-events branch February 24, 2016 16:43
@mstemm mstemm deleted the replumb-events branch July 12, 2016 19:41
@jacques- jacques- mentioned this pull request Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant