7.26.0 7.25.0 7.24.0 7.23.0 7.22.0 7.21.0 7.20.0 7.19.0 7.18.0
7.26.0 7.25.0 7.24.0 7.23.0 7.22.0 7.21.0 7.20.0 7.19.0 7.18.0

Upgrade Amazon Corretto Java

In certain situations, a software scan may determine that a vulnerability can be solved by updating your version of Amazon Corretto Java.

Windows Update Instructions

The following sections describe the process for updating Amazon Corretto Java on Windows devices.

Windows DX Instructions

To update Amazon Corretto for Windows DX:

  1. Verify the current version of Java by running the following command in a Command Prompt window:

    "C:\Program Files\LogRhythm\Data Indexer\dependencies\jdk-11\bin\java" -version
    

Make note of the version before updating so that a successful update can be verified later.

  1. Download the latest version of Java 8 Windows x64 JRE ZIP from Amazon at the following link:
    Amazon Corretto Java 11 for Windows

  2. Stop all LogRhythm DX services via the Services window, or by running the following in an admin Command Prompt window:

    "C:\Program Files\LogRhythm\Data Indexer\tools\stop-all-services.bat"
    
  3. Locate the zip file downloaded in Step 2 in your Downloads folder, then right-click the file and select “Extract All…”

  4. Navigate to C:\Program Files\LogRhythm\Data Indexer\dependencies.

  5. Rename the existing jdk-11 folder to “jdk-11.bak”.

  6. Copy the folder that you extracted in step 4 into “jdk-11”

  7. Verify the updated Java version using the following command:

    "C:\Program Files\LogRhythm\Data Indexer\dependencies\jdk-11\bin\java" -version
    
  8. Restart all LogRhythm DX services via the Services window, or by running the following command:

    "C:\Program Files\LogRhythm\Data Indexer\tools\start-all-services.bat"
    

The version of Java released with the Data Indexer by default is the version upon which LogRhythm has performed full testing and validation. Versions outside of the release version (i.e., any version downloaded using the steps in this guide) should be compatible with the Data Indexer, but this is not guaranteed.

Windows Web Console Instructions

To update Amazon Corretto for Web Console:

  1. Verify the current version of Java by running the following command in a Command Prompt window:

    "C:\Program Files\LogRhythm\LogRhythm Web Services\LogRhythm Web Indexer\dependencies\jdk\bin\java" -version
    

Make note of the version before updating so that a successful update can be verified later.

  1. Download the latest version of JDK 21 Windows x64 JRE ZIP from Amazon at the following link:
    Amazon Corretto Java 21 for Windows

  2. Stop the LogRhythm Web Indexer service via the Services window.

  3. Locate the zip file downloaded in Step 2 in your Downloads folder, then right-click the file and select “Extract All…”

  4. Navigate to C:\Program Files\LogRhythm\LogRhythm Web Services\LogRhythm Web Indexer\dependencies.

  5. Rename the existing jdk folder to “jdk.bak”.

  6. Copy the jdk folder that you extracted in Step 4 to the dependencies folder

  7. Verify the updated Java version using the following command:

    "C:\Program Files\LogRhythm\LogRhythm Web Services\LogRhythm Web Indexer\dependencies\jre\bin\java" -version
    
  8. Restart the LogRhythm Web Indexer service via the Services window.

Linux Update Instructions

To update Amazon Corretto for Linux DX:

  1. Verify the current version of Java by running the following command:

    java -version
    

Make note of the version before updating so that a successful update can be verified later.

  1. Download the latest version of Java 11 Linux x64 JDK RPM from Amazon at the following link:
    Amazon Corretto Java for Linux

  2. Save this file to the /home/logrhythm/ directory using WinSCP or a similar tool.

  3. Stop Data Indexer services using the following command:

    sudo sh /usr/local/logrhythm/tools/stop-all-services-linux.sh
    
  4. Install the updated Corretto version using yum as a local install:

    cd /home/logrhythm
    sudo dnf java-11-amazon-corretto-devel-11.0.xx.xx-x.x86_64.rpm
    

    Yum will ask to validate dependencies and whether to proceed with the installation.

  5. Input Y and then press Enter to proceed.
    The installation completes successfully.

  6. Verify the updated Java version using the following command:

    java -version
    
  7. Restart all Data Indexer services using the following command:

    sudo sh /usr/local/logrhythm/tools/start-all-services-linux.sh
    

The version of Java released with the Data Indexer by default is the version upon which LogRhythm has performed full testing and validation. Versions outside of the release version (i.e., any version downloaded using the steps in this guide) should be compatible with the Data Indexer, but this is not guaranteed.