【发布时间】:2019-05-13 09:12:03
【问题描述】:
我一直在寻找 OpenDaylight Controller 中可用的日志框架。 类似于 ELK 堆栈的东西。
我发现 apache decanter 是一种可行的方法。 https://karaf.apache.org/manual/decanter/latest-1/
问题是它在普通的 karaf shell 上工作正常,但在 Oxygen SR4 版本的 ODL karaf shell 上不能正常工作。
根据文档, https://karaf.apache.org/download.html#decanter-installation
feature:repo-add decanter
feature:install decanter-appender-elasticsearch
feature:install decanter-collector-log
feature:install decanter-collector-jmx
我在 ODL karaf shell 中尝试了相同的方法。 我下载了 Oxygen-SR4 二进制文件并启动了 karaf shell。
./karaf clean Apache Karaf starting up. Press Enter to open the shell now... 100% [========================================================================]
Karaf started in 0s. Bundle stats: 13 active, 13 total
________ ________ .__ .__ .__ __
\_____ \ ______ ____ ____ \______ \ _____ ___.__.| | |__| ____ | |___/ |_
/ | \\____ \_/ __ \ / \ | | \\__ \< | || | | |/ ___\| | \ __\
/ | \ |_> > ___/| | \| ` \/ __ \\___ || |_| / /_/ > Y \ |
\_______ / __/ \___ >___| /_______ (____ / ____||____/__\___ /|___| /__|
\/|__| \/ \/ \/ \/\/ /_____/ \/
Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.
opendaylight-user@root>system:version
4.1.6
opendaylight-user@root>feature:repo-add decanter Adding feature url
opendaylight-user@root>feature:install decanter-appender-elasticsearch
org.apache.karaf.features.core[org.apache.karaf.features.internal.service.FeaturesServiceImpl] : null
但同样的事情也适用于普通的 apache karaf shell。
./karaf
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.2.5)
Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf@root()> feature:repo-add decanter Adding feature url mvn:org.apache.karaf.decanter/apache-karaf-decanter/RELEASE/xml/features karaf@root()> feature:install decanter-appender-elasticsearch karaf@root()>
谁能指出这里缺少什么,因为我觉得 shell 版本很相似?
您能否建议一些其他日志框架来处理 OpenDaylight 控制器(Oxygen SR4)中的 Karaf 日志和数据,类似于 ELK 堆栈。
【问题讨论】:
标签: opendaylight