Skip to content

Commit

Permalink
Update README.md wrt reading logs (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
fweikert authored and philwo committed Jan 14, 2019
1 parent 4e70e79 commit a28ddf2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions gitsync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,4 @@ permissions:

# Getting logs from the container

Print the logs of the last minute in an easily readable format:

```
$ gcloud logging read --project bazel-public --freshness 1m \
--format 'value(receiveTimestamp,jsonPayload.data)' \
'logName="projects/bazel-public/logs/gcplogs-docker-driver" AND
jsonPayload.instance.name="gitsync"' | tail -r
```
You can view the Docker logs by navigating to the VM in GCE and then by either clicking on "Stackdriver logging" or ssh-ing into the machine and running `docker logs`.

0 comments on commit a28ddf2

Please sign in to comment.