Octane logs are being written to a location or locations other than the Octane "log" folder

  • KM03807406
  • 26-Apr-2021
  • 26-Apr-2021

Summary

Octane logs are not updating or may not exist at all

Question

Octane logs are not updating or may not exist at all.

After searching for logs it is found they're being written in temporary folders, scattered in different locations

Answer

Cause: This is due to a missing value in the “log4j2-conf.xml” file

1) In the octane “conf” folder, same location as the “octane.conf” file, find the file “log4j2-conf.xml”
2) Open the “log4j2-conf.xml” for editing
3) Search for the string “<Property name="LOG_FOLDER"”
4) Check its value, it might not exist or be correct.
5) Fix by putting in the path to the “log” folder like this…

For Windows...
<Property name="LOG_FOLDER">D:/octane/log</Property>

Obviously the path above is “D:/octane/log”. Yours might be different. Note the forward slashes as these must be used.

For example, say your path to the “log” folder in windows is: C:\octane\log
You would express the value in the element as: C:/octane/log
Therefore: <Property name="LOG_FOLDER">C:/octane/log</Property>

For Linux...
<Property name="LOG_FOLDER">/opt/octane/log</Property>
Obviously the path above is “/opt/octane/log”. Yours might be different. Note the forward slashes as these must be used.

6) Save
7) Restart Octane