Very powerful server agent for collecting & sending logs & metrics with an easy-to-use web console.
logkit-community support multiple sources and can send kinds of data to Pandora, every data source relevant to a logic runner,a runner's workaround as follows:
Weclome to contribute to logkit:
lastest stable:Go to Download page
History:Go to Releases
Trial:construct lastest logkit trial version every 5:00am (only for Linux 64 and Docker), you can download it (note: not include update of frontend).
Docker image nightly: docker pull wonderflow/logkit:nightly
export LOGKIT_VERSION=<version number>
wget https://pandora-dl.qiniu.com/logkit_${LOGKIT_VERSION}.tar.gz && tar xvf logkit_${LOGKIT_VERSION}.tar.gz && rm logkit_${LOGKIT_VERSION}.tar.gz && cd _package_linux64/
export LOGKIT_VERSION=<version number>
wget https://pandora-dl.qiniu.com/logkit_mac_${LOGKIT_VERSION}.tar.gz && tar xvf logkit_mac_${LOGKIT_VERSION}.tar.gz && rm logkit_mac_${LOGKIT_VERSION}.tar.gz && cd _package_mac/
please download https://pandora-dl.qiniu.com/logkit_windows_<LOGKIT_VERSION>.zip
并解压缩,go to directory
logkit.conf is logkit-community tool's configuration,mainly for specifing running resource and paths of runners.
Open logkit.conf
, for example:
{
"max_procs": 8,
"debug_level": 1,
"clean_self_log":true,
"bind_host":"localhost:3000",
"static_root_path":"./public",
"confs_path": ["confs*"]
}
For simply use, you can only focus on three options:
bind_host
port of logkit we。static_root_path
statistic resource path of logkit page, recommand to use absolute path note:old version moved to "public-old" directory。confs_path
including add conf in web, logkit also support monitor directory to add runners. (if you only need to add logkit runner in web, you can ignore this option)./logkit -f logkit.conf
the web url is the value of bind_host
configured in step 2
refer to README file:logkitweb/README.md
go build -o logkit logkit.go
./logkit -f logkit.conf
docker pull wonderflow/logkit:<version>
docker run -d -p 3000:3000 -v /local/logkit/dataconf:/app/confs -v /local/log/path:/logs/path logkit:<version>
get configs deploying in Kubernetes
curl -L -O https://raw.githubusercontent.com/qiniu/logkit/master/deploy/logkit_on_k8s.yaml
enjoy it!