Insert SequenceNumber into FileName
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@timbrasil.com.br<mailto:wsilva_ericsson@timbrasil.com.br> www.ericsson.com<http://www.ericsson.com/> [Descri??o: Descri??o: Ericsson]<http://www.ericsson.com/> 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
Hello, you can insert MACROS (https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edit...) 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@lists.balabit.hu> on behalf of William Luiz Ribeiro Vasconcelos Da Silva <wsilva_ericsson@timbrasil.com.br> Sent: Tuesday, November 12, 2019 13:40 To: syslog-ng@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@timbrasil.com.br<mailto:wsilva_ericsson@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
participants (2)
-
Laszlo Szemere (lszemere)
-
William Luiz Ribeiro Vasconcelos Da Silva