## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally under
## /usr/share/doc/nxlog-ce/ and is also available online at
## http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html

########################################
# Global directives                    #
########################################
User nxlog
Group nxlog

LogFile /var/log/nxlog/nxlog.log
LogLevel INFO

########################################
# Modules                              #
########################################
<Extension _syslog>
    Module      xm_syslog
</Extension>

<Extension fileop>
    Module xm_fileop
</Extension>

<Input inTcp>
    Module	im_tcp
    Port	53200
    Host	0.0.0.0
</Input>

<Output fileOut>
    Module	om_file
    File 	"/var/log/nxlog/inbox/" + $MessageSourceAddress + "/"+ file_basename($FileName)
    Exec	log_info("Source Address:" + $MessageSourceAddress + ", OutFile - FileName: " + $FileName);
    CreateDir	TRUE
</Output>

########################################
# Routes                               #
########################################
<Route 1>
    Path	inTcp => fileOut
</Route>