From 60d272b823dfd78d9c70f3654786c89fe514ea57 Mon Sep 17 00:00:00 2001 From: Mustafa Demirhan <4033879+mdemirhan@users.noreply.github.com> Date: Wed, 11 Apr 2018 09:47:44 -0700 Subject: [PATCH] Add documentation for accessing build logs. (#623) * Add documentation for accessing build logs. --- debugging/application-debugging-guide.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/debugging/application-debugging-guide.md b/debugging/application-debugging-guide.md index da03d2c69..e15e9fac2 100644 --- a/debugging/application-debugging-guide.md +++ b/debugging/application-debugging-guide.md @@ -112,15 +112,16 @@ your `Revision`: kubectl get build $(kubectl get revision -o jsonpath="{.spec.buildName}") -o yaml ``` -The `conditions` in `status` provide the reason if there is any failure. +The `conditions` in `status` provide the reason if there is any failure. To access build logs, first execute `kubectl proxy` and then open [Kibana UI](http://localhost:8001/api/v1/namespaces/monitoring/services/kibana-logging/proxy/app/kibana). Use any of the following filters within Kibana UI to see build logs. _(See [telemetry guide](../telemetry.md) for more information on logging and monitoring features of Elafros.)_ +* All build logs: `_exists_:"kubernetes.labels.build-name"` +* Build logs for a specific build: `kubernetes.labels.build-name:""` +* Build logs for a specific build and step: `kubernetes.labels.build-name:"" AND kubernetes.container_name:"build-step-"` ## Check application logs - Elafros provides default out-of-box logs for your application. After executing `kubectl proxy`, you can go to the [Kibana UI](http://localhost:8001/api/v1/namespaces/monitoring/services/kibana-logging/proxy/app/kibana) -to search for logs. You need to do create an index when you open Kibana for the -first time. See this [instruction](../telemetry.md) for details. +to search for logs. _(See [telemetry guide](../telemetry.md) for more information on logging and monitoring features of Elafros.)_ ### Stdout/stderr logs