[syslog-ng] Insert SequenceNumber into FileName

Laszlo Szemere (lszemere) Laszlo.Szemere at oneidentity.com
Tue Nov 12 13:13:28 UTC 2019


Hello,
 you can insert MACROS (https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.24/administration-guide/63#TOPIC-1298112) into the filename parameter of a file destination. Syslog-ng will evaluate those macros on per message base, and create a new file if the name differs from the earlier one.

 Note: Your use case looks much more like a logrotate type of job. Which should be achieved in a different way. (If this is not the case, please ignore my note.)


Best regards,
Laci


________________________________________
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of William Luiz Ribeiro Vasconcelos Da Silva <wsilva_ericsson at timbrasil.com.br>
Sent: Tuesday, November 12, 2019 13:40
To: syslog-ng at lists.balabit.hu
Subject: [syslog-ng] Insert SequenceNumber into FileName

CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.

Good Morning

                Is this possible put some kind of sequence Number or some kind ID number at the fileName, when the syslog-ng is writing the file????

                If it’s possible, how to do this?


Tks,

Atenciosamente,

WILLIAM LUIZ R V SILVA
Mediation

Ericsson, Brazil
Mobile +55 11  97979-9886
wsilva_ericsson at timbrasil.com.br<mailto:wsilva_ericsson at timbrasil.com.br>
www.ericsson.com<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ericsson.com%2F&data=02%7C01%7Claszlo.szemere%40oneidentity.com%7C3c454c6fa3b748271d5808d7676d94d8%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637091592665939096&sdata=VA5nOBJBh5S%2Bs4haugqilu%2FFKptC6SatLXLfLBnkSTQ%3D&reserved=0>

[Descrição: Descrição: Ericsson]<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ericsson.com%2F&data=02%7C01%7Claszlo.szemere%40oneidentity.com%7C3c454c6fa3b748271d5808d7676d94d8%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637091592665949091&sdata=YRdmDCPJqc9JCqG1%2F4u7TJ4JIrmMbuJu6Cwd8GaCp1c%3D&reserved=0>


Esta mensagem, incluindo seus anexos, pode conter informações privilegiadas e/ou de caráter confidencial, não podendo ser retransmitida sem autorização do remetente. Se você não é o destinatário ou pessoa autorizada para recebê-la, informamos que o seu uso, divulgação, cópia ou arquivamento são proibidos. Portanto, se você recebeu esta mensagem por engano, por favor nos informe respondendo imediatamente a este e-mail e delete o seu conteúdo.

This message, including its attachments, may contain privileged or confidential information, and it must not be fowarded without the express authorization of the sender. If you are not the intended recipient, we hereby inform you that the use, disclosure, copy or filing are forbidden. So, if you received this message as a mistake, please inform us by answering this e-mail and deleting its contents

Questo messaggio, inclusi gli allegati, potrebbe contenere informazioni privilegiate e/o riservate, e non deve essere ritrasmesse senza l'autorizzazione del mittente. Se non siete il destinatario o la persona autorizzata a riceverlo, informiamo che il suo utilizzo, diffusione, copia o archiviazione sono proibite. Quindi, se avete ricevuto questo messaggio per errore, per cortesia ci informi rispondendo immediatamente a questa email e cancelli il suo contenuto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1488 bytes
Desc: image001.gif
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20191112/c91870e6/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 2367 bytes
Desc: image002.gif
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20191112/c91870e6/attachment-0003.gif>


More information about the syslog-ng mailing list