This section describes the possible upgrade paths of syslog-ng PE.
The following describes how to upgrade to syslog-ng PE 7.
To upgrade fromsyslog-ng PE 7.0.x to 7 on a production machine
-
Download the installer package for version 7 of syslog-ng PE from the [[[Undefined variable General.downloads-text]]]. Use the same package type as you used for the installation (for example, use the .run package for the upgrade if you have originally installed syslog-ng PE using a .run installer)
-
Login to the host you want to upgrade.
-
Install syslog-ng PE and check any warnings. Upgrade the respective parts of your configuration if needed.
-
Restart syslog-ng PE and verify that it is running and processing logs properly. For details, see Managing and checking syslog-ng service on Linux.
-
If you experience problems during the upgrade, contact our Support Team.
The following describes how to upgrade to syslog-ng PE 7.
Notes and warnings about the upgrade
|
Caution:
Read the entire document thoroughly before starting the upgrade. |
|
Caution:
Hazard of data loss!
Consider the following before upgrading from syslog-ng PE 6.0.x to version 7:
-
When upgrading a syslog-ng PE installation that is running in server or relay mode, One Identity recommends redirecting the client logs to another syslog server to avoid message loss.
-
During the upgrade, there will be periods when syslog-ng PE will not be able to receive logs. Make sure to upgrade in a dedicated maintenance window when you can disable receiving logs. |
Prerequisites
Complete the following steps before starting the actual upgrade process.
-
Download the installer package for the latest 7.0.x version of syslog-ng PE from the [[[Undefined variable General.downloads-text]]].
-
If you are using syslog-ng PE in server mode, download the new license from My License Assets.
-
Install syslog-ng PE 7 on a test machine.
-
Replace the syslog-ng PE configuration file on the test machine with your syslog-ng PE version 6.0.x configuration file.
-
Edit the configuration file: update the version string to @version: 7.0.
-
Update the configuration file.
Some features and functionalities have changed between version 6 and 7 and require you to change the configuration file, for example, to delete options that have been removed from the product, or change the names of options that have been renamed. For a detailed list about the differences, see "Differences in features between syslog-ng PE 6 LTS and 7" in the Release Notes.
Perform the following steps until you have an updated configuration file that properly works with syslog-ng PE 7.
-
Check the configuration for syntax errors using the syslog-ng --syntax-only --cfgfile <your-modified-configuration-file> command. Modify your configuration to correct any errors and warnings.
-
Restart syslog-ng.
-
Verify that message filtering and processing (for example, parsing and rewriting) works properly.
-
Verify that the format and content of the output messages is correct, including the SDATA of RFC-5424-formatted messages if you are using them.
To upgrade from syslog-ng PE 6.0.x to 7 on a production machine
-
If you use disk buffers, empty your disk-buffer files before starting the upgrade process.
For more information about disk-buffer files and how to get information about them, see How to get information about disk-buffer files.
For more information about emptying your disk-buffer files, see How to empty disk-buffer files.
|
Caution:
Hazard of data loss!
If you have logs in your disk-buffer files, failing to empty the disk-buffer files before starting the upgrade process may result in log loss. One Identity recommends that you empty your disk-buffer files before starting the upgrade process. |
-
Before upgrading the host to syslog-ng PE 7, upgrade it to the latest available 6.0.x version.
-
Login to the host you want to upgrade.
-
|
Caution:
Hazard of data loss!
This host will not be able to receive or send log messages until the upgrade procedure is complete. Make sure to upgrade in a dedicated maintenance window when you can disable receiving logs.
When upgrading a syslog-ng PE installation that is running in server or relay mode, One Identity recommends redirecting the client logs to another syslog server to avoid message loss. |
Stop syslog-ng PE version 6.
-
Verify that syslog-ng PE has stopped. The output of the following command must be empty: ps axu | grep syslog-ng
-
Create a backup of the syslog-ng PE installation directory using the following command: cp -a /opt/syslog-ng /opt/syslog-ng-pe6-backup
-
Uninstall syslog-ng PE version 6. For details, see Uninstalling syslog-ng PE 6.
-
Delete the installation directory using the following command: rm -rf /opt/syslog-ng
-
Download the new installer package from the [[[Undefined variable General.downloads-text]]].
-
Install syslog-ng PE 7. For details, see Installing syslog-ng PE.
-
Stop syslog-ng PE version 7 started by the installer.
-
Copy the syslog-ng PE version 7 configuration file that you created on your test machine into the /opt/syslog-ng/etc directory of the host you are upgrading.
-
If the host you are upgrading is running syslog-ng PE in server mode, replace the old (version 6) license file with the new one.
|
Caution:
Hazard of data loss! Without the new license file, syslog-ng PE will run in relay mode, and will not store the incoming messages locally. |
-
Restart syslog-ng PE and verify that it is running and processing logs properly. For details, see Managing and checking syslog-ng service on Linux.
-
If you experience problems during the upgrade, contact our Support Team.
This scenario is not supported and will fail with the following error messages.
Upgrading from platform-specific package to .run
Upgrading from rpm package to .run package
Unsupported. Installation stops and the following error message is displayed:
Incompatible syslog-ng package already installed
Upgrading from deb package to .run package
Unsupported. Installation stops and the following error message is displayed:
Incompatible syslog-ng package already installed
Upgrading from pkg package to .run package
Unsupported. Installation stops and the following error message is displayed:
Incompatible syslog-ng package already installed to <syslog-ng path>
Upgrading from .run to a platform-specific package
This scenario is not supported and will fail with the following error messages. To replace a .run package with a platform-specific package, create a backup of your configuration and persist files, uninstall the .run package using the --purge option, then install the platform-specific package.
Upgrading from .run package to rpm package
Unsupported. Installation stops and the following error message is displayed:
Incompatible standalone (.run) installer of syslog-ng Premium Edition
|
Caution:
Hazard of data loss! Installing rpm package syslog-ng PE on AIX platform is possible even if the upgrade conditions are not met, since the rpm package installs before checking the upgrade conditions and therefore no error message is displayed. This might result in overwriting the old configuration file. |
Upgrading from .run package to deb package
Unsupported. Installation stops and the following error message is displayed:
Errors were encountered while processing
Upgrading from .run package to pkg package
Unsupported. Installation stops and the following error message is displayed:
Please remove the conflicting package before installing this package. Installation aborted.