I had asked this question about a year ago, but was told to wait for the new 2.0 version.&nbsp; I&#39;m currently running the latest syslog-ng 2.0.7.<br><br>What I would like to do is put the line in a specific file based on part of the hostname.&nbsp; For example:<br>
<br>Hostname: subdomain.domain.tld<br><br>destination customer_firewall_logs { file(&quot;/logs/$TLD/$DOMAIN/$SUBDOMAIN/$R_YEAR-$R_MONTH-$R_DAY.log&quot;); };<br><br>WHERE $TLD is the tld of the hostname, $DOMAIN is the domain from the hostname, and $SUBDOMAIN is teh subdomain from the hostname.&nbsp; I would like to be able to regex this information out of the hostname to use in the destination.&nbsp; Is this possible and any tips on getting it to work correctly would be greatly appreciated.<br>