如何从客户端验证rsyslog与服务器的TCP通信? [英] How to verify rsyslog TCP communication with the server from the client side?

查看:439
本文介绍了如何从客户端验证rsyslog与服务器的TCP通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我登录的所有服务器是否都正确接收了TCP消息并进行了答复.我不想在服务器端实现任何其他功能,只想监视客户端计算机中的所有内容.

我希望能够使用其协议和端口执行类似ping测试的操作,但对rsyslog环境有效.

我也知道有一个调试"文件,但我认为它很难实际调试.

解决方案

impstats 可以为您提供计数器,以统计发送的邮件数量,可以发送的邮件数量,失败的邮件数量等等.您可以将此信息推送到您选择的监视工具,这是我们在Elasticsearch中存储impstats信息的方式: imrelp 并<当然,客户端上的href ="http://www.rsyslog.com/doc/master/configuration/modules/omrelp.html" rel ="nofollow"> omrelp .

I want to be able to know if all of the servers that I am logging to are properly receiving my TCP messages and answering back. I don't want to have to implement anything else on the server side, just want to monitor everything in the client machine.

I want to be able to do something like a ping test but valid for a rsyslog environment, using its protocols and ports.

I also know that there is a "debug" file but I believe its too much complicated to actually debug.

解决方案

impstats can give you counters on the amount of messages send, how many went OK, how many failed and so on. You can push this information to your monitoring tool of choice, here's how we do store impstats info in Elasticsearch: http://blog.sematext.com/2015/04/13/monitoring-rsyslogs-performance-with-impstats-and-elasticsearch/

Another option (you can also use it with impstats) is to use RELP instead of plain TCP. This does exactly what you want for each message: uses application-level acknowledgements to ensure the messages was received by the server. Though this will require you to use imrelp on the server and omrelp on the client, of course.

这篇关于如何从客户端验证rsyslog与服务器的TCP通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆