- cpu: 4
- memory: 8192
-
Deploy
kubectl apply -f .
-
Check connection Fluentd-Elastisearch
kubectl get pods -n kube-system kubectl logs fluentd-* -n kube-system -f
You should see that Fluentd connect to Elasticsearch within the logs:
Connection opened to Elasticsearch cluster => {:host=>"elasticsearch.logging", :port=>9200, :scheme=>"http", :path=>""}
-
Configure Kibana
open http://$(minikube ip):$(kubectl get svc -n logging | grep -i kibana | awk '{print $5}' | cut -d ',' -f 1 | sed 's,[0-9]*:,,' | sed 's,/TCP,,')
- Left menu: "Management"
- Kibana group: "Index Patterns"
- Button: "Create index pattern"
- Index creation form 1: Index pattern: logstash*
- Button: "Next step"
- Index creation form 2: Time Filter field name: @timestamp
- Button: "Create index pattern"
- Leave open the window
-
Spin up application
docker build -t fluentd-node-sample:latest -f sample-app/Dockerfile sample-app kubectl apply -f kubernetes/node-deployment.yaml -n default
-
Back to Kibana Left menu: "Discover" to see logs
- docs
- tutorials
- operator
- samples