Issue Accessing Application Logs

Applies to: Ephesoft Transact 2020.1.03 and above

Issue

If you use custom scripts or other automated processes to retrieve logs through the web server service, you may experience issues due to security enhancements introduced in 2020.1.03.

Root Cause

In 2020.1.03 and above, you must now log in before accessing log files within the Application folder. This includes files such as the dcma-all.log and log4j.xml.

Ephesoft restricted access to these logs as a security enhancement, however, if required by your business process, you can revert this change.

How to Revert the Changes

  1. Open the web.xml file, located at [Ephesoft_Directory]\Application\WEB-INF.
  2. Locate the following 12 lines:
<security-constraint>
  <web-resource-collection>
    <web-resource-name>Restrict Logging</web-resource-name>
    <url-pattern>/logs/*</url-pattern>
    <url-pattern>/log4j.xml</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
  </web-resource-collection>
  <auth-constraint>
    <role-name>*</role-name>
  </auth-constraint>
</security-constraint>
  1. Remove the above lines.
  2. Save and close the web.xml file.
  3. Restart Ephesoft Transact.