Replies: 3 comments
-
You need to use single quote for referring string. parse-json
| project "app"=replace_string("app",'v2','latest') |
Beta Was this translation helpful? Give feedback.
-
@yesoreyeram : I am using below query for iif function but its not working , could you please give us the correct fornat for this conditional query parse-json
| jsonata "components[id in $Login_format ]"
| project "status" = iif("status" == 'operational',1,0) |
Beta Was this translation helpful? Give feedback.
-
Hiya. I recommend you to search for existing answers in Grafana community forum and in github discussions. If you don't see an existing answer, create a new post there. Github issues are not correct place of asking help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Function replace_string is not working as expended
Steps to reproduce
Use UQL
parse-json
| project "app"=replace_string("app","v2","latest")
Note: bugs will be fixed only if enough information provided to reproduce the issue
Sample Data
Screenshots
If applicable, add screenshots to help explain your problem.
Version Details:
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions