[syslog-ng] [EXTERNAL] Re: Upgrade to 3.31 from 3.19

Faine, Mark R. (MSFC-IS40)[NICS] mark.faine at nasa.gov
Tue Mar 23 15:08:07 UTC 2021


That sounds perfect.  I will try that in a docker container and see how it goes.  Thanks!

-Mark


From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> On Behalf Of Nik Ambrosch
Sent: Tuesday, March 23, 2021 09:51
To: Syslog-ng users' and developers' mailing list <syslog-ng at lists.balabit.hu>
Subject: Re: [syslog-ng] [EXTERNAL] Re: Upgrade to 3.31 from 3.19

Mark - you can use something disposable like docker/virtualbox/vmware/parallels and your old config file, then run "sudo syslog-ng -s" - any problems with your config will be displayed on the command line.


On Tue, Mar 23, 2021 at 10:44 AM Faine, Mark R. (MSFC-IS40)[NICS] <mark.faine at nasa.gov<mailto:mark.faine at nasa.gov>> wrote:
Thanks, I did this in a docker container and the only warning I got was for the @version value.  It said it was using compatibility mode.  If I simply change the version line to 3.31 it won't even start, so that's not an option.  I can go up to 3.28 before it stops starting.

I would rather not try Peter's solution but I will if I have to.  I was hoping I could do as you said and simply correct the errors, but I get no other error messages.

Thanks,
-Mark


From: syslog-ng <syslog-ng-bounces at lists.balabit.hu<mailto:syslog-ng-bounces at lists.balabit.hu>> On Behalf Of Balazs Scheidler
Sent: Monday, March 22, 2021 23:42
To: Syslog-ng users' and developers' mailing list <syslog-ng at lists.balabit.hu<mailto:syslog-ng at lists.balabit.hu>>
Subject: [EXTERNAL] Re: [syslog-ng] Upgrade to 3.31 from 3.19

If all you want is to upgrade syslog-ng, then run the new version with an unchanged config file (on a separate test system even), and observe "configuration" change warnings during startup.

The one you'll definitely get is about the '@version' line at the top of your config. This probably says '@version: 3.19'.

Don't fix the version declaration until you fix the rest of the warnings: syslog-ng operates in compatibility mode with the old version, and gives you instructions about what was changed since the old version. These warnings are emitted during startup, so look for log messages generated by syslog-ng right after starting up.

For instance, if a default changes between your old version and current versiony syslog-ng would tell you something like

WARNING: the default for whatever option was changed in syslog-ng 3.25, please adapt your configuration

What this means is that you might need to be explicit about the setting in your config and not rely on the default. So add the option and its desired value to the config explicitly. Or if you thing the new default is ok, just ignore the message and fix the rest too.

These days the number of config changes is pretty rare, so you might not have any warnings, except for @version.

Once you handled all the warnings just update @version and you are done.

Bazsi

On Tue, Mar 23, 2021, 00:02 Peter Kokai (pkokai) <Peter.Kokai at oneidentity.com<mailto:Peter.Kokai at oneidentity.com>> wrote:
Hello,

I am not aware such database or tools that can do it out of box. In general your old configuration should at least syntax check in newer version, and probably even start up without much trouble. If something is replaced in the config usually the old option is kept and in the background uses the new mechanism.
There is a tool https://github.com/syslog-ng/syslog-ng/blob/master/contrib/config_option_database/syslog-ng-cfg-db.py<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsyslog-ng%2Fsyslog-ng%2Fblob%2Fmaster%2Fcontrib%2Fconfig_option_database%2Fsyslog-ng-cfg-db.py&data=04%7C01%7Cmark.faine%40nasa.gov%7C871b16b74b9445a578bc08d8ee0b174c%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637521078962073609%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=MJTjHUK%2B9liaQerSC2plZEEMKAEDT7EzScfARkf%2FSqk%3D&reserved=0>
That prints all possible configuration options for destination, parser and source currently. But you still need to run this for both version and compare.

The issue with that, the tool was not present in 3.19.1 and just copy&paste won't work (tried), some adjustment might be needed.

I think if you have time to work on, the tool can be tricked into doing your use case.
As far as I am know the tool itself actually uses bison to generate the possible tree (xml, and dot format).
Once converted to a graph, all you need is a way to diff graphs.

Checking via the diff looks like even more work.
git diff syslog-ng-3.19.1...syslog-ng-3.31.1 --stat  -- '*-grammar.y*'
...
49 files changed, 1656 insertions(+), 828 deletions(-)



--
kokan

________________________________________
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu<mailto:syslog-ng-bounces at lists.balabit.hu>> on behalf of Faine, Mark R. (MSFC-IS40)[NICS] <mark.faine at nasa.gov<mailto:mark.faine at nasa.gov>>
Sent: 22 March 2021 23:03
To: Syslog-ng users' and developers' mailing list
Subject: [syslog-ng] Upgrade to 3.31 from 3.19

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.

I need to know the significant format differences between the configuration files for the two versions.  Is there some place I can go to get that or some command I can run to convert the file?

Thanks,
-Mark

______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=04%7C01%7Cmark.faine%40nasa.gov%7C871b16b74b9445a578bc08d8ee0b174c%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637521078962073609%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=w0SbeuASdYdcGBVEVjtP7kaz8wWgiwbAo%2FMiQJcVpno%3D&reserved=0>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<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%7C871b16b74b9445a578bc08d8ee0b174c%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637521078962083552%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=%2B4LtrUXEyPA4WIV8uwZD1P3W0UxlMCV1eZ7TlUgWcAo%3D&reserved=0>
FAQ: http://www.balabit.com/wiki/syslog-ng-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%7C871b16b74b9445a578bc08d8ee0b174c%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637521078962083552%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=180E9jRPWzrc2BXx1n22f2ACwLipMMqxkFAJGcOuXoQ%3D&reserved=0>
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=04%7C01%7Cmark.faine%40nasa.gov%7C871b16b74b9445a578bc08d8ee0b174c%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637521078962093519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=rCdhh5lGZf598CNAPeCQp69%2FtzAXYTUkJoqUQzMhcu0%3D&reserved=0>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<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%7C871b16b74b9445a578bc08d8ee0b174c%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637521078962093519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ZqnQrqORYGxM7i%2BFJ08%2By%2FjFeUOS2kbFqm7J4pkI%2Fa0%3D&reserved=0>
FAQ: http://www.balabit.com/wiki/syslog-ng-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%7C871b16b74b9445a578bc08d8ee0b174c%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637521078962093519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=JxhKkBjKEDvEas%2Bd60y2pw1b3uID28Ap47%2F9Bc3twr8%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20210323/a54af313/attachment-0001.html>


More information about the syslog-ng mailing list