Skip to content

Logs from the ECK Stack📜

Getting Started📜

Pre-requisites📜

  • ECK stack deployed

Accessing Kibana📜

  • Login to Kibana
  • Username: elastic
  • Password: obtained by running:

    kubectl get secrets -n logging logging-ek-es-elastic-user -o go-template='{{.data.elastic | base64decode}}'
    
  • Create an Index by clicking the Management icon in the left menu and clicking Index patterns under Kibana. In the Create Index patterns enter logstash-* and click create index pattern. In the next step click on the dropdown and select @timestamp.

  • For Search click on Discovery from the side menu

  • In the KQL textbox enter kubernetes.namespace.name : elastic

  • Click Refresh/Update

  • Note: Logs from the monitoring stack can be viewed on Kibana. The default index pattern is logstash-*. Logs for the entire ECK stack can be procured by filtering on the elastic namespace.

Further filters that can be used are:

Kibana📜

  • kubernetes.pod_name = Kibana Pod Name to get logs from a specific pod
  • kubernetes.container_name = kibana to get logs from the Kibana container

Elasticsearch Pods📜

  • kubernetes.pod_name = elastic-es-default-# to get logs from a specific pod
  • kubernetes.container_name = elasticsearch or elastic-internal-init-filesystem to get logs from a specific container within the pod