A lot of us have faced the issue of terminal screen getting hung up because of excessive logs while Indexing a large amount of data.
You can fix this in simple steps:-
For Weblogic
1. Login to Weblogic admin console.
2. On the left side, in the domain structure, click on your domain name.
3. "Configuration" tab will be pre-selected.
4. Click on the "Log Filters" tab. Below screen will show:
5. Click "New". Name it as "indexingFilter". Click "OK".
6. The page will reload, and indexingFilter link will be shown in a table. Click on it.
7. A new page will open with a big textbox, along with an "edit" button. Click on EDIT.
8. Enter the following expression and click "OK"
((SUBSYSTEM = 'org.apache.cxf.interceptor.LoggingOutInterceptor') OR (SUBSYSTEM = 'org.apache.cxf.interceptor.LoggingInInterceptor')) AND (SEVERITY = 'WARNING')
9. The screen will reload and will look like below.
10. Click Save.
11. Shut down Weblogic admin server.
12. Go to: [WEBLOGIC_DIR]/domains/config
13. Open config.xml
14. Search for the text <server>
15. There will me more than one <server> tags. You have to find the one which has the <name> tag with your Production server's name on it.
It will look something something like:
16. Before the <server> tag ends, insert the following:10. Click Save.
11. Shut down Weblogic admin server.
12. Go to: [WEBLOGIC_DIR]
13. Open config.xml
14. Search for the text <server>
15. There will me more than one <server> tags. You have to find the one which has the <name> tag with your Production server's name on it.
It will look something something like:
<server>
<name>ProductionLS</name>
</server>
<name>ProductionLS</name>
</server>
<log>
<log-file-filter>indexingFilter</log-file-filter>
<stdout-filter>indexingFilter</stdout-filter>
<memory-buffer-severity>Debug</memory-buffer-severity>
</log>
17. Next, go to your [JRE_HOME]\lib\logging.properties and add the following at the end of the file:<log-file-filter>indexingFilter</log-file-filter>
<stdout-filter>indexingFilter</stdout-filter>
<memory-buffer-severity>Debug</memory-buffer-severity>
</log>
## DISABLE BULKLOAD LOGS
org.apache.cxf.interceptor.LoggingInInterceptor.level = WARNING
org.apache.cxf.interceptor.LoggingOutInterceptor.level = WARNING
org.apache.cxf.interceptor.LoggingInInterceptor.level = WARNING
org.apache.cxf.interceptor.LoggingOutInterceptor.level = WARNING
For JBOSS (eap)
1. Go to: [JBOSS_DIRECTORY]/jboss-as/server/[server-name]/conf/jboss-log4j.xml
2. Add the following lines:
This will remove the annoying logs and make the process much faster!
2. Add the following lines:
<category name="org.apache.cxf.interceptor.LoggingInInterceptor">
<priority value="WARN" />
</category>
<category name="org.apache.cxf.interceptor.LoggingOutInterceptor">
<priority value="WARN" />
</category>
<priority value="WARN" />
</category>
<category name="org.apache.cxf.interceptor.LoggingOutInterceptor">
<priority value="WARN" />
</category>
This will remove the annoying logs and make the process much faster!
No comments:
Post a Comment