Using NXlog as a server and filtering output log files with hostname.
I am working on a centralised logging server using nxlog both as a client on a windows machine and as a server on rhel 7.
I want to filter the incoming logs using Hostname and SourceName.
I want that the hostname should be used to create the folder with the hostname in /var/log/$Hostname/ and
The filename should use the SourceName like /var/log/$Hostname/$SourceName.log
So nxlog server should create the folder and file using $hostname and $sourcename respectively.
Please help me with the config file for the same.