diff --git a/plugins/inputs/netflow/README.md b/plugins/inputs/netflow/README.md index da84c70247b1c..c96b2631ab027 100644 --- a/plugins/inputs/netflow/README.md +++ b/plugins/inputs/netflow/README.md @@ -132,4 +132,8 @@ netflow,source=127.0.0.1,version=NetFlowV9 protocol="tcp",src="192.168.119.100", ### sFlow v5 ```text +netflow,source=127.0.0.1,version=sFlowV5 out_errors=0i,out_bytes=3946i,status="up",in_unknown_protocol=4294967295i,out_unicast_packets_total=29i,agent_subid=100000i,interface_type=6i,in_unicast_packets_total=28i,out_dropped_packets=0i,in_bytes=3910i,in_broadcast_packets_total=4294967295i,ip_version="IPv4",agent_ip="192.168.119.184",in_snmp=3i,in_errors=0i,promiscuous=0i,interface=3i,in_mcast_packets_total=4294967295i,in_dropped_packets=0i,sys_uptime=12414i,seq_number=2i,speed=1000000000i,out_mcast_packets_total=4294967295i,out_broadcast_packets_total=4294967295i 12414000000 +netflow,source=127.0.0.1,version=sFlowV5 sys_uptime=17214i,agent_ip="192.168.119.184",agent_subid=100000i,seq_number=2i,in_phy_interface=1i,ip_version="IPv4" 17214000000 +netflow,source=127.0.0.1,version=sFlowV5 in_errors=0i,out_unicast_packets_total=36i,interface=3i,in_broadcast_packets_total=4294967295i,ip_version="IPv4",speed=1000000000i,out_bytes=4408i,out_mcast_packets_total=4294967295i,status="up",in_snmp=3i,in_mcast_packets_total=4294967295i,out_broadcast_packets_total=4294967295i,promiscuous=0i,in_bytes=5568i,out_dropped_packets=0i,sys_uptime=22014i,agent_subid=100000i,in_unknown_protocol=4294967295i,interface_type=6i,in_dropped_packets=0i,in_unicast_packets_total=37i,out_errors=0i,agent_ip="192.168.119.184",seq_number=3i 22014000000 + ``` diff --git a/plugins/inputs/netflow/testcases/sflow_v5_example/expected.out b/plugins/inputs/netflow/testcases/sflow_v5_example/expected.out index 22a502b6ac514..99b521f61f346 100644 --- a/plugins/inputs/netflow/testcases/sflow_v5_example/expected.out +++ b/plugins/inputs/netflow/testcases/sflow_v5_example/expected.out @@ -1 +1 @@ -netflow,source=127.0.0.1,version=NetFlowV5 protocol="tcp",src="140.82.121.3",src_port=443u,dst="192.168.119.100",dst_port=55516u,flows=8u,in_bytes=87477u,in_packets=78u,first_switched=86400660u,last_switched=86403316u,tcp_flags="...AP...",engine_type="19",engine_id="0x56",sys_uptime=90003000u,src_tos="0x00",bgp_src_as=0u,bgp_dst_as=0u,src_mask=0u,dst_mask=0u,in_snmp=0u,out_snmp=0u,next_hop="0.0.0.0",seq_number=0u,sampling_interval=0u +netflow,source=127.0.0.1,version=sFlowV5 out_errors=0u,out_bytes=3946u,status="up",in_unknown_protocol=4294967295u,out_unicast_packets_total=29u,agent_subid=100000u,interface_type=6u,in_unicast_packets_total=28u,out_dropped_packets=0u,in_bytes=3910u,in_broadcast_packets_total=4294967295u,ip_version="IPv4",agent_ip="192.168.119.184",in_snmp=3u,in_errors=0u,promiscuous=0u,interface=3u,in_mcast_packets_total=4294967295u,in_dropped_packets=0u,sys_uptime=12414u,seq_number=2u,speed=1000000000u,out_mcast_packets_total=4294967295u,out_broadcast_packets_total=4294967295u