Gå till huvudinnehåll

Setting Dlog4j2.formatMsgNoLookups=true via Java Tool Options on Windows (JRE/JDK) - Kunskapsbas / Deskpro Legacy - Deskpro Support

WARNING: You're browsing documentation for an older version of Deskpro. Consider upgrading to Deskpro Horizon

Setting Dlog4j2.formatMsgNoLookups=true via Java Tool Options on Windows (JRE/JDK)

Författarlista

Refer to this document to confirm whether this article is relevant to you.

This documentation is applicable on any Windows Server 2008, 2012, 2012 R2, 2016, 2019 - as well as Windows 10.

1. Search for “Environment Variables” in the start menu and click on “Edit the system environment variables” (or go to Control Panel > System and Security > System > Advanced system settings)

2. Click on “Environmental Variables”

3. Click on “New”

4. For the “Variable name” enter: JAVA_TOOL_OPTIONS

For the “Variable value” enter: -Dlog4j2.formatMsgNoLookups=true

5. Press “OK” on the Window, “OK” again, and “OK” once more, till the system properties window is closed. You can try and open this up again, to confirm the changes have applied.

6. You must restart the Elasticsearch service after applying this. Open the “Start” menu and Search for Services, Open “Services”

7. Locate the NEW Elasticsearch service, right click, and restart. The previous Elasticsearch services should be labelled with the old version 5.4.0.

If you are not sure, restart all of the Elasticsearch services. This is the only way to apply the above patch.

Additional step: (Not Required, but recommended) Disable the previous services entirely. Right click on the defunct services, and select properties.

Ensure the old services are both stopped, and the Startup type is set to disabled. You will get a warning from the Deskpro Manager that some services are not working, this can be ignored.

Hjälpfull Oanvändbar

3 av 4 personer tyckte att sidan var användbar

Posta en kommentar

Logga in eller registrera dig för att lämna en kommentar.

Behöver du en påminnelse om ditt lösenord?