2020-01-14 15:57:45 +03:00
|
|
|
.. meta::
|
|
|
|
:description: Get Hasura GraphQL engine server logs with Kubernetes deployment
|
|
|
|
:keywords: hasura, docs, deployment, kubernetes, logs
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
.. _kubernetes_logs:
|
|
|
|
|
2018-10-10 17:21:43 +03:00
|
|
|
Hasura GraphQL engine server logs (Kubernetes)
|
|
|
|
==============================================
|
|
|
|
|
2018-12-03 15:12:24 +03:00
|
|
|
.. contents:: Table of contents
|
|
|
|
:backlinks: none
|
|
|
|
:depth: 1
|
|
|
|
:local:
|
|
|
|
|
2019-09-11 10:17:14 +03:00
|
|
|
You can check the logs of the Hasura GraphQL engine deployed on Kubernetes by checking the logs of the GraphQL engine
|
2018-10-11 14:40:53 +03:00
|
|
|
service, i.e. ``hasura``:
|
2018-10-10 17:21:43 +03:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-10-11 14:40:53 +03:00
|
|
|
$ kubectl logs -f svc/hasura
|
|
|
|
|
2019-05-10 09:05:11 +03:00
|
|
|
{"timestamp":"2018-10-09T11:20:32.054+0000", "level":"info", "type":"http-log", "detail":{"status":200, "query_hash":"01640c6dd131826cff44308111ed40d7fbd1cbed", "http_version":"HTTP/1.1", "query_execution_time":3.0177627e-2, "request_id":null, "url":"/v1/graphql", "user":{"x-hasura-role":"admin"}, "ip":"127.0.0.1", "response_size":209329, "method":"POST", "detail":null}}
|
2018-10-11 14:40:53 +03:00
|
|
|
...
|
2018-10-10 17:21:43 +03:00
|
|
|
|
|
|
|
|
2019-07-11 08:37:06 +03:00
|
|
|
**See:**
|
|
|
|
|
|
|
|
- https://kubernetes.io/docs/concepts/cluster-administration/logging for more details on logging in Kubernetes.
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
- :ref:`hge_logs` for more details on Hasura logs
|