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.
我是一名系统管理员实习生,我正在 Windows Server 2012 VM 上设置一个 Nxlog 实例,该实例提供 Windows 应用程序日志和 C:\logs 中的所有内容。我已经很好地发送了应用程序日志,但是我找不到发送特定日志文件(例如 C:\logs)以进行解析的方法。
这就是我所拥有的:
Module im_file File "C:\logs\stuff.log" SavePos TRUE
假设你想使用 TCP 将文件移动到 Logstash,试试这个
<Input in> Module im_file File "c:\logs\stuff.log" SavePos TRUE </Input> <Output out> Module om_tcp Host 192.168.1.1 Port 514 </Output> <Route 1> Path in => out </Route>