Skip to content

Using crio cmdline, how can I check the current log_level set for crio? #7845

Closed Answered by kwilczynski
alpana17 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @alpana17, thank you for asking!

With any modern version of CRI-O, you can use the crio binary itself to interrogate current runtime configuration, for example:

  • Check the current log level set

Note: This requires access permissions to the CRI-O control Unix socket!

# crio status config 2>/dev/null | grep log_level
    log_level = "info"

You can also use c for short of config in the above.

  • Save the current configuration to a file
# crio status config > crio.conf
  • Save annotated (with comments) default configuration file
$ crio config 2>/dev/null > crio.conf

Older versions of CRI-O ship with a dedicated command-line (CLI) utility called crio-status, which had the same option called c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alpana17
Comment options

Answer selected by alpana17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants