title: syslog-ng for multiple sources
body: <p>I am using <code>syslog-ng</code> on Ubuntu 12.4 server.</p>
  
  <p>I have few <strong>Mikrotik</strong> routers . In <code>syslog-ng</code> I have managed to add single host for logging. It's being Configured as below :</p>
  
  <pre><code># Accept connection on UDP
  source s_net { udp (); };
  
  # MIKROTIK ###########
  # Add Filter to add our mikroti
  filter f_mikrotik { host( "192.168.100.2" ); };
  # Add destination file where logs will be stored
  #destination df_mikrotik { file("/var/log/mikrotik.log"); };
  log { source ( s_net ); filter( f_mikrotik ); destination ( df_mikrotik ); };
  destination df_mikrotik {
   file("/var/log/mikrotik/mikrotik.${YEAR}.${MONTH}.${DAY}.log"
  # template("${HOUR}:${MIN}:${SEC} ${HOST} ${MSG} ${MSG}\n")
   template-escape(no));
  };
  </code></pre>
  
  <p>...It's working fine &amp; creates file <code>/var/log/mikrotik/mikrotik.${YEAR}.${MONTH}.${DAY}.log</code> </p>
  
  <p>But now I want to add more IP's of <strong>Mikrotik</strong> in it for centralized logging system with each host file separately.</p>
  
  <p>How can I add multiple entries so every host have its own log file?</p>