-
Notifications
You must be signed in to change notification settings - Fork 909
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
new(userspace): honor new plugins exposed suggested output formats #3388
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,7 @@ class falco_configuration { | |
std::set<std::string> m_tags; | ||
std::string m_rule; | ||
std::string m_format; | ||
bool m_suggested_output = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When missing, default value is false. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any particular reason why it is enabled by default in the config but disabled if missing? Not saying this is wrong, I'm just wondering why. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's because i want it to be effective only when explicitly enabled; i don't want it to have any effect if you specify eg:
Ie: in this example, i only want But i am also open for more opinions. |
||
std::unordered_map<std::string, std::string> m_formatted_fields; | ||
std::set<std::string> m_raw_fields; | ||
}; | ||
|
@@ -290,6 +291,10 @@ struct convert<falco_configuration::append_output_config> { | |
} | ||
} | ||
|
||
if(node["suggested_output"]) { | ||
rhs.m_suggested_output = node["suggested_output"].as<bool>(); | ||
} | ||
|
||
return true; | ||
} | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, we enable
suggested_output
for all rules, tags and sources.