github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/docs/user_docs/cli/kbcli_migration_logs.md (about)

     1  ---
     2  title: kbcli migration logs
     3  ---
     4  
     5  Access migration task log file.
     6  
     7  ```
     8  kbcli migration logs NAME [flags]
     9  ```
    10  
    11  ### Examples
    12  
    13  ```
    14    # Logs when returning to the "init-struct" step from the migration task mytask
    15    kbcli migration logs mytask --step init-struct
    16    
    17    # Logs only the most recent 20 lines when returning to the "cdc" step from the migration task mytask
    18    kbcli migration logs mytask --step cdc --tail=20
    19  ```
    20  
    21  ### Options
    22  
    23  ```
    24        --all-containers                     Get all containers' logs in the pod(s).
    25    -c, --container string                   Print the logs of this container
    26    -f, --follow                             Specify if the logs should be streamed.
    27    -h, --help                               help for logs
    28        --ignore-errors                      If watching / following pod logs, allow for any errors that occur to be non-fatal
    29        --insecure-skip-tls-verify-backend   Skip verifying the identity of the kubelet that logs are requested from.  In theory, an attacker could provide invalid log content back. You might want to use this if your kubelet serving certificates have expired.
    30        --limit-bytes int                    Maximum bytes of logs to return. Defaults to no limit.
    31        --max-log-requests int               Specify maximum number of concurrent logs to follow when using by a selector. Defaults to 5.
    32        --pod-running-timeout duration       The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running (default 20s)
    33        --prefix                             Prefix each log line with the log source (pod name and container name)
    34    -p, --previous                           If true, print the logs for the previous instance of the container in a pod if it exists.
    35    -l, --selector string                    Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.
    36        --since duration                     Only return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs. Only one of since-time / since may be used.
    37        --since-time string                  Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of since-time / since may be used.
    38        --step string                        Specify the step. Allow values: precheck,init-struct,init-data,cdc
    39        --tail int                           Lines of recent log file to display. Defaults to -1 with no selector, showing all log lines otherwise 10, if a selector is provided. (default -1)
    40        --timestamps                         Include timestamps on each line in the log output
    41  ```
    42  
    43  ### Options inherited from parent commands
    44  
    45  ```
    46        --as string                      Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
    47        --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
    48        --as-uid string                  UID to impersonate for the operation.
    49        --cache-dir string               Default cache directory (default "$HOME/.kube/cache")
    50        --certificate-authority string   Path to a cert file for the certificate authority
    51        --client-certificate string      Path to a client certificate file for TLS
    52        --client-key string              Path to a client key file for TLS
    53        --cluster string                 The name of the kubeconfig cluster to use
    54        --context string                 The name of the kubeconfig context to use
    55        --disable-compression            If true, opt-out of response compression for all requests to the server
    56        --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
    57        --kubeconfig string              Path to the kubeconfig file to use for CLI requests.
    58        --match-server-version           Require server version to match client version
    59    -n, --namespace string               If present, the namespace scope for this CLI request
    60        --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
    61    -s, --server string                  The address and port of the Kubernetes API server
    62        --tls-server-name string         Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
    63        --token string                   Bearer token for authentication to the API server
    64        --user string                    The name of the kubeconfig user to use
    65  ```
    66  
    67  ### SEE ALSO
    68  
    69  * [kbcli migration](kbcli_migration.md)	 - Data migration between two data sources.
    70  
    71  #### Go Back to [CLI Overview](cli.md) Homepage.
    72