Closed charbyzard closed 1 year ago
@charbyzard we currently have an open PR to implement this functionality.
@charbyzard I won't have time to work on https://github.com/aws/aws-cdk/pull/16279 for a while so don't hesitate if you want to contribute
Yes, I will continue to work on this.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Description
It would be nice if passing a value for the VPC FlowLog
logFormat
parameter was exposed through the higher-level FlowLog construct. Currently, the only way to use this feature seems to be through the lower level CfnFlowLog construct.It seems like the L2 construct for FlowLogs was introduced before this feature came out and simply never got updated.
Use Case
The current default is to use log only the values defined in the
v2
specification, which excludes a lot of useful information (such as thetcp_flags
parameter, which indicates if a given packet wasSYN/ACK/SYN-ACK/RST/FIN
). The only way to specify a custom log format that includes desirable information is to use the lower level CloudFormation wrapper construct, which is more cumbersome to work with.Proposed Solution
Update the FlowLog module to support the
logFormat
property.Other information
Reference documentation: Logging IP traffic with VPC Flow Logs
Acknowledge