如何查找和停止空PING日志

时间:2017-06-21 13:18:17

标签: wso2 wso2esb

我看到每0.05秒创建一条日志消息。

To: /, MessageID: urn:uuid:33b0aab6-49a7-4646-bb49-883f202ff09b, 
Direction: request, Envelope: 
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope 
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body/>
</soapenv:Envelope>

当我点击更多时,我看不到更多信息

     Type   Date    Log Message

        2017-06-21 08:11:34,483 To: /, MessageID: urn:uuid:33b0aab6-49a7-4646-bb49-883f202ff09b, Direction: request,
Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body/></soapenv:Envelope>  More
TID[-1234] [ESB] [2017-06-21 08:11:34,483] INFO {org.apache.synapse.mediators.builtin.LogMediator} - To: /, MessageID:
urn:uuid:33b0aab6-49a7-4646-bb49-883f202ff09b, Direction: request,
Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body/>   </soapenv:Envelope>

我认为这是来自WSO2的ping消息。有办法阻止这个吗? 它过度调整我的消息日志..HELP

2 个答案:

答案 0 :(得分:1)

听起来您的ESB每隔0.05就会在/上收到空白的http请求

当它在非现有代理服务上收到请求时,默认序列&#34; main&#34;执行(它的行为是调用日志级别=&#34;完整&#34;)

  • 查找谁将此请求发送到您的ESB(监控探针?)
  • 更改默认&#34; main&#34;序列(删除日志中介)
  • 更改defaut log4j.properties以便使用RollingFileAppender

答案 1 :(得分:0)

它由您的服务中包含的日志中介生成: https://docs.wso2.com/display/EI610/Log+Mediator

您可以选择log level =“custom”来自定义日志。请参见上页的示例2.