-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need assistance in capturing the flow data using nfprobe plugin #846
Comments
Just to confirm - based on the iface names -, are you using VPP? |
@msune , yes i am using it in VPP |
Also, is there any way i can add hostname dynamically to label as environment variable instead of hardcoding ? |
I think I am able to reproduce this with the HEAD of
Execution:
|
@msune , i have added pcap_interfaces.map as follows to get the interface index Interface map: ifindex=100 ifname=vpp1 direction=out With this combination able to get the interface index. How ever, facing 2 more challenges.
@paololucente, can you please help us here. |
I think this is explained here:
Which I believe it means that it will be 0, so it is consistent. |
Description
We are planning to use nfprobe plugin to monitor a ubuntu box.
All the flows are getting captured, but the interface index always getting as 0.
Is there any possibility of capturing on which interface the flow has been generated ?
Can we achieve it using tags or label ? I need to add interface name alone to the flow data.
If i specify direction in the pcap_interface.map, able to capture the traffic in one of the direction only.
As i am looking to capture both directions traffic.
Version
Promiscuous Mode Accounting Daemon, pmacctd 1.7.9-git (20240618-0 (a2f3eaa))
Config:
daemonize: false
debug: true
pcap_ifindex: map
pcap_interfaces_map: /etc/pmacct/pcap_interfaces.map
aggregate: src_host, dst_host, in_iface, out_iface, timestamp_start, timestamp_end, src_port, dst_port, proto, tos
plugins: nfprobe
nfprobe_receiver: x.x.x.:xxx
nfprobe_version: 10
Interface map:
ifindex=100 ifname=vpp1
ifindex=200 ifname=vpp2
ifindex=300 ifname=vpp3
ifindex=400 ifname=vpp10
ifindex=500 ifname=vpp14
ifindex=600 ifname=vpp30
Logs:
INFO ( default/core ): Reading configuration file '/etc/pmacct/pmacctd.conf'.
INFO ( default/core ): [/etc/pmacct/pcap_interfaces.map] (re)loading map.
INFO ( default/core ): [/etc/pmacct/pcap_interfaces.map] map successfully (re)loaded.
INFO ( default/core ): [vpp1,100] link type is: 1
INFO ( default/core ): [vpp2,200] link type is: 1
INFO ( default/core ): [vpp3,300] link type is: 1
INFO ( default/core ): [vpp10,400] link type is: 1
INFO ( default/core ): [vpp14,500] link type is: 1
INFO ( default/core ): [vpp30,600] link type is: 1
Output Received:
{
"host": {
"ip": "172.168.100.1"
},
"netflow": {
"ipClassOfService": 0,
"flowStartMilliseconds": "2025-01-01T06:46:40.166Z",
"tcpControlBits": 0,
"octetDeltaCount": 70,
"ingressInterface": 0,
"sourceTransportPort": 50451,
"destinationIPv4Address": "224.0.0.251",
"ipVersion": 4,
"destinationTransportPort": 5353,
"version": 10,
"sourceIPv4Address": "192.168.1.6",
"protocolIdentifier": 17,
"protocolIdentifierString": "UDP",
"egressInterface": 0,
"flowDirection": 0,
"packetDeltaCount": 1,
"flowEndMilliseconds": "2025-01-01T06:46:40.166Z"
},
"@timestamp": "2025-01-01T06:50:01.000Z",
"@Version": "1"
}
Please guide me in correcting the interface index.
The text was updated successfully, but these errors were encountered: