# Enabled project logging, saw "Logging is disabled at current cluster."

**URL:** <https://forums.suse.com/t/enabled-project-logging-saw-logging-is-disabled-at-current-cluster/16535>\
**Category:** SUSE Rancher Prime\
**Created:** [February 9, 2020, 12:58am UTC](https://forums.suse.com/t/enabled-project-logging-saw-logging-is-disabled-at-current-cluster/16535 "2020-02-09T00:58:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![admun](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/admun/32/4361_2.png) [@admun](https://forums.suse.com/u/admun)\
**Post date:** [February 9, 2020, 12:58am UTC](https://forums.suse.com/t/enabled-project-logging-saw-logging-is-disabled-at-current-cluster/16535/1 "2020-02-09T00:58:46Z")

</div>

I tried to send all pods’ log to elasticsearch but after enabled I am seeing these warning

- We will use fluentd to collect stdout/stderr logs from each container and the log files which exist under path /var/log/containers/ on each host. The logs can be shipped to a target you configure below.
- Logging is disabled at current cluster.

How can I turn on logging on the current cluster?

rancher 2.3.5  
k8s v1.17.2 on bare metal running Centos 7.7 started by rancher  
docker 1.13.1

---

<div class="post-metadata">

**Author:** ![victor6510](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/victor6510/32/6074_2.png) [@victor6510](https://forums.suse.com/u/victor6510)\
**Post date:** [February 11, 2020, 11:08am UTC](https://forums.suse.com/t/enabled-project-logging-saw-logging-is-disabled-at-current-cluster/16535/2 "2020-02-11T11:08:10Z")

</div>

If you have an ElasticSearch cluster set up in your K8s cluster, you will need to click the Elasticsearch icon and fill corresponding information (endpoint, login info, etc) like this:

![image](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/1/1db2a82a812f6124a01845b05bf3b2efb508f05c.png)

And in the bottom of the page there is a TEST button which you can test the connectivity. If it succeeds you might Save the setting to see if logs are being shipped or not in Kibana.

I just managed to set up [ECK](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html#k8s-quickstart) and let Rancher pump logs to it which I can then see something in Kibana. Should you need more details please just let me know.

---

<div class="post-metadata">

**Author:** ![admun](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/admun/32/4361_2.png) [@admun](https://forums.suse.com/u/admun)\
**Post date:** [February 11, 2020, 6:20pm UTC](https://forums.suse.com/t/enabled-project-logging-saw-logging-is-disabled-at-current-cluster/16535/3 "2020-02-11T18:20:08Z")

</div>

I found out how to turn on project logging (That always confused me). This is done via Cluster -\> Logging

I setup a elasticsearch single node cluster and kibana in the same k8s cluster. I am able to setting up rancher logging to it.

However, I only see test/validation in log. I think docker on CentOS7 log using journald which rancher’s fluentd is not monitoring the same location. Do you know how to fix?

---

<div class="post-metadata">

**Author:** ![admun](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/admun/32/4361_2.png) [@admun](https://forums.suse.com/u/admun)\
**Post date:** [February 12, 2020, 3:30am UTC](https://forums.suse.com/t/enabled-project-logging-saw-logging-is-disabled-at-current-cluster/16535/4 "2020-02-12T03:30:49Z")

</div>

found how to fix docker to log to /var/log/containers

> [@Cluster Logging to Elasticsearch target with systemd underlying OS](http://forums.suse.com/t/cluster-logging-to-elasticsearch-target-with-systemd-underlying-os/11192/12):
>
> Changing docker’s log driver from journald to json-file resolved my issue. Just a heads up for other folks in the same situation, the current docker package in CentOS’s extras repository configures the log driver in /etc/sysconfig/docker. So configuring it in /etc/docker/daemon.json won’t work. You’ll just need to remove ‘–log-driver =journald’ from /etc/sysconfig/docker and restart docker.service.
