<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#0050d0">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Look at
<a class="moz-txt-link-freetext" href="http://www.balabit.com/dl/guides/syslog-ng-v3.0-guide-admin-en.pdf">http://www.balabit.com/dl/guides/syslog-ng-v3.0-guide-admin-en.pdf</a> in
the "macros" section. You can use variables inside the file()
statement. It even has an example doing exactly what youre wanting to
do.</font></font><br>
<br>
Sent: Wednesday, March 03, 2010 5:48:49 AM<br>
From: peceka <a class="moz-txt-link-rfc2396E" href="mailto:peceka@gmail.com">&lt;peceka@gmail.com&gt;</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a> <br>
Subject: [syslog-ng] composing file names with system varible
<blockquote
 cite="mid:f0f70e5e1003030448k184be1c0jb22161488285059b@mail.gmail.com"
 type="cite">
  <pre wrap="">Hi,

i've on my machine file with some name, for example:
# cat /var/hostname
smeagol

now i want to have log files like this:
/var/log/smeagol-all.log

if i change content of /var/hostname and then restart syslog-ng,
syslog-ng shoud start logging to files with new name.

is it possible? mabye no directly but with some workaround?

regards,
p.
______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a>

  </pre>
</blockquote>
</body>
</html>