<div dir="auto">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.<div dir="auto"><br></div><div dir="auto">The one you'll definitely get is about the '@version' line at the top of your config. This probably says '@version: 3.19'.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">For instance, if a default changes between your old version and current versiony syslog-ng would tell you something like</div><div dir="auto"><br></div><div dir="auto">WARNING: the default for whatever option was changed in syslog-ng 3.25, please adapt your configuration</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">These days the number of config changes is pretty rare, so you might not have any warnings, except for @version.</div><div dir="auto"><br></div><div dir="auto">Once you handled all the warnings just update @version and you are done.</div><div dir="auto"><br></div><div dir="auto">Bazsi</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 23, 2021, 00:02 Peter Kokai (pkokai) <<a href="mailto:Peter.Kokai@oneidentity.com">Peter.Kokai@oneidentity.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
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.<br>
There is a tool <a href="https://github.com/syslog-ng/syslog-ng/blob/master/contrib/config_option_database/syslog-ng-cfg-db.py" rel="noreferrer noreferrer" target="_blank">https://github.com/syslog-ng/syslog-ng/blob/master/contrib/config_option_database/syslog-ng-cfg-db.py</a><br>
That prints all possible configuration options for destination, parser and source currently. But you still need to run this for both version and compare.<br>
<br>
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.<br>
<br>
I think if you have time to work on, the tool can be tricked into doing your use case.<br>
As far as I am know the tool itself actually uses bison to generate the possible tree (xml, and dot format).<br>
Once converted to a graph, all you need is a way to diff graphs.<br>
<br>
Checking via the diff looks like even more work.<br>
git diff syslog-ng-3.19.1...syslog-ng-3.31.1 --stat -- '*-grammar.y*'<br>
...<br>
49 files changed, 1656 insertions(+), 828 deletions(-)<br>
<br>
<br>
<br>
--<br>
kokan<br>
<br>
________________________________________<br>
From: syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank" rel="noreferrer">syslog-ng-bounces@lists.balabit.hu</a>> on behalf of Faine, Mark R. (MSFC-IS40)[NICS] <<a href="mailto:mark.faine@nasa.gov" target="_blank" rel="noreferrer">mark.faine@nasa.gov</a>><br>
Sent: 22 March 2021 23:03<br>
To: Syslog-ng users' and developers' mailing list<br>
Subject: [syslog-ng] Upgrade to 3.31 from 3.19<br>
<br>
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.<br>
<br>
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?<br>
<br>
Thanks,<br>
-Mark<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>