nxlog
nxlog 的 windows 安装文件下载 url 见:
http://nxlog.org/system/files/products/files/1/nxlog-ce-2.8.1248.msi
配置文件中有3个关键设置,分别是:input(日志输入端)、output(日志输出端)、route(绑定某输入到具体某输出)。。
例子
- logstash服务器ip地址:192.168.1.100
- windows测试服务器ip地址:192.168.1.101
收集流程:
- nxlog 使用模块 im_file 收集日志文件,开启位置记录功能
- logstash 使用input/tcp ,收集日志,输出至es
Nxlog配置文件
<Input testfile>
Module im_file
File "C:\\test\\\*.log"
SavePos TRUE
Module om_tcp
Host 192.168.1.100
</Output>
<Route 1>
Path testfile => out