简体   繁体   English

当我通过sprint-integration-syslog从syslog客户端收到消息时,如何获取远程地址?

[英]how can I get the remote address when I receive message from syslog client by sprint-integration-syslog?

I want to write a syslog server using spring-integration-syslog. 我想使用spring-integration-syslog编写一个syslog服务器。

I can open my port 514 to receive data from various clients, but I don't know their host address. 我可以打开我的端口514来接收来自不同客户端的数据,但我不知道他们的主机地址。

Actually,I can see some log output by UnicastReceivingChannelAdapter,but these info I cannot get throw code. 实际上,我可以通过UnicastReceivingChannelAdapter看到一些日志输出,但这些信息我无法获取抛出代码。 The only channel I can use is "PollableChannel",but I cannot get any host information from it. 我可以使用的唯一通道是“PollableChannel”,但我无法从中获取任何主机信息。

The "host" field from the syslog message is available in the SyslogHeaders.HOST message header ( "syslog_host" ). syslog消息中的“host”字段位于SyslogHeaders.HOST消息头( "syslog_host" )中。

The raw IpHeaders (ip address etc) are currently not included; 目前不包括原始IpHeaders (IP地址等); I have opened an issue to fix that. 我已经开了一个问题来解决这个问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM