<div dir="ltr">Hi Vikrot,<div><br></div><div>$HOST gives the IP address or the FQDN according to the settings</div><div>I am looking for a way to pass the log file path as a string to the syslog-master and use it </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 3:46 PM, Juhász, Viktor <span dir="ltr"><<a href="mailto:viktor.juhasz@balabit.com" target="_blank">viktor.juhasz@balabit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>If I understand you well, You should use HOST macro in the file name.</div><div><br></div><div>BR,</div><div>Viktor Juhasz</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 10:57 AM, Thanuje Ashwin Nallaperuma <span dir="ltr"><<a href="mailto:thanuje88@gmail.com" target="_blank">thanuje88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sandor,<div><br></div><div>I do not need to maintain the file hierarchy</div><div>I just one to transfer the file path to the server and use it as a macro on the server side</div><div>because the path is the only way I am able to identify the files I send as they have the same name and same content</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 1:35 PM, Sandor Geller <span dir="ltr"><<a href="mailto:sandor.geller@ericsson.com" target="_blank">sandor.geller@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><div><br>
On 03/03/2015 05:15 AM, Thanuje Ashwin Nallaperuma wrote:<br>
> Hi all,<br>
><br>
> I have multiple files with the same content on the syslog-ng client<br>
> These files are stored on different locations with the same file name<br>
> and same content<br>
> After receiving I want to store these files with different names on<br>
> sysog-ng server<br>
> Is there any way I could use the filepath or filename of the receiving<br>
> file as a macro<br>
> or any way to achieve this..?<br>
<br>
</div></div>I'm having some trouble understading what you're after. Do you want to<br>
simply transfer files from remote systems to a central place and keep a<br>
similar filesystem hierarchy on the central location as well? For such a<br>
purpose syslog isn't the preferred way as it isn't a generic purpose<br>
transport so use something else like rsync.<br>
<br>
There are ways to manipulate messages on the originating side (for<br>
example by adding tags to the syslog-ng source definitions) and<br>
encapsulating the extra information into the message payload you'll be<br>
able to extract the information on the remote side - but I'm not sure it<br>
worths the effort.<br>
<br>
hth,<br>
<br>
Sandor<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div><br></div>
</div></div><br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>
</div></div><br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>