A LogQL query reads like a sentence in two pieces separated by vertical bars. The first piece, between braces, says which shelf to go to: {service="api"}. Loki uses it to choose streams, without reading a single line. Everything that comes after, behind |, says what to do with each line once the shelf is open: keep it or not (|= "500"), open it to read its fields (| json), keep it according to a field (| duree_ms > 500), rewrite it (| line_format). That second piece is called the pipeline, and it runs left to right, line by line, exactly like Unix pipes.
Preview — the rest of the lesson is for enrolled readers.
Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.
Sign inNo account yet? Create oneThe first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.