WSO2 – Starting error while integration with ELK

  Kiến thức lập trình

Getting following error message while starting apimanager.

Getting following error message while starting apimanager. 

Error:
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "PaxOsgi" for logger config "root"
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_CONSOLE" for logger config "root"
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "ERROR_LOGFILE" for logger config "root"
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "root"
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "PaxOsgi" for logger config "root"
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_CONSOLE" for logger config "root"
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "ERROR_LOGFILE" for logger config "root"
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "CARBON_LOGFILE" for logger config "root"

My log4j2.properties settings:

#### ELK Config ############
appenders = APIM_METRICS_APPENDER
appender.APIM_METRICS_APPENDER.type = RollingFile
appender.APIM_METRICS_APPENDER.name = APIM_METRICS_APPENDER
appender.APIM_METRICS_APPENDER.fileName = ${sys:carbon.home}/repository/logs/apim_metrics.log

.
.
appender.APIM_METRICS_APPENDER.policies.size.size=1000MB
appender.APIM_METRICS_APPENDER.strategy.type = DefaultRolloverStrategy
appender.APIM_METRICS_APPENDER.strategy.max = 10
loggers = reporter
logger.reporter.name = org.wso2.am.analytics.publisher.reporter.elk
logger.reporter.level = INFO
logger.reporter.additivity = false
logger.reporter.appenderRef.APIM_METRICS_APPENDER.ref = APIM_METRICS_APPENDER

  1. Is my log4j2.properties setting is correct.
  2. Sample example for basic ELK integration for WSO2 apimanager.

LEAVE A COMMENT