Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要运行一个显示所有经过身份验证的用户的报告。查询本身似乎很简单。我的问题是我必须从两组日志中收集数据(我们在负载平衡设置中运行我们的 Web 应用程序)。有没有人必须处理类似的任务?
如果您可以通过一台机器访问两个日志,那么您的 FROM 子句当然可以包含两个日志目录路径:
SELECT TOP 10 * FROM \\server1\Logs\*ex*.log, \\server2\Logs\*ex*.log
在我必须解析日志的每个环境中,我们都有适当的流程将日志下拉到单个服务器,然后我们在那台机器上进行任何解析(它用作备份)。