-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Initializing af_packet sniffer failed #522
Comments
FYI - ran into this on darwin as well
|
@djschny af_packet isn't available on darwin because it's part of the Linux kernel. https://www.elastic.co/guide/en/beats/packetbeat/current/configuration-interfaces.html#_type |
I have the same issue interfaces: version ERROR Memory [root@localhost packetbeat]# free -om Linux Centos 6.7 |
+1 packetbeat version 5.0.0-SNAPSHOT (amd64), libbeat 5.0.0-SNAPSHOT |
As a temporary workaround, I suggest to set the
|
Unfortunately,I also encountered a similar problem... and configure is : |
Closing. This is an old issue without any progress for a long time. af_packet needs to allocate some continues memory in the kernel as a shared ring buffer. If this fails, or if the user is not allowed to create more RAW sockets, then af_packet initialization will fail. Feel free to comment if the issue still persists. |
packetbeat.yml:
interfaces:
device: any
type: af_packet
ERROR Log:
2015/12/14 03:35:53.074127 sniffer.go:129: DBG Sniffer type: af_packet device: any
2015/12/14 03:35:53.079966 packetbeat.go:195: CRIT Initializing sniffer failed: Error creating sniffer: setsockopt packet_rx_ring: cannot allocate memory
uname -a output:
Linux testmachine1 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
packetbeat rpm:
https://download.elastic.co/beats/packetbeat/packetbeat-1.0.0-x86_64.rpm
free output:
total used free shared buffers cached
Mem: 3924628 2014656 1909972 8 176064 1584936
-/+ buffers/cache: 253656 3670972
Swap: 4194300 6196 4188104
The text was updated successfully, but these errors were encountered: