{"id":170,"date":"2019-03-02T19:05:43","date_gmt":"2019-03-02T19:05:43","guid":{"rendered":"http:\/\/tonysbit.blog\/?p=164"},"modified":"2019-03-02T19:05:43","modified_gmt":"2019-03-02T19:05:43","slug":"troubleshooting-elk-syslog-performance","status":"publish","type":"post","link":"https:\/\/tonysbit.blog\/?p=170","title":{"rendered":"Troubleshooting ELK Syslog Performance"},"content":{"rendered":"\n
When running Logstash in large scale environments it can be quite difficult to troubleshoot performance specifically when dealing with UDP packets.<\/p>\n
The issue could occur at multiple layers, in order of dependent layers of concern:<\/p>\n
The following steps assume installation of Logstash on a Linux machine (CentOS 7.4) but similar steps can be used for other machines.<\/p>\n<\/div>\n\n\n\n
Issue: Communication issues from source<\/strong><\/p>\n Diagnose:<\/em><\/p>\n Fixes:<\/em><\/p>\n Issue: Dropped UDP Packets<\/strong><\/p>\n Diagnose:<\/em><\/p>\n Fixes:<\/em><\/p>\n If there is packet loss, check the CPU of the nodes the Logstash is pointed at (should be hot).<\/p>\n<\/li>\n Commercial Only: Check the pipeline via monitoring<\/a> to verify where there is a high processing time.<\/p>\n<\/li>\n<\/ol>\n<\/div>\n\n\n\n\n
tcpdump -i ens160 udp\n<\/code><\/pre>\n<\/li>\n
telnet 10.10.10.4 514\n<\/code><\/pre>\n<\/li>\n<\/ol>\n
\n
\n
watch netstat -s --udp\n<\/code><\/pre>\nA good read on how to view the results of this command can be found here<\/a><\/li>\n<\/ol>\n
\n