envoyproxy / envoyproxy/envoy

Allow setting a destination for log messages from wasm plugins

Open
#22,669 6 comments 3 reactions 0 assignees View on GitHub
area/wasm enhancement help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 22h
Merged PRs (30d)
430

Description

*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

```
message LogDestination {
oneof {
string file_path = 1;

string remote_log_service = 2;
}
}

message VmConfig {
...
map log_destination
```

And the log ABI would be extended to accept a log destination string which would be mapped with that config.

[optional *Relevant Links*:]

https://github.com/envoyproxy/envoy/issues/22557#issuecomment-1205785100

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.