You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow setting a destination for log messages from wasm plugins #22669
Title: Allow setting a destination for log messages from wasm plugins
Description:
Currently, logging from wasm plugins all go to envoy's app logs. However, there are use cases for separating out log files for specific domains - for example, a WAF filter will often need to have a separate audit log which is used for actioning on suspicious events.
One approach could be for the config to define log destinations
One thing to keep in mind is that the current Proxy-Wasm ABI and various trivial integration (e.g. fwrite(stdout, ...) in C++ and logging macros in Rust) rely on having a default log destination, so it might be a good idea to add something like LogDestination default_log_destination (defaults to Envoy logs) to cover both: default output and a catch-all fallback for logging to an missing/unknown log_destination key.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Activity
anuraaga commentedon Aug 12, 2022
@PiotrSikora Would be great to hear your thoughts on this.
/cc @mathetake
PiotrSikora commentedon Aug 26, 2022
This looks fine.
One thing to keep in mind is that the current Proxy-Wasm ABI and various trivial integration (e.g.
fwrite(stdout, ...)in C++ and logging macros in Rust) rely on having a default log destination, so it might be a good idea to add something likeLogDestination default_log_destination(defaults to Envoy logs) to cover both: default output and a catch-all fallback for logging to an missing/unknownlog_destinationkey.cc @mpwarres
github-actions commentedon Sep 25, 2022
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon Oct 2, 2022
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
PiotrSikora commentedon Oct 7, 2022
@kyessenov could you reopen this as well? Thanks!
kyessenov commentedon Dec 11, 2023
xref #31148