Search code examples
linuxnxlog

How to make directory automatic in nxlog server using client $Hostname?


How to make directory automatic in nxlog server using client $Hostname ? nxlog client is windows m/c logs are getting on nxlog server but i want to create client $Hostname DIR because I have so many windows server to get the logs on that same server.


Solution

  • In Output section just add

    CreateDir   TRUE
    

    Like:

    <Output out>
    Module      om_file
    CreateDir   TRUE
    </output>