Simple network traffic capture utility that relies on gopacket/libpcap and AWS Flow Logs to visualize network traffic.
Create Vizceral network traffic visualizations using BPF filters and AWS VPC Flow Logs. The tool build a JSON model that is read by Vizceral to visualize traffic.
The program's VPC FlowLogs exporter works only if the targeted instances' VPC have flow logs enabled and the logs are in CloudWatch Logs
Run: go build
in the current directory, then run it using the parameter and environment variables configuration:
-
params:
./network-logger --fileowner=OWNER --out=.....vizceral-example/dist/generated.json
. This will case thegenerated.json
file to be exported in the location specified by the parameter -
environment variables:
- SOURCE:
vpc-flowlog
orbpf-filter
- bpf-filter implementation is in progress - AWS_REGIONS: comma separated AWS region values to fetch VPC flow logs from
- INSTANCE_IDS: comma separated EC2 instance IDs
- AWS_REGION: sdk region
- AWS_PROFILE: sdk profile
- SOURCE:
- BPF exporter is in progress
- No tests