Vector in CrashLoopBackOff when using matchLabel containing special character in RHOCP 4
Issue
-
Vector is in
CrashLoopBackOff
when using the special character/
withmatchLabel
returning an error similar to the below:$ oc logs collector-45pwm Defaulted container "collector" out of: collector, logfilesmetricexporter 2023-05-12T12:54:21.368864Z WARN vector::config::loading: Transform "route_container_logs._unmatched" has no consumers 2023-05-12T12:54:21.368892Z WARN vector::config::loading: Transform "route_application_logs._unmatched" has no consumers 2023-05-12T12:54:21.417131Z ERROR vector::topology: Configuration error. error=Transform "route_application_logs": error[E701]: call to undefined variable ┌─ :1:31 │ 1 │ .kubernetes.labels.local.test/logtype == "user" │ ^^^^^^^ │ │ │ undefined variable │ did you mean "true"? │ = see language documentation at https://vrl.dev error[E100]: unhandled error ┌─ :1:1 │ 1 │ .kubernetes.labels.local.test/logtype == "user" │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ │ │ expression can result in runtime error │ handle the error case to ensure runtime success │ = see documentation about error handling at https://errors.vrl.dev/#handling = learn more about error code 100 at https://errors.vrl.dev/100 = see language documentation at https://vrl.dev
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Red Hat OpenShift Logging (RHOL)
- 5.6
- 5.7
- Vector
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.