goflow2: add configuration example for sflow mapping (#224)

This commit is contained in:
Louis
2023-10-18 19:54:47 -07:00
committed by GitHub
parent 8428ddad91
commit a0660824f0

View File

@@ -24,6 +24,7 @@ formatter:
- dst_mac
# additional fields
- icmp_name # virtual column
- csum # udp checksum
key:
- sampler_address
protobuf: # manual protobuf fields addition
@@ -39,6 +40,9 @@ formatter:
- name: egress_vrf_id
index: 40
type: varint
- name: csum
index: 999
type: varint
# Decoder mappings
ipfix:
mapping:
@@ -58,4 +62,12 @@ netflowv9:
- field: 61
destination: flow_direction
sflow:
mapping: []
mapping:
- layer: "udp"
offset: 48
length: 16
destination: csum
- layer: "tcp"
offset: 128
length: 16
destination: csum