We have load balancing and the same name on multiple instances of WebSphere 6.1.
Is there a way to WebSphere need to add the physical hostname to the WebSphere SystemOut.log lines (for example, to prepend to every line)?
Thanks, Bert
We have load balancing and the same name on multiple instances of WebSphere 6.1.
Is there a way to WebSphere need to add the physical hostname to the WebSphere SystemOut.log lines (for example, to prepend to every line)?
Thanks, Bert
我假设您正在尝试查看负载是如何分布在所有 WAS 实例中的(在您提到的负载平衡的集群中)
这是您正在使用的 Web 应用程序吗?
如果是,cloneID 会给你答案。集群中的每个服务器都被赋予一个唯一的克隆 ID。
查看 Web 服务器的插件日志并查看哪个服务器收到了请求。
这可用于 Web 应用程序以查看哪个服务器为请求提供服务。
HTH芒鲁
您可以实现自定义日志格式化程序和处理程序并将它们附加到根记录器。它应该捕获所有内容,并且您应该能够决定完整的日志记录格式和位置。该示例适用于 6.0,但该示例应该仍然有效。
或者,您可以实现类似的日志格式化程序并将JVM 日志配置为使用自定义日志格式。