"description":"A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.",
"required":false,
"allowMultiple":false
},
{
"type":"*unversioned.Time",
"paramType":"query",
"name":"sinceTime",
"description":"An RFC3339 timestamp from which to show logs. If this value preceeds the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.",
"required":false,
"allowMultiple":false
},
{
"type":"boolean",
"paramType":"query",
"name":"timestamps",
"description":"If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.",
"required":false,
"allowMultiple":false
},
{
"type":"*int64",
"paramType":"query",
"name":"tailLines",
"description":"If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime",
"required":false,
"allowMultiple":false
},
{
"type":"*int64",
"paramType":"query",
"name":"limitBytes",
"description":"If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.",
"":"PodLogOptions is the query options for a Pod's logs REST call.",
"container":"The container for which to stream logs. Defaults to only container if there is one container in the pod.",
"follow":"Follow the log stream of the pod. Defaults to false.",
"previous":"Return previous terminated container logs. Defaults to false.",
"":"PodLogOptions is the query options for a Pod's logs REST call.",
"container":"The container for which to stream logs. Defaults to only container if there is one container in the pod.",
"follow":"Follow the log stream of the pod. Defaults to false.",
"previous":"Return previous terminated container logs. Defaults to false.",
"sinceSeconds":"A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.",
"sinceTime":"An RFC3339 timestamp from which to show logs. If this value preceeds the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.",
"timestamps":"If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.",
"tailLines":"If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime",
"limitBytes":"If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.",
cmd.Flags().BoolP("follow","f",false,"Specify if the logs should be streamed.")
cmd.Flags().Bool("timestamps",false,"Include timestamps on each line in the log output")
cmd.Flags().Bool("interactive",true,"If true, prompt the user for input when required. Default true.")
cmd.Flags().BoolP("previous","p",false,"If true, print the logs for the previous instance of the container in a pod if it exists.")
cmd.Flags().Int("limit-bytes",0,"Maximum bytes of logs to return. Defaults to no limit.")
cmd.Flags().Int("tail",-1,"Lines of recent log file to display. Defaults to -1, showing all log lines.")
cmd.Flags().String("since-time","","Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of since-time / since may be used.")
cmd.Flags().Duration("since",0,"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.")