# Filebeat red status after quickstart deployment

**URL:** https://discuss.elastic.co/t/filebeat-red-status-after-quickstart-deployment/307795
**Category:** Elastic Cloud on Kubernetes (ECK)
**Tags:** docker
**Created:** [June 21, 2022, 7:34pm UTC](https://discuss.elastic.co/t/filebeat-red-status-after-quickstart-deployment/307795 "2022-06-21T19:34:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Carlos\_T](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_t/32/97624_2.png) [@Carlos\_T](https://discuss.elastic.co/u/Carlos_T)
#### Post date: [June 21, 2022, 7:34pm UTC](https://discuss.elastic.co/t/filebeat-red-status-after-quickstart-deployment/307795/1 "2022-06-21T19:34:16Z")

</div>

Good morning.

After creating the operator and deploying 3 Master nodes + 3 multi-role nodes of ES with the following manifest:

```auto
cat <<EOF | oc apply -f -
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: elkcluster
spec:
  version: 8.2.3
  nodeSets:
  - name: masters
    config:
      node.roles: ["master"]
      node.store.allow_mmap: false
    count: 3
  - name: data
    count: 3
    config:
      node.roles: ["data", "ingest", "ml", "transform"]
EOF

```

And after deploying Kibana with this other manifest:

```auto
cat <<EOF | oc apply -f -
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana
spec:
  version: 8.2.3
  count: 2
  elasticsearchRef:
    name: elkcluster
EOF

```

Which seems to work well:

> $ oc get all  
> NAME READY STATUS RESTARTS AGE  
> pod/elkcluster-es-data-0 1/1 Running 0 4m35s  
> pod/elkcluster-es-data-1 1/1 Running 0 4m35s  
> pod/elkcluster-es-data-2 1/1 Running 0 4m35s  
> pod/elkcluster-es-masters-0 1/1 Running 0 4m35s  
> pod/elkcluster-es-masters-1 1/1 Running 0 4m35s  
> pod/elkcluster-es-masters-2 1/1 Running 0 4m35s  
> pod/kibana-kb-6f8fb7d65b-dsvdn 1/1 Running 0 84s  
> pod/kibana-kb-6f8fb7d65b-gpmvx 1/1 Running 0 84s
> 
> NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE  
> service/elkcluster-es-data ClusterIP None 9200/TCP 4m36s  
> service/elkcluster-es-http ClusterIP X.X.X.X 9200/TCP 4m37s  
> service/elkcluster-es-internal-http ClusterIP X.X.X.X 9200/TCP 4m37s  
> service/elkcluster-es-masters ClusterIP X.X.X.X 9200/TCP 4m36s  
> service/elkcluster-es-transport ClusterIP X.X.X.X 9300/TCP 4m37s  
> service/kibana-kb-http ClusterIP X.X.X.X 5601/TCP 85s
> 
> NAME READY UP-TO-DATE AVAILABLE AGE  
> deployment.apps/kibana-kb 2/2 2 2 84s
> 
> NAME DESIRED CURRENT READY AGE  
> replicaset.apps/kibana-kb-6f8fb7d65b 2 2 2 84s
> 
> NAME READY AGE  
> statefulset.apps/elkcluster-es-data 3/3 4m35s  
> statefulset.apps/elkcluster-es-masters 3/3 4m36s
> 
> 0008525@PC29AKRP MINGW64 ~  
> $ oc get elastic  
> NAME HEALTH NODES VERSION PHASE AGE  
> [elasticsearch.elasticsearch.k8s.elastic.co/elkcluster](http://elasticsearch.elasticsearch.k8s.elastic.co/elkcluster) green 6 8.2.3 Ready 5m10s
> 
> NAME HEALTH NODES VERSION AGE  
> [kibana.kibana.k8s.elastic.co/kibana](http://kibana.kibana.k8s.elastic.co/kibana) green 2 8.2.3 117s

I tried to deploy beats by using the 'quick start' manifest.  
https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-beat-quickstart.html  
But I know I did some changes as I added extra ES nodes with different roles and one extra Kibana pod in my previous manifests.

This is the manifest I should use but when I use it, it doesn't work.

```auto
 cat <<EOF | kubectl apply -f -
 apiVersion: beat.k8s.elastic.co/v1beta1
 kind: Beat
 metadata:
   name: quickstart
 spec:
   type: filebeat
   version: 8.2.3
   elasticsearchRef:
     name: quickstart
   config:
     filebeat.inputs:
     - type: container
       paths:
       - /var/log/containers/*.log
   daemonSet:
     podTemplate:
       spec:
         dnsPolicy: ClusterFirstWithHostNet
         hostNetwork: true
         securityContext:
           runAsUser: 0
         containers:
         - name: filebeat
           volumeMounts:
           - name: varlogcontainers
             mountPath: /var/log/containers
           - name: varlogpods
             mountPath: /var/log/pods
           - name: varlibdockercontainers
             mountPath: /var/lib/docker/containers
         volumes:
         - name: varlogcontainers
           hostPath:
             path: /var/log/containers
         - name: varlogpods
           hostPath:
             path: /var/log/pods
         - name: varlibdockercontainers
           hostPath:
             path: /var/lib/docker/containers
 EOF

```

Once I use it the beat service is in red status forever.

Can someone please tell me what changes should I made to make it work? I'm sorry of my lack of knowledge in K8's.

Thank you very much to all and regards.

Carlos T.

---

<div class="post-metadata">

### Author: ![michael.morello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael.morello/32/47448_2.png) [@michael.morello](https://discuss.elastic.co/u/michael.morello)
#### Post date: [July 7, 2022, 7:12am UTC](https://discuss.elastic.co/t/filebeat-red-status-after-quickstart-deployment/307795/2 "2022-07-07T07:12:33Z")

</div>

Could you run the following commands please?

1. `kubectl get beat.beat.k8s.elastic.co/quickstart -o jsonpath='{ .status }'`
2. `kubectl describe ds quickstart-beat-filebeat`

Thanks

---

<div class="post-metadata">

### Author: ![Carlos\_T](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_t/32/97624_2.png) [@Carlos\_T](https://discuss.elastic.co/u/Carlos_T)
#### Post date: [July 7, 2022, 1:39pm UTC](https://discuss.elastic.co/t/filebeat-red-status-after-quickstart-deployment/307795/3 "2022-07-07T13:39:40Z")

</div>

Hi Michael.

Thank you very much for your help.

I had to recreate the project. It took no effort but now I'm getting into the problem from and to a different scenario.

```auto
$ oc get beat
NAME HEALTH AVAILABLE EXPECTED TYPE VERSION AGE
quickstart filebeat 12m

$ oc get beat.beat.k8s.elastic.co/quickstart -o jsonpath='{ .status }'
{"elasticsearchAssociationStatus":"Pending"}

$ oc describe ds quickstart-beat-filebeat
Error from server (NotFound): daemonsets.apps "quickstart-beat-filebeat" not found

```

Thank you again and regards.

Carlos T.

---

<div class="post-metadata">

### Author: ![michael.morello](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael.morello/32/47448_2.png) [@michael.morello](https://discuss.elastic.co/u/michael.morello)
#### Post date: [July 7, 2022, 1:58pm UTC](https://discuss.elastic.co/t/filebeat-red-status-after-quickstart-deployment/307795/4 "2022-07-07T13:58:46Z")

</div>

I think this is because there is no Elasticsearch resource named `quickstart`:

```auto
 spec:
   type: filebeat
   version: 8.2.3
   elasticsearchRef:
     name: quickstart

```

Should it be:

```auto
 spec:
   type: filebeat
   version: 8.2.3
   elasticsearchRef:
     name: elkcluster

```

---

<div class="post-metadata">

### Author: ![Carlos\_T](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_t/32/97624_2.png) [@Carlos\_T](https://discuss.elastic.co/u/Carlos_T)
#### Post date: [July 8, 2022, 5:31pm UTC](https://discuss.elastic.co/t/filebeat-red-status-after-quickstart-deployment/307795/5 "2022-07-08T17:31:37Z")

</div>

It is clear that I have more to learn than time available 🙂  
Michael, thanks a lot, I would like to invest more time to this but unfortunatetly I'm also creating a Dockercompose to get a 3 Master Nodes, 3 Data Nodes, 1 Kibana a 2 Logstash containers and the 2 Logstash are stealing me too much time to go back to this ECK issue. Maybe if I'm more realeased in the future I will resume it. Besides, my boss has asked also me to learn clouldwatch in short term. Sorry for the incovenience and thanks a lot again for your time and best regards.

Carlos T.

---

<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: [August 5, 2022, 5:32pm UTC](https://discuss.elastic.co/t/filebeat-red-status-after-quickstart-deployment/307795/6 "2022-08-05T17:32:20Z")

</div>

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