Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.53 KB

07_fluentbit_ssc.md

File metadata and controls

48 lines (29 loc) · 1.53 KB

Install FluentBit on Shared Services Cluster

Set configuration parameters

The scripts to prepare the YAML to deploy fluent-bit depend on a parameters to be set. Ensure the following are set in `params.yaml':

shared-services-cluster.elasticsearch-fqdn: elasticsearch.dorn.tkg-aws-e2-lab.winterfell.live
shared-services-cluster.kibana-fqdn: logs.dorn.tkg-aws-e2-lab.winterfell.live

Prepare Manifests and Deploy Fluent Bit

Prepare the YAML manifests for the related fluent-bit K8S objects. Manifest will be output into generated/$SHARED_SERVICES_CLUSTER_NAME/fluent-bit/ in case you want to inspect.

./scripts/generate-and-apply-fluent-bit-yaml.sh $(yq e .shared-services-cluster.name $PARAMS_YAML)

Validation Step

Ensure that fluent bit pods are running.

kubectl get pods -n tanzu-system-logging

Test Log Access

  1. Access kibana. This leverages the wildcard DNS entry on the convoy ingress. Your base domain will be different than mine.
open http://$(yq e .shared-services-cluster.kibana-fqdn $PARAMS_YAML)
  1. You should see the kibana welcome screen.

  2. Click the Discover icon at the top of the left menu bar.

  3. You will see widget to create an index pattern. Enter logstash-* and click next step.

  4. Select @timestamp for the Time filter field name. and then click Create index pattern.

  5. Now click the Discover icon at the top of the left menu bar. You can start searching for logs.

Go to Next Step

Add Prometheus and Grafana to Shared Services Cluster