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

aucoalesce: Make warning capturing configurable #100

Open
andrewkroh opened this issue Feb 2, 2022 · 0 comments
Open

aucoalesce: Make warning capturing configurable #100

andrewkroh opened this issue Feb 2, 2022 · 0 comments

Comments

@andrewkroh
Copy link
Member

The current interface to aucoalesce is func CoalesceMessages(msgs []*auparse.AuditMessage) (*Event, error).

Given that the warnings produced by this function are mainly for debugging and development we could change the function to accept a variable number of options like func CoalesceMessages(msgs []*auparse.AuditMessage, opts ...Option) (*Event, error). Then we could pass an option to enable the inclusion of warnings with the event. Like

    evt, err := aucoalesce.CoalesceMessages(msgs, aucoalesce.IncludeWarnings)

Future options might be to make ECS enrichment configurable.

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

1 participant