logs
Stream logs of Kubemq operator pods command

Synopsis

Logs command allows to stream pods logs with powerful filtering capabilities
1
kubemqctl get operator logs [flags]
Copied!

Examples

1
# Stream logs with selection of Kubemq operator
2
kubemqctl get operator logs
3
4
# Stream logs of all pods in default namespace
5
kubemqctl get operator logs .* -n default
6
7
# Stream logs of regex base pods with logs since 10m ago
8
kubemqctl get operator logs kubemq-cluster.* -s 10m
9
10
# Stream logs of regex base pods with logs since 10m ago include the string of 'connection'
11
kubemqctl get operator logs kubemq-cluster.* -s 10m -i connection
12
13
# Stream logs of regex base pods with logs exclude the string of 'error'
14
kubemqctl get operator logs kubemq-operator.* -s 10m -e error
15
16
# Stream logs of specific container
17
kubemqctl get operator logs -c kubemq-cluster-0
Copied!

Options

1
-c, --container string Set container regex
2
--disable-color Set to disable colorized output
3
-e, --exclude stringArray Set strings to exclude
4
-h, --help help for logs
5
-i, --include stringArray Set strings to include
6
-l, --label string Set label selector
7
-n, --namespace string Set default namespace
8
-s, --since duration Set since duration time
9
-t, --tail int Set how many lines to tail for each pod
Copied!

Options inherited from parent commands

1
--config string set kubemqctl configuration file (default "./.kubemqctl.yaml")
Copied!
Last modified 1yr ago