It can sometimes be desired to separate OS level logs from application logs, one approach for doing so using NXLog is to use a different hostname for specific inputs. In the example below, we are setting a specific hostname for a specific log file:
<Input applog>
InputType LineBased
Module im_file
File "D:/apps/myApp.log"
CloseWhenIdle TRUE
Exec $Hostname = “my.host.name”;
</Input>
<Output>
Module om_udp
Port 5514
Host <unomaly hostname>
</Output>