-
Hi 🙂 So I have the following statement So I understood it is because it recognises Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Do you have an example of the file you are updating? I actually think the problem is 'writers' is an array of objects, and the expression is trying to index the array with 'filename' instead of a number |
Beta Was this translation helpful? Give feedback.
Hi @mikefarah
You are actually right, the
writers
entry looks like this: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!