1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

nxlog.conf

Discussion in 'Install Logstash and Kibana on a Windows server.' started by zen.xen, Apr 6, 2016.

  1. zen.xen

    zen.xen New Member Member

    Hello,
    I try to send logs from Windows machine to ELK with nxlog and it doesn't work, here is my nxlog.conf, maybe someone will correct it.
    What and where should I change on ELK server?

    HTML:
    define ROOT C:\Program Files (x86)\nxlog
    
    Moduledir %ROOT%\modules
    CacheDir %ROOT%\data
    Pidfile %ROOT%\data\nxlog.pid
    SpoolDir %ROOT%\data
    LogFile %ROOT%\data\nxlog.log
    
    <Extension json>
        Module      xm_json
    </Extension>
    
    <Input in>
        Module      im_msvistalog
        Exec to_json();
    </Input>
    
    <Output elasticsearch>
        Module      om_http
        URL         http://192.168.11.105:9200
        ContentType application/json
        Exec        set_http_request_path(strftime($EventTime, "/logstash-%Y.%m.%d/" + $SourceModuleName)); rename_field("timestamp","@timestamp"); to_json();        
    </Output>
    
    <Route 1>
        Path        in => elasticsearch
    </Route>
    
     

Share This Page