Re: [EXTERNAL] Re: Help with embedded log paths

"Faine, Mark R. (MSFC-IS40)[NICS]" <[email protected]>
Newsgroups gmane.comp.syslog-ng
Message-ID <SA1PR09MB825335F7C36A5B9733FD778FE9199@SA1PR09MB8253.namprd09.prod.outlook.com>
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 <[email protected]> On Behalf Of Fabien Wernli
Sent: Wednesday, March 23, 2022 20:30
To: Syslog-ng users' and developers' mailing list <[email protected]>
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&amp;data=04%7C01%7Cmark.faine%40nasa.gov%7C2e7d5ce6aab74ece418608da0d360984%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637836823001406276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=pMf9iuNbar5XV4vctRVGUzbVCiXK0bMK%2BhX394R6tnw%3D&amp;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&amp;data=04%7C01%7Cmark.faine%40nasa.gov%7C2e7d5ce6aab74ece418608da0d360984%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637836823001406276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=cuu7WCWt6GokAY3ZuQZf86xuGut1lgxqODq9L0sVEfg%3D&amp;reserved=0
Documentation: https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&amp;data=04%7C01%7Cmark.faine%40nasa.gov%7C2e7d5ce6aab74ece418608da0d360984%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637836823001406276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=Kk%2BbNBHgkrPQGqBR%2Fqyv124vyXO9nEkN8sAROpSghy8%3D&amp;reserved=0
FAQ: https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&amp;data=04%7C01%7Cmark.faine%40nasa.gov%7C2e7d5ce6aab74ece418608da0d360984%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637836823001406276%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=Z28icBg1tLi0hlhMcZIWlBVmhLQjdrYS8hTjxfnqxDE%3D&amp;reserved=0

______________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.