Tailing logs
Usage
$ skpr logs tail nginx
Following streams: nginx
{ "body_bytes_sent": "37", "http_forward": "0.0.0.213", "http_header": "-", "http_referrer": "-", "http_user_agent": "ELB-HealthChecker/2.0", "http_x_amzn_trace_id": "-", "remote_addr": "0.0.0.213", "remote_user": "-", "request": "GET /readyz HTTP/1.1", "request_id": "c752f5aaa71d829a9d35a23fad851250", "request_method": "GET", "request_time": "0.002", "request_uri": "/readyz", "request_uri_query": "-", "server_name": "", "status": "200", "timestamp": "2025-02-24T12:14:12+00:00", "upstream_addr": "127.0.0.1:9000", "upstream_cache_status": "-", "upstream_http_x_drupal_cache": "-", "upstream_http_x_drupal_dynamic_cache": "-", "upstream_response_length": "23", "upstream_response_time": "0.002", "upstream_status": "200" }
{ "body_bytes_sent": "37", "http_forward": "0.0.0.131", "http_header": "-", "http_referrer": "-", "http_user_agent": "ELB-HealthChecker/2.0", "http_x_amzn_trace_id": "-", "remote_addr": "0.0.0.131", "remote_user": "-", "request": "GET /readyz HTTP/1.1", "request_id": "0945890586b3909d7a9b0ba7267844f7", "request_method": "GET", "request_time": "0.001", "request_uri": "/readyz", "request_uri_query": "-", "server_name": "", "status": "200", "timestamp": "2025-02-24T12:14:13+00:00", "upstream_addr": "127.0.0.1:9000", "upstream_cache_status": "-", "upstream_http_x_drupal_cache": "-", "upstream_http_x_drupal_dynamic_cache": "-", "upstream_response_length": "23", "upstream_response_time": "0.002", "upstream_status": "200" }
{ "body_bytes_sent": "16", "http_forward": "0.0.0.76", "http_header": "-", "http_referrer": "-", "http_user_agent": "kube-probe/1.31+", "http_x_amzn_trace_id": "-", "remote_addr": "0.0.0.76", "remote_user": "-", "request": "GET /readyz HTTP/1.1", "request_id": "7fb496e3a2b6c2bab7baf817179726d5", "request_method": "GET", "request_time": "0.002", "request_uri": "/readyz", "request_uri_query": "-", "server_name": "", "status": "200", "timestamp": "2025-02-24T12:14:16+00:00", "upstream_addr": "127.0.0.1:9000", "upstream_cache_status": "-", "upstream_http_x_drupal_cache": "-", "upstream_http_x_drupal_dynamic_cache": "-", "upstream_response_length": "23", "upstream_response_time": "0.001", "upstream_status": "200" }
More information
$ skpr logs tail --help
usage: skpr logs tail [<flags>] <environment> [<stream>...]
Follow a stream of logs
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--indent Enable indenting for pretty printed logs
Args:
<environment> Name of the environment
[<stream>] Name of the stream(s)
What's next?
After listing a log stream, consider one of the following: