[syslog-ng] Upgrade to 3.31 from 3.19

Peter Kokai (pkokai) Peter.Kokai at oneidentity.com
Mon Mar 22 23:02:26 UTC 2021


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
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> on behalf of Faine, Mark R. (MSFC-IS40)[NICS] <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



More information about the syslog-ng mailing list