Logging is a key part of being able to understand and diagnose distributed systems. Consolidating log statements and events and being able to query and visualise them is an extremely useful tool.
With fabric8 we recommend using:
If you are running Fabric8 with the Fabric8 Console then go to the Apps tab and click Run:
Then click on the "Logging" App. You can then enter the base domain name for your Kubernetes/OpenShift cluster for the
Route host name suffix field (this will generate an OpenShift route for you. We are working generating the Kubernetes Ingress definition for vanilla Kube #5567). You can optionally turn this off by clicking the checkbox. This should install Elasticsearch Master nodes and the Kibana UI as Kubernetes pods and fluentd as a Kubernetes Daemon set. It will also set up Kubernetes replication controllers and Services for you. For example, if your base Kubernetes cluster is at
vagrant.f8 then the App will be set up with services at
Once the Logging App is running (watch the pods start up in the fabric8 console!) you can find the service you'd like to access and navigate to it. You can do this by selecting the
Services tab, or the little vertical ellipses that has a Services drop-down chooser: