[syslog-ng] Change Position Information inside Messasge

Laszlo Szemere (lszemere) Laszlo.Szemere at oneidentity.com
Thu Mar 26 20:01:25 UTC 2020


Hello William,
 What you are looking for is the "store-matches" flag of the regular expressions. https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.25/administration-guide/68#TOPIC-1374104

 You can "store" the matching part of a subst rewrite rule. Which can be later used in a template function, on the destination site. So you can "reassemble" your log message in any form you want.

Br,
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: Thursday, March 26, 2020 19:10
To: Syslog-ng users' and developers' mailing list
Subject: [syslog-ng] Change Position Information inside Messasge

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.

Hello everyone,

Is it possible to change a position of an information within the message?

From: 2020-03-26; 17: 55: 22; RTCGNMGA0101: RT_SRC_NAT_PBA_ALLOC :; 100.64.1.114:38784-38847; 177.51.112.218;

TO:
2020-03-26; 17: 55: 22; RTCGNMGA0101: RT_SRC_NAT_PBA_ALLOC:; 100.64.1.114; 177.51.112.218:38784-38847;

Basically, I would like to change the position of the connection port within the message.

How to do this?

TKS

Atenciosamente,

WILLIAM LUIZ R V SILVA
Mediation

Ericsson
Mobile +55 11  97979-9886
www.ericsson.com<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ericsson.com%2F&data=02%7C01%7Claszlo.szemere%40oneidentity.com%7C8a0e566de3794d022f7e08d7d1b0fa79%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637208430359570014&sdata=fq2XKEtcka6ujVyWhTgOcwqkImqlnK94pyhfTmxhUw4%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%7C8a0e566de3794d022f7e08d7d1b0fa79%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637208430359574991&sdata=ZfmJ7%2FwyT1CAoMJ%2FGqQ1R0SYTZaXfXlJTo3qyRY5GR4%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/20200326/acaa409f/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/20200326/acaa409f/attachment-0003.gif>


More information about the syslog-ng mailing list