ELK Stack
The ELK stack includes Elasticsearch, Logstash and Kibana.
- Elasticsearch is a search and analytics engine
- Logstash is a server-side data processing pipeline
- Kibana is a UI for the stack
Each of these products is open-source, which means we can host them on Kubernetes for free (the only cost is the cost of hosting the cluster).
- Create an Elasticsearch cluster. Save the following file as
elastic.yml
.apiVersion: elasticsearch.k8s.elastic.co/v1 kind: Elasticsearch metadata: name: quickstart spec: version: 8.5.1 nodeSets: - name: default count: 1 config: node.store.allow_mmap: false
Apply the manifest.
kubectl apply -f elastic.yml
Verify creation
kubectl get elasticsearch
- Create a Kibana instance. Save the following file as
kibana.yml
.apiVersion: kibana.k8s.elastic.co/v1 kind: Kibana metadata: name: quickstart spec: version: 8.5.1 count: 1 elasticsearchRef: name: quickstart
Apply the manifest.
kubectl apply -f kibana.yml
Verify creation
kubectl get kibana