Skip to content

Avoid operator being parsed as selector #1740

Answered by thardev
thardev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mikefarah

You are actually right, the writers entry looks like this:

logging:
  min_level: __PRINT_LEVEL__
  writers:
    - type: stdout
      format: pretty-colored
    - type: file
      format: json
      filename: /var/log/__APP__/__APP__.log
      max_size: 100
      max_backups: 10
      compress: true

So I already figured out and I solved it using the following expression: yq -i '.logging.writers[1].filename = "/var/log/__APP__/__APP__.log"'

Thanks a lot for your answer!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by thardev
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