View logs for the given namespace and application
logs command is used to view historical logs. This expects a namespace and an application to be available to return results. Set the default namespace using 'logiqctl set-context' command or pass as '-n=NAMESPACE' flag. Application name needs to be passed as an argument to the command or use the 'interactive' command to choose from the list of available applications and processes.
Global flag '--time-format' is not applicable for this command. Global flag '--output' only supports json format for this command.
logiqctl logs [flags]
Print logs for logiq ingest server- logiqctl logs logiq-flashPrint logs in json format- logiqctl -o=json logs logiq-flashIn the case of Kubernetes deployment, a Stateful Set is an application, and each pod in it is a processPrint logs for logiq-flash ingest server filtered by process logiq-flash-2The --process (-p) flag lets you view logs for the individual pod- logiqctl logs -p=logiq-flash-2 logiq-flashRuns an interactive prompt to let user choose filters- logiqctl logs interactive|iSearch logs for the given text- logiqctl logs search "your search term"If the flag --follow (-f) is specified the logs will be streamed till it over.
-f, --follow Specify if the logs should be streamed.-h, --help help for logs--page-size uint32 Number of log entries to return in one page (default 30)-p, --process string Filter logs by proc id-s, --since string Only return logs newer than a relative duration. This is in relative to the lastseen log time for a specified application or processes within the namespace.A duration string is a possibly signed sequence of decimal numbers, each with optionalfraction and a unit suffix, such as "3h34m", "1.5h" or "24h". Valid time units are "s", "m", "h" (default "1h")
-c, --cluster string Override the default cluster set by `logiqctl set-cluster' command-n, --namespace string Override the default context set by `logiqctl set-context' command-o, --output string Output format. One of: table|json|yaml.json output is not indented, use '| jq' for advanced json operations (default "table")-t, --time-format string Time formatting options. One of: relative|epoch|RFC3339.This is only applicable when the output format is table. json and yaml outputs will have time in epoch seconds. (default "relative")
logiqctl - Logiqctl - CLI for Logiq Observability stack
logiqctl logs interactive - Runs an interactive prompt to let the user select application and filters
logiqctl logs search - Search given text in logs