Table of Contents
Fluent Bit Deploying Steps
kubectl create namespace logging
kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-service-account.yaml
kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role.yaml
kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding.yaml
kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-configmap.yaml
update the yaml file:
fluent-bit-ds.yaml apiVersion: apps/v1 ... selector: matchLabels: name: fluent-bit template: metadata: labels: name: fluent-bit ... env: - name: FLUENT_ELASTICSEARCH_HOST value: "10.97.24.124" - name: FLUENT_ELASTICSEARCH_PORT value: "19200" ...
kubectl create -f fluent-bit-ds.yaml
then log will push to http://10.97.24.124:19200/logstash-2020.03.26/_search
Kibana Install/Configure
curl -O https://artifacts.elastic.co/downloads/kibana/kibana-7.6.2-linux-x86_64.tar.gz
curl https://artifacts.elastic.co/downloads/kibana/kibana-7.6.2-linux-x86_64.tar.gz.sha512 | shasum -a 512 -c -
tar -xzf kibana-7.6.2-linux-x86_64.tar.gz
cd kibana-7.6.2-linux-x86_64/
Edit config/kibana.yml:
server.host: "10.114.95.77" (Your machine running with Kibana)
elasticsearch.hosts: ["http://10.97.24.124:19200] (Elasticseach IP:Port)
Start Kibana
./bin/kibana ( Or ./bin/kibana --allow-root)
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now