# Kibana states "No Log Data Found" on ECK

**URL:** https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064
**Category:** Kibana
**Tags:** elastic-stack-monitoring, docker
**Created:** [August 14, 2022, 12:04pm UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064 "2022-08-14T12:04:28Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![papers\_hive](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@papers\_hive](https://discuss.elastic.co/u/papers_hive)
#### Post date: [August 14, 2022, 12:04pm UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/1 "2022-08-14T12:04:28Z")

</div>

I am running Elasticsearch (ECK) on Oracle Kubernetes Engine. The version in use is 7.14.1. The stack consists of: Elasticsearch, Kibana, Filebeat+Heartbeat+Metricbeat.  
Each of these services runs properly and it is properly configured by following [Elastic Cloud on Kubernetes [2.10] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/index.html).

Currently, we can search, inspect logs on Kibana and access the dashboard perfectly. Though, when entering on Stack Monitoring we are getting a:  
 ![Screenshot from 2022-08-14 13-57-12](https://us1.discourse-cdn.com/elastic/original/3X/6/4/640843756f14dc693635649a20c7ff65a016b762.png)

When inspecting the deployment we are getting healthy (green) pods:  
 ![Screenshot from 2022-08-14 14-00-34](https://us1.discourse-cdn.com/elastic/original/3X/1/5/152e13c8a67e3186723361d601fada481c7ec590.png)

By looking for similar issues online, I have encountered the following material that did **not** turn out useful for our case:

> <https://github.com/elastic/kibana/issues/22483>
>
> \*\*Kibana version:\*\*
> 
> 6.3.2
> 
> \*\*Elasticsearch version:\*\*
> 
> 6.3.2
> 
> \*\*Server …OS version:\*\*
> 
> centos7 3.10.0-514.el7.x86\_64 
> 
> \*\*Browser version:\*\*
> 
> chrome 68
> 
> \*\*Browser OS version:\*\*
> 
> Mac os 
> 
> \*\*Original install method (e.g. download page, yum, from source, etc.):\*\*
> 
> down page
> 
> \*\*Describe\*\*
> 
> we use elk for log service , and add x-pack plugin to monitor elasticsearch system, but I acess kibana dashboard, and switch to monitoring, show me 
> 
> \`\`\`
> We couldn't activate monitoring
> No monitoring data found. Try setting the time filter to "Last 1 hour" or check if data is available for a different time period.
> 
> If data is in your cluster, your monitoring dashboards will show up here. I restart kibana, elasticsearch , also show. I can find the monitor index (monitor-es-6-xxxx, monitor-kibana-6-xxxx) in our elasticsearch ? this is bugs ? or hot can i fix this problem , thanks 
> 
> \`\`\`
> 
> \*\*Screenshots (if relevant):\*\*
> 
> !\[image\](https://user-images.githubusercontent.com/14839922/44777138-61e62f00-abac-11e8-82d5-37afaa477593.png)
> !\[image\](https://user-images.githubusercontent.com/14839922/44777190-7e826700-abac-11e8-9d7d-74023f2836b5.png)
> 
> !\[image\](https://user-images.githubusercontent.com/14839922/44777265-c0131200-abac-11e8-9c67-baa9213fdb32.png)

[https://www.reddit.com/r/elasticsearch/comments/r0qjjc/no\_log\_data\_in\_stack\_monitoringhelup/](https://www.reddit.com/r/elasticsearch/comments/r0qjjc/no_log_data_in_stack_monitoringhelup/)

> [@Elasticsearch server logs not visible in Kibana Stack monitoring](https://discuss.elastic.co/t/elasticsearch-server-logs-not-visible-in-kibana-stack-monitoring/287672):
>
> Hi, I do collect elsticsearch server (7.10.2) logs with filebeat (7.10.2) and they do exist in filebeat-\* index. These logs do NOT appear in Kibana Stack monitoring page as illustrated in [https://www.elastic.co/guide/en/kibana/7.10/user/monitoring/images/monitoring-elasticsearch.png](https://www.elastic.co/guide/en/kibana/7.10/user/monitoring/images/monitoring-elasticsearch.png) or [https://www.elastic.co/guide/en/kibana/7.10/user/monitoring/images/monitoring-elasticsearch-logs.png](https://www.elastic.co/guide/en/kibana/7.10/user/monitoring/images/monitoring-elasticsearch-logs.png), What is the condition that should be satisfied so logs and log.level-counts appear in Stack monitoring applic…

Do you have any other suggestion to follow? Log-indexes seem to be written perfectly and we can inspect them easily on Kibana Dev Tools. How can I connect them to Stack Monitoring? Thanks!

---

<div class="post-metadata">

### Author: ![matschaffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matschaffer/32/95396_2.png) [@matschaffer](https://discuss.elastic.co/u/matschaffer)
#### Post date: [August 22, 2022, 6:05am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/2 "2022-08-22T06:05:09Z")

</div>

Is `filebeat` running somewhere as well (the screenshot only shows heartbeat and metricbeat)? You'll need that in order to ingest the ES logs into the expected `filebeat-*` index pattern.

Checking which indices are available (for example via `_cat/indices`) could be a useful next step as well as checking the filebeat process config and logs for any errors.

---

<div class="post-metadata">

### Author: ![papers\_hive](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@papers\_hive](https://discuss.elastic.co/u/papers_hive)
#### Post date: [August 22, 2022, 1:40pm UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/3 "2022-08-22T13:40:13Z")

</div>

Sorry for not having added that. Filebeat is perfectly working as well:

 ![Screenshot from 2022-08-22 15-36-37](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6ba49321119f227cda720df8b83f3b85d91d0f5d.png)

Though it does not show when performing `kubectl get beat` could that be one of the issues?

Here the result of the call \_cat/indices

 ![Screenshot from 2022-08-22 15-39-44](https://us1.discourse-cdn.com/elastic/original/3X/6/3/63ee2d16f80e2abfa0056ba1b27d6ca261f4e49f.png)

Let me know if you need more data.

---

<div class="post-metadata">

### Author: ![matschaffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matschaffer/32/95396_2.png) [@matschaffer](https://discuss.elastic.co/u/matschaffer)
#### Post date: [August 22, 2022, 11:41pm UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/4 "2022-08-22T23:41:56Z")

</div>

Are there documents in `filebeat-*` with `service.type: elasticsearch`? That's what the query from the stack monitoring server code is looking for [kibana/get\_logs.ts at main · elastic/kibana · GitHub](https://github.com/elastic/kibana/blob/main/x-pack/plugins/monitoring/server/lib/logs/get_logs.ts#L74-L110)

If you can send the filebeat configuration that might help

That field should get set when ingesting using the [filebeat elasticsearch module](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-elasticsearch.html).

---

<div class="post-metadata">

### Author: ![papers\_hive](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@papers\_hive](https://discuss.elastic.co/u/papers_hive)
#### Post date: [August 23, 2022, 6:38am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/5 "2022-08-23T06:38:52Z")

</div>

I performed this search

```auto
GET filebeat-7.14.1/_search
{
  "query": {"term": {
    "service.type": {
      "value": "elasticsearch"
    }
  }}
}

```

I get many documents in reply, here a screenshot:

 ![Screenshot from 2022-08-23 08-31-30](https://us1.discourse-cdn.com/elastic/original/3X/1/8/18b8879a5fa0558b45f983acef51a941a291b1d6.png)

Here the whole filebeat configuration, taken basically from here: [Quickstart | Elastic Cloud on Kubernetes [2.3] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-beat-quickstart.html)

```auto
apiVersion: beat.k8s.elastic.co/v1beta1
kind: Beat
metadata:
  name: <META>
spec:
  type: filebeat
  version: 7.14.1
  elasticsearchRef:
    name: <ES_REF>
  kibanaRef:
    name: <KIBANA_REF>
  config:
    filebeat:
      autodiscover:
        providers:
          - type: kubernetes
            node: ${NODE_NAME}
            hints:
              enabled: true
              default_config:
                type: container
                paths:
                  - /var/log/containers/*${data.kubernetes.container.id}.log
    processors:
      - add_cloud_metadata: {}
      - add_host_metadata: {}
  daemonSet:
    podTemplate:
      spec:
        serviceAccountName: filebeat
        automountServiceAccountToken: true
        terminationGracePeriodSeconds: 30
        dnsPolicy: ClusterFirstWithHostNet
        hostNetwork: true # Allows to provide richer host metadata
        containers:
          - name: filebeat
            securityContext:
              runAsUser: 0
              # If using Red Hat OpenShift uncomment this:
              #privileged: true
            volumeMounts:
              - name: varlogcontainers
                mountPath: /var/log/containers
              - name: varlogpods
                mountPath: /var/log/pods
              - name: varlibdockercontainers
                mountPath: /var/lib/docker/containers
            env:
              - name: NODE_NAME
                valueFrom:
                  fieldRef:
                    fieldPath: spec.nodeName
        volumes:
          - name: varlogcontainers
            hostPath:
              path: /var/log/containers
          - name: varlogpods
            hostPath:
              path: /var/log/pods
          - name: varlibdockercontainers
            hostPath:
              path: /var/lib/docker/containers
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: filebeat
rules:
  - apiGroups: [""] # "" indicates the core API group
    resources:
      - namespaces
      - pods
      - nodes
    verbs:
      - get
      - watch
      - list
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: filebeat
  namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: filebeat
subjects:
  - kind: ServiceAccount
    name: filebeat
    namespace: default
roleRef:
  kind: ClusterRole
  name: filebeat
  apiGroup: rbac.authorization.k8s.io

```

Thank you again for your effort in helping!

---

<div class="post-metadata">

### Author: ![matschaffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matschaffer/32/95396_2.png) [@matschaffer](https://discuss.elastic.co/u/matschaffer)
#### Post date: [August 23, 2022, 7:06am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/6 "2022-08-23T07:06:47Z")

</div>

Thanks @papers_hive ! I'm most familiar with using the elasticsearch filebeat module directly and I don't have much experience with hinted k8s configuration.

Do you know if the containers in question are hinted in a way that would activate that module for the elasticsearch container logs?

Do the docs that you found also contain a `elasticsearch.cluster.uuid` field?

It seems like those are the only two that are required by that `getLogs` function to show logs in the UI.

---

<div class="post-metadata">

### Author: ![papers\_hive](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@papers\_hive](https://discuss.elastic.co/u/papers_hive)
#### Post date: [August 23, 2022, 7:34am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/7 "2022-08-23T07:34:39Z")

</div>

By rerunning and inspecting the before query, I saw that every record has the cluster.uuid in the form:

![Screenshot from 2022-08-23 09-31-43](https://us1.discourse-cdn.com/elastic/original/3X/9/7/974997bd3a7bfaf6a3887c643d294f50e98c3696.png)

I do not know exactly how the containers would fetch the logs to elasticsearch. As both `heartbeat` and `metricbeat` were automatically working, I assumed the same for filebeat. And I can see it generates logs files and it is able to see the elasticsearch cluster and the uuid, though somehow these logs are not shipped to the correct place for Kibana to show them.

And I am a bit lost.

---

<div class="post-metadata">

### Author: ![matschaffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matschaffer/32/95396_2.png) [@matschaffer](https://discuss.elastic.co/u/matschaffer)
#### Post date: [August 24, 2022, 1:26am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/8 "2022-08-24T01:26:37Z")

</div>

It's hard to tell from just a screenshot of the doc, but I checked the query on a 8.3 deployment and it looks like it's using the same fields I mentioned above.

If this works, then the UI should be able to show you the same logs as long as you're viewing the same cluster/timerange as the documents.

```auto
POST filebeat-*/_search
{
  "fields": [
    "@timestamp",
    "service.type",
    "elasticsearch.cluster.uuid",
    "message"
  ],
  "sort": {
    "@timestamp": {
      "order": "desc"
    }
  },
  "query": {
    "bool": {
      "filter": [
        {
          "term": {
            "service.type": "elasticsearch"
          }
        },
        {
          "exists": {
            "field": "elasticsearch.cluster.uuid"
          }
        }
      ]
    }
  },
  "_source": false
}

```

The "we are unable to diagnose why" is curious too.

It means this whole section is reaching the end without determining a cause either: [kibana/reason.js at 7.14 · elastic/kibana · GitHub](https://github.com/elastic/kibana/blob/7.14/x-pack/plugins/monitoring/public/components/logs/reason.js#L25) (checks in [kibana/detect\_reason.js at 7.14 · elastic/kibana · GitHub](https://github.com/elastic/kibana/blob/7.14/x-pack/plugins/monitoring/server/lib/logs/detect_reason.js#L11))

I wonder if there might be info the kibana logs that would point to a cause.

---

<div class="post-metadata">

### Author: ![papers\_hive](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@papers\_hive](https://discuss.elastic.co/u/papers_hive)
#### Post date: [August 25, 2022, 2:15pm UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/9 "2022-08-25T14:15:39Z")

</div>

Hi! Sorry for the delayed reply. Got a bit behind in other stuff.

This is the reply when running that query on the cluster:

 ![Screenshot from 2022-08-25 16-14-40](https://us1.discourse-cdn.com/elastic/original/3X/b/6/b690e5263bc1c20fb97b8fa792bc2cfa3f134622.png)

---

<div class="post-metadata">

### Author: ![matschaffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matschaffer/32/95396_2.png) [@matschaffer](https://discuss.elastic.co/u/matschaffer)
#### Post date: [August 26, 2022, 2:12am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/10 "2022-08-26T02:12:49Z")

</div>

No problem and thanks for the response! That sure looks like it should match the query.

And you're definitely viewing the same cluster uuid shown in `elastic.cluster.uuid` right?

Have you checked your kibana logs or browser console for any errors?

I wonder if there might be some permissions problem causing trouble. Technically the query run by the UI is probably `POST *:filebeat-*,filebeat-*/_search`, so maybe try that to see if there might be some CCS execution problem as well.

---

<div class="post-metadata">

### Author: ![papers\_hive](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@papers\_hive](https://discuss.elastic.co/u/papers_hive)
#### Post date: [August 29, 2022, 6:58am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/11 "2022-08-29T06:58:17Z")

</div>

Yes, we are viewing the same cluster uuid shown in `elastic.cluster.uuid`.

Where should I run that query? On the Kibana dashboard?

---

<div class="post-metadata">

### Author: ![matschaffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matschaffer/32/95396_2.png) [@matschaffer](https://discuss.elastic.co/u/matschaffer)
#### Post date: [August 31, 2022, 1:11am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/12 "2022-08-31T01:11:37Z")

</div>

Same place you did the last one. I use kibana's dev tools usually.

---

<div class="post-metadata">

### Author: ![papers\_hive](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@papers\_hive](https://discuss.elastic.co/u/papers_hive)
#### Post date: [August 31, 2022, 7:43am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/13 "2022-08-31T07:43:56Z")

</div>

I run that query on Dev Tools and here a screen shot of the reply:

 ![Screenshot from 2022-08-31 09-42-55](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4f2ac8c7059d0ec018bf8659f44f57832b79d75.png)

Kind of as usual, it sees the index and there are \>10k items in it. All with an uuid.

---

<div class="post-metadata">

### Author: ![matschaffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matschaffer/32/95396_2.png) [@matschaffer](https://discuss.elastic.co/u/matschaffer)
#### Post date: [September 5, 2022, 5:30am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/14 "2022-09-05T05:30:38Z")

</div>

Yeah, that looks reasonable too. If you can upgrade to at least 7.15, you could try setting `monitoring.ui.debug_mode: true` to see what queries the UI is executing exactly.

Or on 7.17 you could enable APM traces as shown on [3 tips to identify Kibana optimizing potential | Elastic Blog](https://www.elastic.co/blog/3-tips-to-identify-kibana-optimizing-potential) - that would capture the ES queries into an APM trace.

It's also possible we're looking at a 7.14 bug here, but I can't recall anything like this offhand.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 3, 2022, 5:31am UTC](https://discuss.elastic.co/t/kibana-states-no-log-data-found-on-eck/312064/15 "2022-10-03T05:31:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
