Qiuniu
qiuniu is a log collector for application based on Kubernetes.
qiuniu can support user to collect these logs of application:
- configmap
- container
- deployment
- endpoint
- event
- image
- job
- node
- pod
- persistent volume
- persistent volume claim
- roles
- rolebinding
- service
- serviceaccount
- statefulset
- storageclass
- helm
Installation
To install qiuniu, you need to install Go and set your Go workspace first.
- Clone qiuniu from github
git clone https://github.com/hxia043/qiuniu.git
- Build qiuniu
$ cd cmd
$ go build -o qiuniu main.go
- Move qiuniu to system env
mv qiuniu /usr/bin
Quickly start
- Find help from help command
$qiuniu help
The log collector for Kubernetes application
Available Commands:
help help for qiuniu
version print the qiuniu version information
env qiuniu client env information
zip compress the log
clean clean the log
helm collect the helm release log for application
log collect the kubernetes application log
Options:
log
-h, --host kubernetes cluster hostname or ip
-p, --port kubernetes cluster port
-t, --token kubernetes cluster token
-n, --namespace kubernetes cluster namespace
-w, --workspace the workspace for qiuniu
helm
-k, --kubeconfig local kubeconfig path of kubernetes cluster
-n, --namespace kubernetes cluster namespace
-w, --workspace the workspace for qiuniu
zip
-d, --dir the dir of compress the log
clean
-w, --workspace the workspace for qiuniu
-i, --interval the time interval between log collect time and current time
- Get qiuniu version
$ qiuniu version
qiuniu version: 1.0 Release go version: go1.17.7
Docs
- Get start from the user guide
Q&A
- raise issue from issues