# Can't get google stackdriver logging working

**URL:** <https://forums.docker.com/t/cant-get-google-stackdriver-logging-working/61563>\
**Category:** General\
**Created:** [October 28, 2018, 9:05pm UTC](https://forums.docker.com/t/cant-get-google-stackdriver-logging-working/61563 "2018-10-28T21:05:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timuckun](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/timuckun/32/17849_2.png) [@timuckun](https://forums.docker.com/u/timuckun)\
**Post date:** [October 28, 2018, 9:05pm UTC](https://forums.docker.com/t/cant-get-google-stackdriver-logging-working/61563/1 "2018-10-28T21:05:00Z")

</div>

I am trying to get stackdriver logging working Here is the command line

```
export GOOGLE_APPLICATION_CREDENTIALS=~/secrets/development-area-baae5fc698ab.json
docker \
    --debug \
    --config . \
    --log-level debug \
run \
        --env-file=.env_development \
        --log-driver=gcplogs \
        --log-opt labels=keycloak \
        --log-opt env=GOOGLE_APPLICATION_CREDENTIALS \
        --log-opt gcp-project=development-area-218700 \
        -p 8080:8080 \
        jboss/keycloak

```

Here is the daemon.json file

```
{
  "debug" : true,
  "experimental" : true,
  "log-driver" : "gcplogs"
}

```

This is the error I get

```
DEBU[0000] [hijack] End of stdout                       
docker: Error response from daemon: failed to initialize logging driver: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
ERRO[0000] error waiting for container: context canceled 

```

The credentials file is definitely there. Everything I have read this is supposed to work but it doesn’t and the error message doesn’t help at all.

What is going wrong here.

---

<div class="post-metadata">

**Author:** ![timuckun](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/timuckun/32/17849_2.png) [@timuckun](https://forums.docker.com/u/timuckun)\
**Post date:** [November 5, 2018, 9:25pm UTC](https://forums.docker.com/t/cant-get-google-stackdriver-logging-working/61563/2 "2018-11-05T21:25:08Z")

</div>

Hate to bump my own question but does anybody have an answer for this?
