Skip to main content

cp

inctl logs cp

Copies recently logged blobs & logs to a local folder

Synopsis

Copies recently logged blobs & logs to a local folder

inctl logs cp <event_source> <destination> [--lookback=600] | --historic [--historic_start_timestamp=2024-08-20T12:00:00Z --historic_end_timestamp=2024-08-20T12:00:00Z] [flags]

Options

  -c, --context string                    The Kubernetes cluster to use.
-h, --help help for cp
--historic Uses the cloud to fetch historical logs.
--historic_end_timestamp string End timestamp in RFC3339 format for fetching historical logs. eg. 2024-08-20T12:00:00Z
--historic_start_timestamp string Start timestamp in RFC3339 format for fetching historical logs. eg. 2024-08-20T12:00:00Z
--lookback duration The time window to copy logs from (default 10m0s)
-q, --quiet Suppress the best-effort pipeline reminder message
--use_localhost Connect to localhost instead of using SSH to connecting to the cluster.

Options inherited from parent commands

      --address string          The address of the cluster.
When not running the cluster on localhost, this should be the address of the relay
(e.g.: dns:///www.endpoints.<gcp_project_name>.cloud.goog:443).
Can be defined via the INTRINSIC_ADDRESS environment variable. (default "xfa.lan:17080")
--debug (optional) Prints extensive debug messages
--follow (optional) Whether to follow the solution logs.
--onprem_address string (optional) The onprem address (host:port) of the workcell. Used to circumvent the need of routing through the cloud, if the workcell is running in the same network as the inctl
--org string The Intrinsic organization to use. You can set the environment variable
INTRINSIC_ORG=organization to set a default organization.
-o, --output string (optional) Output format. One of: (json, ndjson)
--prefix_id (optional) Prefix each log line with the asset ID, e.g., '[my-skill-id]'. Enabled for multiple targets are provided.
--prefix_type (optional) Prefix each log line with the asset type, e.g., '[Skill]' or '[Service]'.
--print-trace Print the trace identifier when exiting.
--service strings (optional) Indicates logs source is a service (or a list of services)
--since string (optional) Show logs starting since value. Value is either relative (e.g 10m) or
date time in RFC3339 format (e.g: 2006-01-02T15:04:05Z07:00)
--skill strings (optional) Indicates logs source is a skill (or a list of skills)
--solution string Solution ID from which logs will be read.
Can be defined via the INTRINSIC_SOLUTION environment variable.
--tail int (optional) The number of recent log lines to display. An input number less than 0 shows all log lines. (default 10)
--timeout string (optional) Maximum time to wait to receive logs. (default "300s")
--timestamps (optional) Whether to include timestamps on each log line.

SEE ALSO

  • inctl logs - Prints logs from skills or services in a given solution