The content described in this article is available in meshIQ Manage versions 11.2.3 and later.
Some of the content described in this article is available in meshIQ Manage versions 12.1 and later.
For a quick overview of what's new or changed, visit the meshIQ Highlights page for a version-by-version breakdown.
Jump to Section:
Version 12.x and Later
Version 11.3 and Earlier
Version 12.x and Later
You can now define a custom path for log4j2.xml using Tomcat’s context.xml file. This allows you to persist log configurations outside of the deployed web application.
Steps
If no custom configuration is provided, the app defaults to: webapps\manage-server\WEB-INF\classes\log4j2.xml
Copy
log4j2.xmlfile fromwebapps\manage-server\WEB-INF\classes\log4j2.xmland place it in a desired location (e.g.,/opt/meshiq/managelogs/log4j2.xml).-
Add the following parameter in Tomcat’s
conf/context.xml:<Parameter name="log4jConfiguration" value="/opt/meshiq/managelogs/log4j2.xml" override="true"/>
-
In your
log4j2.xml, configure the desired log file paths:<RollingRandomAccessFile name="LogToRollingFile" fileName="/opt/meshiq/managelogs/manage.log" filePattern="/opt/meshiq/managelogs/manage.%d{yyyy-MM-dd}.log"> -
Restart the Tomcat server
Related Article
For more details on setting this up for other components, refer to the guide below:
How can I save logs from all meshIQ components to a centralized or user-defined path?
________________________________________________________________________________________________________________
Version 11.3.2
You can now define a custom path for log4j2.xml using Tomcat’s context.xml file. This allows you to persist log configurations outside of the deployed web application.
Steps
If no custom configuration is provided, the app defaults to: webapps\manage-server.
Copy
log4j2.xmlfile fromwebapps\manage-serverand place it in a desired location (e.g.,/opt/meshiq/managelogs/log4j2.xml).-
Add the following parameter in Tomcat’s
conf/context.xml:<Parameter name="log4jConfiguration" value="/opt/meshiq/managelogs/log4j2.xml" override="true"/>
-
In your
log4j2.xml, configure the desired log file paths:<RollingRandomAccessFile name="LogToRollingFile" fileName="/opt/meshiq/managelogs/manage.log" filePattern="/opt/meshiq/managelogs/manage.%d{yyyy-MM-dd}.log"> -
Restart the Tomcat server
Related Article
For more details on setting this up for other components, refer to the guide below:
How can I save logs from all meshIQ components to a centralized or user-defined path?