UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
elastic.md 1.3 KiB
Newer Older
runyontr's avatar
runyontr committed
## Logs from the ECK stack

#### Pre-requisites
runyontr's avatar
runyontr committed
- ECK stack deployed

#### Getting Started

- Login to Kibana
  - username: elastic
  - Password : can be obtained by querying kubectl get secrets -n logging logging-ek-es-elastic-user -o go-template='{{.data.elastic | base64decode}}'
evan.rush's avatar
evan.rush committed
- 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 the next step Click on the dropdown and select "@timestamp"
runyontr's avatar
runyontr committed

- For Search click on Discovery from the side menu

evan.rush's avatar
evan.rush committed
- In KQL textbox enter `kubernetes.namespace.name : elastic`
runyontr's avatar
runyontr committed

- Click Refresh/Update

- Note: Logs from the monitoring stack can be viewd 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

Ghost User's avatar
Ghost User committed
- `kubernetes.pod_name`   = `Kibana Pod Name` to get logs from a specific  pod
  - `kubernetes.container_name` = `kibana` to get logs from kibana container
runyontr's avatar
runyontr committed

Ghost User's avatar
Ghost User committed
#### Elasticsearch Pods
runyontr's avatar
runyontr committed

Ghost User's avatar
Ghost User committed
- `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