Hasura CLI: hasura platform:microservice logs

Show logs for microservices

Synopsis

Show logs for microservices running on a cluster.

To see what are the microservices running on the cluster, use
$ hasura cluster status
hasura platform:microservice logs [service-name] [flags]

Alias: log

Examples

# If it is a custom microservice:
$ hasura microservice logs app

# If it is a hasura microservice:
$ hasura microservice logs auth -n hasura

# If the microservice contains multiple containers:
$ hasura microservice logs app --container app-0

# If there are multiple pods present in the microservice:
$ hasura microservice logs app --pod app-573242310-ck5rf

Options

-c, --cluster string     alias of the cluster where the microservice is running
    --container string   specify the container to get logs from
-f, --follow             specify if logs should be streamed
-h, --help               help for logs
-n, --namespace string   use --namespace=hasura for hasura microservices (default "user")
-p, --pod string         name of pod to get logs from (optional)
    --tail int           lines of recent log file to display

Options inherited from parent commands

--project string   hasura project directory where the commands should be executed. (default: current directory)

SEE ALSO

Auto generated by spf13/cobra