can kv-parser options be from macros
Evan Rempel <[email protected]> Fri, 1 Nov 2024 17:01:45 +0000
| Newsgroups | gmane.comp.syslog-ng |
|---|---|
| Message-ID | <YT3P288MB032999579F75BAEC772E4DD1B9562@YT3P288MB0329.CANP288.PROD.OUTLOOK.COM> |
--===============9081786356522881821==
Content-Language: en-CA
Content-Type: multipart/alternative;
boundary="_000_YT3P288MB032999579F75BAEC772E4DD1B9562YT3P288MB0329CANP_"
--_000_YT3P288MB032999579F75BAEC772E4DD1B9562YT3P288MB0329CANP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Does anyone know if I can use the enriching data to set macros that can th=
en be used as kv-parser options.
These values might change on a message by message basis.
For example:
parser p_kv {
kv-parser (
prefix("$kv_prefix")
value-separator("$kv_vseparator")
pair-separator("$kv_pseparator")
);
};
--
Evan
--_000_YT3P288MB032999579F75BAEC772E4DD1B9562YT3P288MB0329CANP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
Does anyone know if I can use the enriching data to set macros that c=
an then be used as kv-parser options.</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
These values might change on a message by message basis.</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
For example:</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
parser p_kv {</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
kv-parser (</div>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
prefix("$kv_prefix")<br>
value-separator("$kv_vseparator")</di=
v>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
pair-separator("$kv_pseparator")</div=
>
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
);</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
};</div>
<div id=3D"Signature" class=3D"elementToProof">
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: "Courier New", monospace; color: rgb(1=
53, 153, 153);"><span style=3D"font-size: 14.6667px; background-color: rgb(=
255, 255, 255);">--</span><span style=3D"font-size: 12pt;"><br>
</span><span style=3D"font-size: 14.6667px; background-color: rgb(255, 255,=
255);">Evan</span></div>
</div>
</body>
</html>
--_000_YT3P288MB032999579F75BAEC772E4DD1B9562YT3P288MB0329CANP_--
--===============9081786356522881821==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq
--===============9081786356522881821==--