log4j


Log4j logging stops intermittently


We're experiencing some stoppages on our log4j(v1.2.8) INFO logs. We're using a WebSphere(8.5.5) clustered server(vertical) with 3 members that runs on a single machine(UNIX). Stoppage is random; no specific file size, time or when about to rollover
We've first suspected that is a volume related problem as we've tested before on a lower volumed server the problem doesn't occur. I've later tested overloading both servers but I could not replicate the problem.
Average daily production is 175,000 INFO lines. A workaround is available by just changing the timestamp of the log files to resume logging.
Already looked into the suggested fix on Log4j suddenly stops logging but nothing seemed to work. I'm hoping I could get some advise on were to look. Thank you.
log4j.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<root>
<priority value="INFO" />
<appender-ref ref="TEST" />
</root>
<appender name="TEST" class="org.apache.log4j.RollingFileAppender">
<param name="encoding" value="UTF-8" />
<param name="file" value="$test/directory/logs/test${com.test.log.server.name}.log" />
<param name="MaxFileSize" value="10000KB" />
<param name="MaxBackupIndex" value="50" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%t] [%-12X{username}] [%-12X{servlet}] [%c{1}] %m%n" />
</layout>
</appender>
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n" />
</layout>
</appender>
</log4j:configuration>
The value of ${com.test.log.server.name} is declared in WebSphere JVM custom properties on each application server.
Any help would be greatly appreciated.

Related Links

Write to SYSLOG with RootLogger OFF
How to write separate log files for each error transactions in Java using log4j
log4j on jboss - subpackage level
converting log4j into log4j2. With RollingFileAppender, size and file name pattern
Log4j NoSQL/Mongo appender in Tibco BusinessWorks 5
jcl104-over-slf4j version 1.4.2 is safe to be replaced by jcl-over-slf4j 1.7.2
Log4j2 main ERROR AmazonRollingRandomAccessFile contains an invalid element or attribute
Is it possible to set an SMTP header in SMTPAppender?
log4j rotate and compress files
Log4J 2 failing to configure
log4j not writing logs to a file
Log4J : Console Error in log4j.xml
log4j is not creating .gz file
Custom object renderer in SLFJ/logback
Passing log level dynamically in log4j2.xml in Mule ESB
where does ${spark.yarn.app.container.log.dir} resolve to on BigInsights on cloud?

Categories

HOME
clips
asp.net-core
gerrit
netbeans
iot
rsync
elm
disassembler
append
volttron
wheelnav.js
u-sql
windows-azure-storage
ibm-odm
carthage
django-admin
pythonanywhere
excel-vba-mac
viewport
swingx
conemu
autoconf
intentfilter
functional-testing
tar
wkwebview
zurb-foundation-6
restful-authentication
fish
bootstrap-duallistbox
virtualdub
phpfox
maxmind
minitab
neo4j-spatial
quote
file-rename
srcset
unboundid
nouislider
r-raster
frame
phonegap
siesta-swift
uiswipegesturerecognizer
reportbuilder
optix
botbuilder
nomethoderror
fakeiteasy
no-www
flashair
sage-one
hls.js
mako
blacklist
abcpdf9
radtreelist
sts-springsourcetoolsuite
phishing
fuzzy-search
moveit
sigabrt
packagist
ipconfig
browser-link
freedesktop.org
tcpserver
r-tree
wso2cloud
eclipse-clp
simple-framework
spidermonkey
embedded-code
muse
proj4js
offloading
tt-news
network-interface
winddk
gulp-less
article
sgen
valueconverter
mysql-error-1062
stxxl
fmod
page-layout
listings
soundtouch
ruby-datamapper
smtp-auth
rdoc
bubble-chart
osql
pendrive
work-stealing
nsdatecomponents
zpt
hirefire
rfc1123
appender
imac
web-architecture
brewmp
audio-capture
mtj
gacutil

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App