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

    收集流程:

    1. nxlog 使用模块 im_file 收集日志文件,开启位置记录功能
    2. logstash 使用input/tcp ,收集日志,输出至es

    Nxlog配置文件

    1. <Input testfile>
    2. Module im_file
    3. File "C:\\test\\\*.log"
    4. SavePos TRUE
    5. Module om_tcp
    6. Host 192.168.1.100
    7. </Output>
    8. <Route 1>
    9. Path testfile => out