[syslog-ng] [EXTERNAL] Re: Help with embedded log paths

Faine, Mark R. (MSFC-IS40)[NICS] mark.faine at nasa.gov
Thu Mar 24 19:36:58 UTC 2022


Thank!  That's essentially what I ended up doing.

I need some sort of unique identifier that I can put on the file name in a destination that is static and not tied to the message or anything else that changes.  It should be created when the file is created and not changed.

I've looked over the macros but I don't see anything, does something like this exist?

Thanks,
-Mark

-----Original Message-----
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> On Behalf Of Fabien Wernli
Sent: Wednesday, March 23, 2022 20:30
To: Syslog-ng users' and developers' mailing list <syslog-ng at lists.balabit.hu>
Subject: [EXTERNAL] Re: [syslog-ng] Help with embedded log paths

Hi Mark,

Seeing your two recent messages, I think you'd be better off
converting your embedded logpath config to a conditional based one (with
if-else), like
described here:

https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.syslog-ng.com%2Ftechnical-documents%2Fdoc%2Fsyslog-ng-open-source-edition%2F3.33%2Fadministration-guide%2F58%23TOPIC-1663378&data=04%7C01%7Cmark.faine%40nasa.gov%7C2e7d5ce6aab74ece418608da0d360984%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637836823001406276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=pMf9iuNbar5XV4vctRVGUzbVCiXK0bMK%2BhX394R6tnw%3D&reserved=0

It's a much easier way to understannd what's happening, compared to the
"legacy" way of doing with flags(final) etc.

______________________________________________________________________________
Member info: https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=04%7C01%7Cmark.faine%40nasa.gov%7C2e7d5ce6aab74ece418608da0d360984%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637836823001406276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=cuu7WCWt6GokAY3ZuQZf86xuGut1lgxqODq9L0sVEfg%3D&reserved=0
Documentation: https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&data=04%7C01%7Cmark.faine%40nasa.gov%7C2e7d5ce6aab74ece418608da0d360984%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637836823001406276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Kk%2BbNBHgkrPQGqBR%2Fqyv124vyXO9nEkN8sAROpSghy8%3D&reserved=0
FAQ: https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&data=04%7C01%7Cmark.faine%40nasa.gov%7C2e7d5ce6aab74ece418608da0d360984%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637836823001406276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Z28icBg1tLi0hlhMcZIWlBVmhLQjdrYS8hTjxfnqxDE%3D&reserved=0



More information about the syslog-ng mailing list