OS Manuals

/usr/bin/kgrep

Testing tools

From tw 0.0.58-r0 (os), captured 2026-11-05 by running kgrep --help (exit 0). permalink

Simple kubernetes pod grepping

Usage:
  kgrep RESOURCE [PATTERN] [flags]

Flags:
  -c, --container string         container to grep logs from (if not specified, will search in all)
  -h, --help                     help for kgrep
  -i, --ignore-case              toggle to ignore case for the match
  -v, --invert-match             toggle to invert the match
  -n, --namespace string         namespace to install the release into (default "default")
      --ne stringArray           regular expression that must NOT be present
      --ne-exclude stringArray   exclude specific patterns from --std-errors (only works with --std-errors)
  -e, --regexp stringArray       regular expression to match that must be present
  -r, --retry int                number of times to retry a failed request
      --std-errors               check for 13 standard error patterns
  -t, --timeout duration         time to wait for logs to appear (default 5s)
Options (11)
OptionDescriptionSource
-c, --container stringcontainer to grep logs from (if not specified, will search in all)help
-h, --helphelp for kgrephelp
-i, --ignore-casetoggle to ignore case for the matchhelp
-v, --invert-matchtoggle to invert the matchhelp
-n, --namespace stringnamespace to install the release into (default "default")help
--ne stringArrayregular expression that must NOT be presenthelp
--ne-exclude stringArrayexclude specific patterns from --std-errors (only works with --std-errors)help
-e, --regexp stringArrayregular expression to match that must be presenthelp
-r, --retry intnumber of times to retry a failed requesthelp
--std-errorscheck for 13 standard error patternshelp
-t, --timeout durationtime to wait for logs to appear (default 5s)help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.