Data Collection issues in LFA
Data Collection issues in LFA in Log Forwarder Agent Issues.
Data Collection issues in LFA#
The LogForwarder Agent failed to collect Log KPI data.
Follow the below steps to rectify the same:
1. The value assigned to the "patternName " field in the JSON should be unique for each pattern, as given below.
"kpiDetails": [{
"displayName": "Sigalrm_Count",
"patternName": "Uniser Sigalrm Count",
"pattern": ".*(SIGALRM).*",
"componentAgentIdentifier": "e570de02-
c585-4917-bbb7-5c97b35e-4",
"instanceId": "FINACLE_Uniser_Node1",
"kpiType": "Core",
"kpiUid": "409",
"kpiGroupName": "FinacleServerLogs",
"kpiName": "FNL_SERVER_ERROR"
},
{
"displayName":
"CARD_ISSUER_INOPERATIVE",
"patternName":
"CARD_ISSUER_INOPERATIVE",
"pattern": ".*(907).*",
"componentAgentIdentifier": "e570de02-
c585-4917-bbb7-5c97b35e-4",
"instanceId": "FINACLE_CBC_Core_Node1",
"kpiType": "Core",
"kpiUid": "409",
"kpiGroupName": "FinacleServerLogs",
"kpiName": "FNL_SERVER_ERROR"
},
Note: If there are identical patterns, data collection will not occur.
Failure to Collect Transactions in the UI#
Case 1: Certificate Issue#
This issue revolves around the failure to collect transaction data in the user interface (UI).
Follow the below process to rectify the issue:
1. Check the vjlogger logs:
cd /<Installation path>/LogForwarder/LogForwarder_36_Physical/logs
For Example:
cd /opt/Agent/LogForwarder/LogForwarder_36_Physical/logs
Expected Output:
2023-05-19 11:09:57.574 [pool-5-thread-1] ERROR vjLogger:110 -
Exception is got while stitched sending data - UNAVAILABLE: io
exception
io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at
io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:2
33)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:214)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:139)
at
com.appnomic.appsone.common.protbuf.MessagePublisherGrpc$MessagePubl
isherBlockingStub.publishTransactionMessage(MessagePublisherGrpc.jav
a:302)
at
com.appnomic.transformer.sink.GRPCSinkForNonStitching.sendOnNetwork(
GRPCSinkForNonStitching.java:102)
at
com.appnomic.transformer.sink.GRPCSinkForNonStitching.sendOnNetwork( GRPCSinkForNonStitching.java:29) at com.appnomic.appsone.sink.Sink.send(Sink.java:34) at com.appnomic.transformer.service.SinkService.processToSend(SinkServi ce.java:129) at com.appnomic.logprocessor.service.LogProcessorService.process(LogPro cessorService.java:327) at com.appnomic.logforwarder.FileReader.readFiles(FileReader.java:63) at com.appnomic.logforwarder.FileWatcher.readFiles(FileWatcher.java:138)at com.appnomic.logforwarder.util.LFCache.readFilesForWatcher(LFCache.j ava:131) at com.appnomic.logforwarder.Forwarder.infiniteLoop(Forwarder.java:134) at com.appnomic.logforwarder.util.ScheduledCacheUpdater$2.run(Scheduled CacheUpdater.java:124) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:5 11) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask .access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask .run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor .java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecuto r.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem atio.netty.handler.ssl.ReferenceCountedOpenSslEngine.handshakeException (ReferenceCountedOpenSslEngine.java:1845) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.wrap(ReferenceCou ntedOpenSslEngine.java:812) at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:509) at io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:1039) at io.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:925) at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1403) at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java: 1234) at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1280) at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProt ection(ByteToMessageDecoder.java:507) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessage Decoder.java:446) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessag eDecoder.java:276) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abs tractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abs tractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Abstr actChannelHandlerContext.java:357) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Defa ultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abs tractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abs tractChannelHandlerContext.java:365) atio.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChann elPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstr actNioByteChannel.java:166) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.ja va:719) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEv entLoop.java:655) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.j ava:581) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThrea dEventExecutor.java:989) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.jav a:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocal Runnable.java:30) ... 1 common frames omitted Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.ja va:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl. java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerI mpl.java:281) atsun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustMa nagerImpl.java:136) at io.netty.handler.ssl.OpenSslTlsv13X509ExtendedTrustManager.checkServ erTrusted(OpenSslTlsv13X509ExtendedTrustManager.java:223) at io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTr ustManagerVerifyCallback.verify(ReferenceCountedOpenSslClientContext .java:234) at io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertific ateVerifier.verify(ReferenceCountedOpenSslContext.java:723) at io.netty.internal.tcnative.SSL.readFromSSL(Native Method) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.readPlaintextData( ReferenceCountedOpenSslEngine.java:635) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceC ountedOpenSslEngine.java:1245) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceC ountedOpenSslEngine.java:1371) at io.netty.handler.ssl.SslHandler$SslEngineType$1.unwrap(SslHandler.ja va:219) at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1338) ... 21 common frames omitted Suppressed: javax.net.ssl.SSLHandshakeException: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.sslReadErrorResult (ReferenceCountedOpenSslEngine.java:1334) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceC ountedOpenSslEngine.java:1295) ... 24 common frames omitted Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathB uilder.java:141)at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCer tPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 35 common frames omitted
The vjlogger log data is not sent to GRPC.
2. Check the certificate status, the error is due to the expiry of the configuration certificate.
3. Renew the certificate.
Case 2: Configuration Issue#
The issue is caused by an extra space character at the beginning of the access log entries.
Modify the regex in the Log Forwarder Agent's configuration (conf.json) as follows:
From:
"regex": "^(\S+) \S+ \S+ (\S+) \[(\S+) \S+\] "([^"]+)" (\S+) \S+"
To:
"regex": "^ (\S+) \S+ \S+ (\S+) \[(\S+) \S+\] "([^"]+)" (\S+) \S+"
After this update, restart the Log Forwarder Agent, and it will be able to capture and send transactions to the UI.
Case 3: Certificate Issue#
Disruption in transaction data collection.
The Error vjlogger logs are as below:
2023-05-19 11:09:57.574 [pool-5-thread-1] ERROR vjLogger:110 -
Exception is got while stitched sending data - UNAVAILABLE: io
exception
io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at
io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:2
33)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:214)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:139)
at
com.appnomic.appsone.common.protbuf.MessagePublisherGrpc$MessagePubl
isherBlockingStub.publishTransactionMessage(MessagePublisherGrpc.jav
a:302)
at
com.appnomic.transformer.sink.GRPCSinkForNonStitching.sendOnNetwork(
GRPCSinkForNonStitching.java:102)
at
com.appnomic.transformer.sink.GRPCSinkForNonStitching.sendOnNetwork(
GRPCSinkForNonStitching.java:29)
at com.appnomic.appsone.sink.Sink.send(Sink.java:34)
at
com.appnomic.transformer.service.SinkService.processToSend(SinkServi
ce.java:129)
at
com.appnomic.logprocessor.service.LogProcessorService.process(LogPro
cessorService.java:327)
at
com.appnomic.logforwarder.FileReader.readFiles(FileReader.java:63)
at
com.appnomic.logforwarder.FileWatcher.readFiles(FileWatcher.java:138)
at
com.appnomic.logforwarder.util.LFCache.readFilesForWatcher(LFCache.j
ava:131)
at
com.appnomic.logforwarder.Forwarder.infiniteLoop(Forwarder.java:134)
at
com.appnomic.logforwarder.util.ScheduledCacheUpdater$2.run(Scheduled CacheUpdater.java:124) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:5 11) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask .access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask .run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor .java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecuto r.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.handshakeException (ReferenceCountedOpenSslEngine.java:1845) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.wrap(ReferenceCou ntedOpenSslEngine.java:812) at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:509) at io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:1039) at io.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:925) at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1403) at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java: 1234) at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1280) at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProt ection(ByteToMessageDecoder.java:507) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessage Decoder.java:446)at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessag eDecoder.java:276) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abs tractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abs tractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(Abstr actChannelHandlerContext.java:357) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(Defa ultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abs tractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(Abs tractChannelHandlerContext.java:365) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChann elPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(Abstr actNioByteChannel.java:166) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.ja va:719) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEv entLoop.java:655) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.j ava:581) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThrea dEventExecutor.java:989) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocal Runnable.java:30) ... 1 common frames omitted Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.ja va:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl. java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerI mpl.java:281) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustMa nagerImpl.java:136) at io.netty.handler.ssl.OpenSslTlsv13X509ExtendedTrustManager.checkServ erTrusted(OpenSslTlsv13X509ExtendedTrustManager.java:223) at io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTr ustManagerVerifyCallback.verify(ReferenceCountedOpenSslClientContext .java:234) at io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertific ateVerifier.verify(ReferenceCountedOpenSslContext.java:723) at io.netty.internal.tcnative.SSL.readFromSSL(Native Method) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.readPlaintextData( ReferenceCountedOpenSslEngine.java:635) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceC ountedOpenSslEngine.java:1245) atio.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceC ountedOpenSslEngine.java:1371) at io.netty.handler.ssl.SslHandler$SslEngineType$1.unwrap(SslHandler.ja va:219) at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1338) ... 21 common frames omitted Suppressed: javax.net.ssl.SSLHandshakeException: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.sslReadErrorResult (ReferenceCountedOpenSslEngine.java:1334) at io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceC ountedOpenSslEngine.java:1295) ... 24 common frames omitted Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathB uilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCer tPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 35 common frames omitted
The configured certificate had expired date, which affected the data transmission to GRPC.

Solution:
Renew the certificate, to resume the data collection.
Case 4: Timezone mismatch issue#
Issue:
A 3-hour delay in transaction data collection from Vjlogger to the Heal UI.
Cause: The delay was attributed to a time zone mismatch in log writing.
Solution:
1. Timezone Adjustment: Align the time zone in the Vjlogger configuration to GMT (Africa/Monrovia), matching the time zone used in the access.log .
2. Result: This adjustment will successfully synchronize the data collection, and resolve the delay issue.