content large_stringlengths 3 20.5k | url large_stringlengths 53 192 ⌀ | branch large_stringclasses 4
values | source large_stringclasses 51
values | embeddings listlengths 384 384 | score float64 -0.21 0.65 |
|---|---|---|---|---|---|
# Update version numbers Upgrade the Loki version to the new release version in documents, examples, jsonnets, etc. ## Before you begin 1. Determine the [VERSION\_PREFIX](../concepts/version/). 2. Skip this step if you are doing a patch release on old release branch. Example: Latest release branch is `release-2.9.x` bu... | https://github.com/grafana/loki/blob/main/docs/sources/community/maintaining/release/update-version-numbers.md | main | loki | [
0.0036235779989510775,
-0.0210079587996006,
0.07620813697576523,
-0.03689088299870491,
0.037138842046260834,
-0.0660952478647232,
-0.033715710043907166,
0.027683405205607414,
-0.030990350991487503,
0.03059626743197441,
0.08429263532161713,
0.0018271866720169783,
-0.07723105698823929,
0.043... | 0.011 |
# Patch vulnerabilities This step patches vulnerabilities in Grafana Loki binaries and Docker images. ## Before you begin 1. Determine the [VERSION\_PREFIX](../concepts/version/). Vulnerabilities can be from two main sources. 1. Grafana Loki source code. 1. Grafana Loki dependencies. Grafana Loki dependencies can be 1.... | https://github.com/grafana/loki/blob/main/docs/sources/community/maintaining/release/patch-vulnerabilities.md | main | loki | [
-0.06751585751771927,
0.023252887651324272,
-0.0024781133979558945,
-0.04998641088604927,
-0.009900795295834541,
-0.06294656544923782,
-0.04979048669338226,
-0.00039028338505886495,
-0.06419365108013153,
0.038652367889881134,
0.02207169122993946,
-0.04385223984718323,
-0.02303878404200077,
... | 0.072377 |
# Prepare Major Release A major release follows the same process as [minor and patch releases](../prepare-release/), but requires a custom workflow to be created to run on the branch we want to release from. The reason for this is that we don't do major releases very often, so it is not economical to keep those workflo... | https://github.com/grafana/loki/blob/main/docs/sources/community/maintaining/release/major-release.md | main | loki | [
0.017334140837192535,
-0.04044777899980545,
0.04538599029183388,
-0.050116993486881256,
0.02534293197095394,
-0.06267345696687698,
-0.1253277063369751,
-0.00172702525742352,
0.032613158226013184,
0.0319259874522686,
0.04750349000096321,
0.038133393973112106,
-0.04096793010830879,
-0.021297... | 0.036787 |
# Document metrics and configurations changes Any metrics and configurations that are removed or modified need to be documented in the upgrade guide. Configurations whose default values changed should also be documented in the upgrade guide. ## Before you begin All the steps are performed on `release-VERSION\_PREFIX` b... | https://github.com/grafana/loki/blob/main/docs/sources/community/maintaining/release/document-metrics-configurations-changes.md | main | loki | [
0.013579797931015491,
-0.020848294720053673,
0.0513681098818779,
-0.04485759511590004,
0.047460611909627914,
-0.1059470847249031,
-0.05285578966140747,
-0.03795989975333214,
-0.05058271437883377,
0.02684619091451168,
0.06008460000157356,
0.016856318339705467,
-0.016495313495397568,
-0.0226... | -0.047009 |
# Create Release Branch A single release branch is created for every `major` or `minor` release (not for patch releases). That release branch is then used for all the Stable Releases, and all Patch Releases for that `major` and `minor` versions of the Grafana Loki. ## Before you begin 1. Determine the [VERSION\_PREFIX]... | https://github.com/grafana/loki/blob/main/docs/sources/community/maintaining/release/create-release-branch.md | main | loki | [
-0.006572145968675613,
-0.06811381131410599,
0.02931937761604786,
-0.009650442749261856,
-0.044205084443092346,
-0.03977736458182335,
-0.0713328942656517,
0.01213157456368208,
-0.04344898834824562,
0.09346739947795868,
0.013292004354298115,
-0.03755031153559685,
-0.04211462661623955,
0.023... | 0.070963 |
# Releasing Grafana Loki This document is a series of instructions for core Grafana Loki maintainers to be able to publish a new [Grafana Loki](https://github.com/grafana/loki) release. The general process for releasing a new version of Grafana Loki is to merge the release PR for that version. Every commit to branches ... | https://github.com/grafana/loki/blob/main/docs/sources/community/maintaining/release/_index.md | main | loki | [
-0.07337234169244766,
-0.028092460706830025,
0.014947999268770218,
-0.02835208736360073,
-0.02968035824596882,
-0.05915828049182892,
-0.08455124497413635,
-0.002263726433739066,
0.009828643873333931,
0.0729406476020813,
0.04948872700333595,
0.008883039467036724,
-0.03588893637061119,
-0.04... | 0.126393 |
# Version Grafana Loki uses Semantic Versioning. The next version can be determined by looking at the current version and incrementing it. When the release is a new `major` version (for example, after 2.9.1 we decide to go 3.0.0 instead of 2.9.2) this should not be done. You need to set two environmental values `VERSIO... | https://github.com/grafana/loki/blob/main/docs/sources/community/maintaining/release/concepts/version.md | main | loki | [
-0.022126097232103348,
-0.045252908021211624,
0.04936566203832626,
-0.08507538586854935,
0.01242811419069767,
-0.0523153655230999,
-0.10030579566955566,
-0.004009307827800512,
-0.045328155159950256,
0.021550044417381287,
0.03491895645856857,
-0.05351853370666504,
-0.09164739400148392,
0.00... | 0.015274 |
# Promtail Push API - Author: Robert Fratto (@rfratto) - Date: Feb 4 2020 - Status: DRAFT Despite being an optional piece of software, Promtail provides half the power of Loki's story: log transformations, service discovery, metrics from logs, and context switching between your existing metrics and logs. Today, Promtai... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2020-02-Promtail-Push-API.md | main | loki | [
-0.04346819594502449,
-0.05136243999004364,
-0.028577759861946106,
0.012557745911180973,
-0.006866784766316414,
-0.09596161544322968,
-0.02970043569803238,
0.05669381469488144,
-0.00827303808182478,
0.06073179841041565,
0.0028446807991713285,
-0.014963402412831783,
-0.011495587415993214,
0... | 0.13754 |
Option 2: gRPC Service The [logproto.Pusher](https://github.com/grafana/loki/blob/f7ee1c753c76ef63338d53cfba782188a165144d/pkg/logproto/logproto.proto#L8-L10) service could be exposed through Promtail. This would enable clients stubs to be generated for languages that have gRPC support, and, for HTTP1 support, a [gRPC ... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2020-02-Promtail-Push-API.md | main | loki | [
-0.0764707550406456,
-0.07962293177843094,
-0.06032031401991844,
-0.08041374385356903,
-0.03384765237569809,
-0.08386863768100739,
0.011753077618777752,
0.04550964757800102,
-0.012422137893736362,
0.053013380616903305,
0.004336958285421133,
-0.013080851174890995,
-0.041655853390693665,
0.0... | 0.079364 |
## Write-Ahead Logs Author: Owen Diehl - [owen-d](https://github.com/owen-d) ([Grafana Labs](/)) Date: 30/09/2020 ## Impetus Loki already takes numerous steps to ensure the persistence of log data, most notably the use of a configurable replication factor (redundancy) in the ingesters. However, this still leaves much t... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2020-09-Write-Ahead-Log.md | main | loki | [
-0.05513354018330574,
-0.017504701390862465,
-0.027101460844278336,
0.010188769549131393,
-0.009801513515412807,
-0.039733219891786575,
-0.003580936463549733,
0.01752513274550438,
-0.005413193255662918,
0.09341052174568176,
-0.04276049882173538,
0.05324560031294823,
0.004656614735722542,
-... | 0.19493 |
ingester receives a push, containing the fingerprint of the series it refers to and a list of `(timestamp, log\_line)` tuples, \_after\_ a `Stream` record type is written, if applicable. ```golang type LogsRecord struct { UserID string Fingperprint uint64 // label fingerprint for the series these logs refer to Entries ... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2020-09-Write-Ahead-Log.md | main | loki | [
-0.061439160257577896,
-0.004976911470293999,
0.0011426418786868453,
0.002985386410728097,
-0.009371341206133366,
-0.015917373821139336,
0.05605992302298546,
0.022714123129844666,
-0.04075033590197563,
0.03144388645887375,
0.015227272175252438,
0.05000711604952812,
-0.05440429970622063,
-0... | 0.162634 |
-> `Series` -> `Samples` such that we could no-op the later (lesser priority) types that are superseded by the former types. The benefits do not seem worth the cost here, especially considering the simpler suggested alternative and the extensibility costs if we need to add new record types if/when the ingester changes ... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2020-09-Write-Ahead-Log.md | main | loki | [
-0.1251354217529297,
-0.04888992756605148,
0.015689117833971977,
-0.005541226826608181,
0.019156591966748238,
0.06502720713615417,
-0.03670160844922066,
0.025261705741286278,
0.04416899383068085,
-0.015143209137022495,
-0.018607543781399727,
0.045775797218084335,
-0.08007656037807465,
-0.0... | 0.163833 |
# Labels Author: Ed Welch Date: February 2019 This is the official version of this doc as of 2019/04/03, the original discussion was had via a [Google doc](https://docs.google.com/document/d/16y\_XFux4h2oQkJdfQgMjqu3PUxMBAq71FoKC\_SkHzvk/edit?usp=sharing), which is being kept for posterity but will not be updated movin... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/labels.md | main | loki | [
-0.043128855526447296,
0.03337211161851883,
0.019994191825389862,
0.010553611442446709,
0.0881841629743576,
0.022293224930763245,
0.054818831384181976,
-0.019932014867663383,
0.03810003027319908,
-0.03033611923456192,
0.020241158083081245,
0.024831010028719902,
0.01993563212454319,
0.04762... | 0.099881 |
### Details As mentioned previously in the challenges for working with unstructured data, there isn’t a good one size fits all solution for extracting structured data. The Docker log format is an example where multiple levels of processing may be required, where the docker log is json, however, it also contains the log... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/labels.md | main | loki | [
-0.029308758676052094,
0.09692849963903427,
0.04644991084933281,
0.003996842075139284,
-0.01670963130891323,
-0.0800691619515419,
0.022313885390758514,
0.05579158291220665,
-0.025741280987858772,
-0.015188603661954403,
-0.049395784735679626,
-0.06917563825845718,
-0.020284172147512436,
0.0... | 0.085444 |
``` ① Similar to the json parser, if your log label matches the regex named group, you need only specify the label name as a yaml key ② If you had a use case for specifying a different label name from the regex group name you can optionally provide the `source` key with the value matching the named capture group. You c... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/labels.md | main | loki | [
-0.06437046825885773,
0.007156840059906244,
0.03770315647125244,
-0.016802605241537094,
0.03023519739508629,
-0.03094043955206871,
0.0673568919301033,
-0.022875536233186722,
0.06766171008348465,
-0.05730149894952774,
0.00038269907236099243,
-0.05686724931001663,
-0.02028018608689308,
0.071... | 0.059181 |
support loading code into the pipeline stages for even more advanced/powerful parsing capabilities. | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/labels.md | main | loki | [
-0.04345947131514549,
-0.034763798117637634,
0.017049023881554604,
0.0004786558565683663,
-0.06766969710588455,
-0.10659442096948624,
-0.08676525205373764,
0.046641938388347626,
-0.08082828670740128,
-0.05918295308947563,
-0.06963223963975906,
-0.012618663720786572,
-0.06457972526550293,
-... | 0.107992 |
## Ordering Constraint Removal Author: Owen Diehl - [owen-d](https://github.com/owen-d) ([Grafana Labs](/)) Date: 28/01/2021 ## Problem Loki imposes an ordering constraint on ingested data; that is to say incoming data must have monotonically increasing timestamps, partitioned by stream. This has historical inertia fro... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2021-01-Ordering-Constraint-Removal.md | main | loki | [
-0.07446762174367905,
-0.021364854648709297,
0.06746048480272293,
0.025086482986807823,
0.041360773146152496,
-0.047202326357364655,
-0.022483443841338158,
-0.02842596173286438,
0.06945919245481491,
0.06714938580989838,
0.019888486713171005,
0.012974572367966175,
0.02623770572245121,
0.060... | 0.080989 |
tree structure, enabling logarithmic inserts/lookups and `n log(n)` scans. \_Cutting\_ a block from the head block will iterate through this tree, creating a sorted block identical to the ones currently in use. However, because we'll be accepting arbitrarily-ordered writes, there will no longer be any guaranteed inter-... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2021-01-Ordering-Constraint-Removal.md | main | loki | [
-0.0910060852766037,
0.030380282551050186,
0.018911147490143776,
-0.013885977678000927,
0.01795744150876999,
-0.10741228610277176,
-0.024396823719143867,
-0.016735166311264038,
0.012320124544203281,
0.08243933320045471,
-0.019548408687114716,
0.04534608870744705,
0.016259251162409782,
-0.0... | 0.079975 |
timestamp ingested past this bound will trigger a cut. This process aids in increasing chunk determinism and therefore our deduplication ratio in object storage because chunks are [content addressed](https://en.wikipedia.org/wiki/Content-addressable\_storage). With the removal of our ordering constraint, it's possible ... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2021-01-Ordering-Constraint-Removal.md | main | loki | [
-0.10236133635044098,
0.014614371582865715,
0.08600375801324844,
0.0013374225236475468,
-0.010577957145869732,
-0.05181122571229935,
-0.007689795922487974,
-0.05765300616621971,
0.05115368962287903,
0.045271143317222595,
0.0010626278817653656,
0.049406543374061584,
-0.020454194396734238,
0... | 0.048804 |
a block index within it, or the pre-existing block format directly. These are stored on disk to lessen memory pressure and loaded for queries when necessary. ##### Block Index Incoming reads in an LSM-Tree may need access to the SSTable entries in addition to the currently active memtable (head block). In order to impr... | https://github.com/grafana/loki/blob/main/docs/sources/community/design-documents/2021-01-Ordering-Constraint-Removal.md | main | loki | [
-0.01578039489686489,
0.044222403317689896,
-0.012349438853561878,
0.051601216197013855,
0.019751787185668945,
-0.017107568681240082,
-0.03239712491631508,
0.033826712518930435,
-0.009303051978349686,
0.02055242285132408,
0.0038901756051927805,
0.08793939650058746,
0.02281077951192856,
-0.... | 0.064328 |
# Matching IP addresses LogQL supports matching IP addresses. With logs such as ``` 3.180.71.3 - - [17/May/2015:08:05:32 +0000] "GET /downloads/product\_1 HTTP/1.1" 304 0 "-" "Debian APT-HTTP/1.3 (0.8.16~exp12ubuntu10.21)" 80.91.33.133 - - [17/May/2015:08:05:14 +0000] "GET /downloads/product\_1 HTTP/1.1" 304 0 "-" "Deb... | https://github.com/grafana/loki/blob/main/docs/sources/query/ip.md | main | loki | [
0.021470127627253532,
-0.006557097192853689,
0.00469245994463563,
-0.10716108977794647,
0.016154298558831215,
-0.09354081749916077,
0.06530977785587311,
-0.059859465807676315,
0.06945984810590744,
0.059459201991558075,
0.05357297882437706,
-0.047657668590545654,
0.060375016182661057,
-0.00... | 0.003874 |
# Query best practices The way you write queries in Loki affects how quickly you get results returned from those queries. Understanding the way Loki parses queries can help you write queries that are efficient and performant. {{< admonition type="tip" >}} Before you start optimizing queries, read the [labels best pract... | https://github.com/grafana/loki/blob/main/docs/sources/query/bp-query.md | main | loki | [
-0.061008520424366,
0.02815660648047924,
-0.07928528636693954,
0.06870044022798538,
-0.09173282235860825,
-0.03815443441271782,
0.042975474148988724,
0.02944055385887623,
0.024329176172614098,
0.014531648717820644,
-0.014621572569012642,
-0.03132953867316246,
0.0028565244283527136,
0.01456... | 0.147592 |
log line and extract labels in different formats, which can be useful but are also more intensive for Loki to do than line filter expressions. Using them after line filter expressions means that Loki only needs to evaluate parser expressions for log lines that match the line filter expression, reducing the amount of lo... | https://github.com/grafana/loki/blob/main/docs/sources/query/bp-query.md | main | loki | [
-0.14964398741722107,
0.05507649853825569,
-0.026001760736107826,
0.023218726739287376,
-0.010067058727145195,
-0.06210937723517418,
0.010301093570888042,
-0.0027963609900325537,
0.016561312600970268,
0.005931769963353872,
-0.025843597948551178,
-0.0354284793138504,
-0.043520838022232056,
... | 0.165387 |
# Query examples These LogQL query examples have explanations of what the queries accomplish. ## Log query examples ### Examples that filter on IP address - Return log lines that are not within a range of IPv4 addresses: ```logql {job\_name="myapp"} != ip("192.168.4.5-192.168.4.20") ``` - This example matches log lines... | https://github.com/grafana/loki/blob/main/docs/sources/query/query_examples.md | main | loki | [
0.039808038622140884,
0.0824093371629715,
-0.0007588100852444768,
-0.02605331502854824,
0.019720103591680527,
-0.037322547286748886,
0.08145834505558014,
-0.017076915130019188,
0.002693795133382082,
-0.018138619139790535,
-0.014900476671755314,
-0.02768685109913349,
0.05565118417143822,
-0... | 0.04223 |
the line format reduce the amount of information and creates a tabular output. For these given log lines: ```log level=info ts=2020-10-23T20:32:18.094668233Z caller=metrics.go:81 org\_id=29 traceID=1980d41501b57b68 latency=fast query="{cluster=\"ops-tools1\", job=\"loki-ops/query-frontend\"} |= \"query\_range\"" query\... | https://github.com/grafana/loki/blob/main/docs/sources/query/query_examples.md | main | loki | [
-0.017037849873304367,
0.002985506085678935,
-0.03442326933145523,
0.03187781944870949,
-0.029751965776085854,
-0.11970148235559464,
0.0593075230717659,
-0.013832639902830124,
0.002181326039135456,
0.03705679997801781,
-0.021380973979830742,
-0.048973217606544495,
-0.014160282909870148,
0.... | 0.122739 |
# Metric queries {{< shared id="metric-queries" >}} Metric queries extend log queries by applying a function to log query results. This powerful feature creates metrics from logs. Metric queries can be used to calculate the rate of error messages or the top N log sources with the greatest quantity of logs over the last... | https://github.com/grafana/loki/blob/main/docs/sources/query/metric_queries.md | main | loki | [
-0.0705084279179573,
0.016903650015592575,
-0.015733424574136734,
0.03592044115066528,
-0.0525350384414196,
-0.06569547951221466,
0.0004989354056306183,
0.016814975067973137,
0.06414072215557098,
-0.03548352047801018,
-0.043921053409576416,
-0.05391502007842064,
0.023295056074857712,
0.026... | 0.246191 |
sample. Optionally the label identifier can be wrapped by a conversion function `| unwrap (label\_identifier)`, which will attempt to convert the label value from a specific format. We currently support the functions: - `duration\_seconds(label\_identifier)` (or its short equivalent `duration`) which will convert the l... | https://github.com/grafana/loki/blob/main/docs/sources/query/metric_queries.md | main | loki | [
-0.02370118722319603,
0.07451768219470978,
-0.0803922489285469,
-0.004663729574531317,
-0.023281730711460114,
0.03377912938594818,
0.021644311025738716,
0.05465564504265785,
-0.00658711651340127,
-0.10842270404100418,
0.02333032339811325,
-0.11963891983032227,
-0.008317001163959503,
0.0505... | 0.143233 |
`bottomk`. `topk` and `bottomk` are different from other aggregators in that a subset of the input samples, including the original labels, are returned in the result vector. `by` and `without` are only used to group the input vector. The `without` clause removes the listed labels from the resulting vector, keeping all ... | https://github.com/grafana/loki/blob/main/docs/sources/query/metric_queries.md | main | loki | [
-0.04814077913761139,
0.061825305223464966,
-0.013395730406045914,
0.02434319444000721,
0.03948872908949852,
-0.05484643206000328,
0.04476752504706383,
0.009643428027629852,
0.0882192850112915,
-0.011727198958396912,
0.01257589552551508,
0.042443886399269104,
0.06974207609891891,
-0.061267... | 0.077741 |
# Query acceleration {{< admonition type="warning" >}} In Loki and Grafana Enterprise Logs (GEL), Query acceleration using blooms is an [experimental feature](/docs/release-life-cycle/). Engineering and on-call support is not available. No SLA is provided. In Grafana Cloud, Query acceleration using Bloom filters is ena... | https://github.com/grafana/loki/blob/main/docs/sources/query/query_acceleration.md | main | loki | [
-0.04240265488624573,
-0.0011206443887203932,
-0.016181910410523415,
0.07218895852565765,
-0.07055063545703888,
-0.09539530426263809,
0.017996082082390785,
-0.04790739342570305,
0.0050836168229579926,
0.062027011066675186,
-0.00575320515781641,
-0.016526835039258003,
0.004044993780553341,
... | 0.13965 |
# LogQL template functions The Go templating language is embedded in the Loki query language, LogQL. The [text template](https://golang.org/pkg/text/template) format used in `| line\_format` and `| label\_format` support the usage of functions. {{< admonition type="note" >}} In the examples below we use backticks to qu... | https://github.com/grafana/loki/blob/main/docs/sources/query/template_functions.md | main | loki | [
0.013514170423150063,
0.10720725357532501,
0.0036472545471042395,
0.006689864676445723,
-0.05621091648936272,
0.031508918851614,
0.06384127587080002,
0.07454764097929001,
0.025872852653265,
-0.022081999108195305,
0.0073561640456318855,
-0.07142920047044754,
-0.02443082258105278,
0.05103306... | 0.011141 |
and returns the time value it represents using the local timezone of the server running Loki. For more consistency between Loki installations, it's recommended to use `toDateInZone` The format string must use the exact date as defined in the [golang datetime layout](https://pkg.go.dev/time#pkg-constants) Signature: `to... | https://github.com/grafana/loki/blob/main/docs/sources/query/template_functions.md | main | loki | [
0.027789492160081863,
0.06095315143465996,
-0.007535944227129221,
-0.05150100961327553,
0.024638783186674118,
-0.006966202054172754,
-0.024662772193551064,
0.09490473568439484,
0.02272520773112774,
-0.0800507664680481,
-0.01922050677239895,
-0.10551977157592773,
-0.09341689199209213,
0.094... | 0.056953 |
empty. If the 'src' parameter is not empty, this function returns the value of 'src'. Useful for JSON fields that can be missing, like HTTP headers in a log line that aren't required, as in the following example: ```logql {job="access\_log"} | json | line\_format `{{.http\_request\_headers\_x\_forwarded\_for | default ... | https://github.com/grafana/loki/blob/main/docs/sources/query/template_functions.md | main | loki | [
-0.06009482592344284,
0.1086435541510582,
-0.022947460412979126,
0.026729902252554893,
0.003689531935378909,
-0.051603250205516815,
0.010210525244474411,
0.04790525883436203,
0.04791172966361046,
-0.018550829961895943,
-0.02038610354065895,
-0.06439238041639328,
-0.0025433788541704416,
0.0... | 0.026268 |
```template `{{.request\_method | title}}` `{{ title "hello world"}}` ``` The last example will return `Hello World`. ### trim The trim function removes space from either side of a string. Signature: `trim(string) string` Examples: ```template `{{ .ip | trim }}` `{{ trim " hello " }}` // output: hello ``` ### trimAll U... | https://github.com/grafana/loki/blob/main/docs/sources/query/template_functions.md | main | loki | [
-0.00393992755562067,
0.16220642626285553,
0.10845319926738739,
0.015986843034625053,
-0.06447727978229523,
-0.0321195051074028,
-0.03274065628647804,
0.050807926803827286,
-0.0005013826885260642,
-0.01933412440121174,
-0.0360456183552742,
0.03603170067071915,
-0.012943553738296032,
-0.011... | -0.048788 |
float64` Example: ```template `{{ divf 10 2 4}}` // output: 1.25 ``` ### float64 Convert a string to a float64. Signature: `toFloat64(v interface{}) float64` Example: ```template `{{ "3.5" | float64 }}` //output 3.5 ``` ### floor Returns the greatest float value less than or equal to input value. Signature: `floor(a in... | https://github.com/grafana/loki/blob/main/docs/sources/query/template_functions.md | main | loki | [
0.019574962556362152,
0.13411404192447662,
-0.010126921348273754,
-0.06172927841544151,
-0.040115952491760254,
-0.06062948331236839,
-0.04233997315168381,
0.09968502819538116,
-0.0705881118774414,
-0.04549495503306389,
-0.07755841314792633,
-0.03019944578409195,
0.011282585561275482,
0.041... | -0.000558 |
replacement. The replacement string is substituted directly, without using Expand. Signature: regexReplaceAllLiteral(regex string, src string, replacement string) Example: ```template `{{ regexReplaceAllLiteral "(ts=)" .timestamp "timestamp=" }}` ``` | https://github.com/grafana/loki/blob/main/docs/sources/query/template_functions.md | main | loki | [
0.014839156530797482,
0.10209256410598755,
0.13807307183742523,
0.014532345347106457,
0.013280577026307583,
0.04002666845917702,
-0.03367055580019951,
0.06184155493974686,
0.018895097076892853,
-0.02132657915353775,
-0.057245247066020966,
0.010428679175674915,
-0.1143389493227005,
0.010607... | 0.014227 |
# LogQL Reference Loki accepts a number of operators and functions within a [LogQL query](https://grafana.com/docs/loki//query). ## Binary operators ### Arithmetic operators The following binary arithmetic operators exist in Loki: - `+` (addition) - `-` (subtraction) - `\*` (multiplication) - `/` (division) - `%` (modu... | https://github.com/grafana/loki/blob/main/docs/sources/query/query_reference.md | main | loki | [
-0.05256962776184082,
-0.014791186898946762,
-0.015279296785593033,
0.0522148460149765,
-0.09056605398654938,
-0.12158017605543137,
0.018486028537154198,
-0.020815104246139526,
0.07624812424182892,
0.03062189556658268,
-0.014160490594804287,
-0.038591135293245316,
0.05875620245933533,
0.02... | 0.103988 |
that would be dropped instead have the value 0 and vector elements that would be kept have the value 1. Filters the streams which logged at least 10 lines in the last minute: ```logql count\_over\_time({foo="bar"}[1m]) > 10 ``` Attach the value(s) `0`/`1` to streams that logged less/more than 10 lines: ```logql count\_... | https://github.com/grafana/loki/blob/main/docs/sources/query/query_reference.md | main | loki | [
-0.028211748227477074,
0.04716377705335617,
0.027988290414214134,
0.019811879843473434,
0.05868249759078026,
0.01235369686037302,
0.12241114675998688,
-0.04568087309598923,
0.11931145936250687,
-0.007183522451668978,
-0.0015149073442444205,
-0.07187120616436005,
0.03400692716240883,
0.0498... | 0.038307 |
syntax: ```logql on() ``` This example will return every machine total count within the last minutes ratio in app `foo`: ```logql sum by(machine) (count\_over\_time({app="foo"}[1m])) / on() sum(count\_over\_time({app="foo"}[1m])) ``` ### Many-to-one and one-to-many vector matches Many-to-one and one-to-many matchings o... | https://github.com/grafana/loki/blob/main/docs/sources/query/query_reference.md | main | loki | [
0.021973952651023865,
0.00014192427624948323,
-0.0198571365326643,
0.039328839629888535,
-0.006314428057521582,
-0.03180309012532234,
0.08384212106466293,
-0.04449991509318352,
0.04613953083753586,
-0.047060802578926086,
0.019570719450712204,
-0.06688406318426132,
0.08565731346607208,
0.02... | 0.056497 |
unwrap response\_latency\_seconds | \_\_error\_\_=""[1m] ) by (cluster) ``` >Metric queries cannot contain errors, in case errors are found during execution, Loki will return an error and appropriate status code. ## Functions Loki supports functions to operate on data. ### label\_replace() For each time series in `v`, ... | https://github.com/grafana/loki/blob/main/docs/sources/query/query_reference.md | main | loki | [
-0.035272784531116486,
0.023593731224536896,
0.015350819565355778,
0.05271889641880989,
0.022546440362930298,
-0.04365285113453865,
0.010966434143483639,
-0.005658789072185755,
0.058745067566633224,
-0.04041226953268051,
0.0354158841073513,
-0.08377518504858017,
-0.013714645057916641,
0.03... | 0.152228 |
# Simple LogQL simulator The LogQL simulator is an online tool that you can use to experiment with writing simple LogQL queries and seeing the results, without needing to run an instance of Loki. A set of example log lines are included for each of the primary log parsers supported by Loki: - [Logfmt](https://brandur.or... | https://github.com/grafana/loki/blob/main/docs/sources/query/analyzer.md | main | loki | [
-0.11853588372468948,
0.012421705760061741,
-0.07381878793239594,
0.0655302181839943,
-0.04290108010172844,
-0.1154700294137001,
-0.006380817387253046,
-0.028856070712208748,
0.03164157271385193,
0.011337671428918839,
-0.01472764927893877,
-0.08021832257509232,
0.01328561082482338,
0.04935... | 0.148124 |
up and running" level=info ts=2022-03-23T11:55:45.221254326Z caller=loki.go:355 msg="Loki started" | logfmt | level = "info" [//]: # (Json parser examples) {"timestamp":"2022-04-26T08:53:59.61Z","level":"INFO","class":"org.springframework.boot.SpringApplication","method":"logStartupProfileInfo","file":"SpringApplicatio... | https://github.com/grafana/loki/blob/main/docs/sources/query/analyzer.md | main | loki | [
0.0008566999458707869,
-0.03865325078368187,
-0.015378707088530064,
-0.025488942861557007,
0.06850334256887436,
-0.037170350551605225,
-0.04423748329281807,
0.016413986682891846,
-0.011384009383618832,
0.010867003351449966,
0.03473769873380661,
-0.004830930382013321,
0.015389968641102314,
... | 0.000383 |
# Query Loki When you want to look for certain logs stored in Loki, you specify a set of [labels](https://grafana.com/docs/loki//get-started/labels) that identify them. When Loki receives log entries, it groups them into log streams. When Loki stores log streams they are compressed and stored in \*chunks\* and Loki the... | https://github.com/grafana/loki/blob/main/docs/sources/query/_index.md | main | loki | [
-0.02964942157268524,
-0.00993082020431757,
-0.06566707789897919,
0.04006924852728844,
0.012187520042061806,
-0.03371264040470123,
0.026318924501538277,
-0.02204950340092182,
0.06749571114778519,
0.028482526540756226,
-0.0402183011174202,
-0.02178391069173813,
-0.005291984416544437,
0.0469... | 0.093904 |
- formatters #### Filter expressions Filter expressions are used to look for a certain string or range of values within the log line or label. For label filters, the following operators can be used: - `==` or `=` for equality. - `!=` for inequality. - `>` and `>=` for greater than and greater than or equal. - `<` and `... | https://github.com/grafana/loki/blob/main/docs/sources/query/_index.md | main | loki | [
-0.07455873489379883,
0.0696602538228035,
0.009981720708310604,
-0.00010993180330842733,
-0.006151379551738501,
-0.04898048937320709,
0.02474667876958847,
-0.013641022145748138,
0.01937146484851837,
-0.019917527213692665,
0.01938033476471901,
-0.03504724055528641,
0.02643609419465065,
0.04... | 0.086438 |
# LogCLI getting started logcli is a command-line client for Loki that lets you run [LogQL](https://grafana.com/docs/loki//query) queries against your Loki instance. The `query` command will output extra information about the query and its results, such as the API URL, set of common labels, and set of excluded labels. ... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.0393548421561718,
0.029017241671681404,
-0.11618676036596298,
0.038005296140909195,
0.000049726942961569875,
-0.07563666254281998,
0.017450444400310516,
0.006539028603583574,
0.04315372183918953,
0.02421312965452671,
-0.01372560765594244,
-0.056979283690452576,
0.031214287504553795,
-0.... | 0.118438 |
query metadata --[no-]stats Show query statistics -o, --output=default Specify output mode [default, raw, jsonl]. raw suppresses log labels and timestamp. -z, --timezone=Local Specify the timezone to use when formatting output timestamps [Local, UTC] --output-timestamp-format=rfc3339 Specify the format of timestamps in... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.06066753342747688,
0.050309088081121445,
-0.15857017040252686,
0.025239652022719383,
0.01706315390765667,
-0.0749957263469696,
0.01045060995966196,
0.07047777622938156,
-0.0022374026011675596,
0.00718652131035924,
0.0078014046885073185,
-0.09996739774942398,
-0.011278374120593071,
-0.005... | 0.100527 |
--since to modify or provide specific start and end times with --from and --to respectively. Notice that when using --from and --to then ensure to use RFC3339Nano time format, but without timezone at the end. The local timezone will be added automatically or if using --timezone flag. In default output mode the --output... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.033561281859874725,
0.03281404450535774,
-0.023329762741923332,
-0.022281605750322342,
-0.01805885322391987,
-0.0320829302072525,
-0.018191324546933174,
0.024259645491838455,
0.033421799540519714,
0.022875739261507988,
-0.017308305948972702,
-0.10259085893630981,
0.010845069773495197,
0.... | -0.002676 |
The "instant-query" command is useful for evaluating a metric query for a single point in time. This is equivalent to the Grafana Explore table view; if you want a metrics query that is used to build a Grafana graph, you should use the "query" command instead. This command does not produce useful output when querying f... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.05329084396362305,
0.004190179519355297,
-0.13307517766952515,
0.04296625033020973,
-0.11296455562114716,
-0.020698415115475655,
0.03656602278351784,
0.023765265941619873,
0.03445150703191757,
-0.010282909497618675,
0.00260478095151484,
-0.10739007592201233,
-0.03728804364800453,
0.0304... | 0.075483 |
set of excluded labels. This extra information can be suppressed with the --quiet flag. By default we look over the last hour of data; use --since to modify or provide specific start and end times with --from and --to respectively. Notice that when using --from and --to then ensure to use RFC3339Nano time format, but w... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.005602030083537102,
0.10033014416694641,
-0.03578374162316322,
-0.015670351684093475,
-0.0017949702451005578,
-0.0859612450003624,
0.023540660738945007,
-0.014348992146551609,
0.0562720000743866,
-0.03678891062736511,
0.006348851136863232,
-0.08587048947811127,
0.03960036113858223,
0.045... | 0.059512 |
the file name. While the part is being downloaded, the filename will end in ".part", when it is complete, the file will be renamed to remove this ".part" extension. By default, if a completed part file is found, that part will not be downloaded again. This can be overridden with the --overwrite-completed-parts flag. Pa... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.06567739695310593,
0.044172968715429306,
0.03907648101449013,
-0.023783616721630096,
0.08230266720056534,
-0.07393090426921844,
0.05482148379087448,
-0.022105623036623,
0.055456750094890594,
0.0026381835341453552,
0.0025775411631911993,
0.08867327123880386,
-0.01661142148077488,
-0.0381... | 0.030009 |
query when getting an error response from Loki. Can also be set using LOKI\_CLIENT\_RETRIES env var. ($LOKI\_CLIENT\_RETRIES) --min-backoff=0 Minimum backoff time between retries. Can also be set using LOKI\_CLIENT\_MIN\_BACKOFF env var. ($LOKI\_CLIENT\_MIN\_BACKOFF) --max-backoff=0 Maximum backoff time between retries... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.03000333532691002,
0.05148158222436905,
-0.033381007611751556,
0.010708646848797798,
-0.00029540385003201663,
-0.024820314720273018,
-0.015276632271707058,
0.024684537202119827,
-0.0070705837570130825,
0.038742441684007645,
-0.03303996101021767,
-0.018615517765283585,
0.05752340331673622,... | 0.041287 |
equivalent to the Grafana Explore table view; if you want a metrics query that is used to build a Grafana graph, you should use the "query" command instead. This command does not produce useful output when querying for log lines; you should always use the "query" command when you are running log queries. For more infor... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.046201419085264206,
0.0006787277525290847,
-0.09886597096920013,
0.04694375768303871,
-0.11965140700340271,
-0.05827492102980614,
-0.019881661981344223,
-0.001986484508961439,
-0.008665190078318119,
0.049742527306079865,
-0.008456950075924397,
-0.11872632056474686,
0.012099293991923332,
... | 0.049229 |
given the provided key during output. --[no-]include-common-labels Include common labels in output for each log line. --labels-length=0 Set a fixed padding to labels --store-config="" Execute the current query using a configured storage from a given Loki configuration file. --[no-]remote-schema Execute the current quer... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.053929612040519714,
0.05148043483495712,
-0.09091249108314514,
0.021962393075227737,
-0.005063424352556467,
0.024700885638594627,
0.10230322182178497,
0.02696424163877964,
0.011031195521354675,
-0.03909889981150627,
0.06205376610159874,
-0.1280011385679245,
0.08921357244253159,
0.0149646... | 0.085595 |
[] The name of the label. ``` ### `series` command reference The output of `logcli help series`: ```shell usage: logcli series [] Run series query. The "series" command will take the provided label matcher and return all the log streams found in the time window. It is possible to send an empty label matcher '{}' to ret... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.011934933252632618,
0.039039019495248795,
-0.12408038228750229,
-0.012512549757957458,
0.01607002504169941,
0.0026932950131595135,
0.03998681530356407,
0.03546878322958946,
0.029368087649345398,
-0.08681163936853409,
-0.02184572070837021,
-0.12174981832504272,
0.004714570473879576,
0.063... | 0.126499 |
for debugging high cardinality series Args: eg '{foo="bar",baz=~".\*blip"}' ``` ### `stats` command reference The output of `logcli help stats`: ```shell usage: logcli stats [] Run a stats query. The "stats" command will take the provided query and return statistics from the index on how much data is contained in the m... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.015193861909210682,
-0.018560463562607765,
-0.027143463492393494,
0.010862664319574833,
-0.004709344822913408,
-0.07407507300376892,
-0.01807357184588909,
0.012777054682374,
0.0029550641775131226,
0.022590333595871925,
-0.07665789127349854,
-0.10119800269603729,
-0.02857235260307789,
0.0... | 0.060147 |
Use ProxyFromEnvironment to use net/http ProxyFromEnvironment configuration, eg HTTP\_PROXY ($LOKI\_ENV\_PROXY) --since=1h Lookback window. --from=FROM Start looking for logs at this absolute time (inclusive) --to=TO Stop looking for logs at this absolute time (exclusive) Args: eg '{foo="bar",baz=~".\*blip"} |~ ".\*err... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.018544403836131096,
0.009979331865906715,
0.011404706165194511,
-0.014131160452961922,
-0.017081568017601967,
-0.07289311289787292,
-0.0175333172082901,
0.011767123825848103,
0.06765671074390411,
0.023177463561296463,
-0.04378693923354149,
-0.06498227268457413,
0.029471807181835175,
0.0... | 0.02586 |
using LOKI\_HTTP\_PROXY\_URL env var. ($LOKI\_HTTP\_PROXY\_URL) --[no-]compress Request that Loki compress returned data in transit. Can also be set using LOKI\_HTTP\_COMPRESSION env var. ($LOKI\_HTTP\_COMPRESSION) --[no-]envproxy Use ProxyFromEnvironment to use net/http ProxyFromEnvironment configuration, eg HTTP\_PRO... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.03438533842563629,
0.04452866315841675,
-0.020077385008335114,
0.063380666077137,
0.007500529754906893,
-0.02907288260757923,
-0.017270375043153763,
-0.005750124342739582,
0.0583263598382473,
0.01421839278191328,
-0.036670323461294174,
-0.049704622477293015,
0.05086583271622658,
0.02282... | 0.023514 |
LOKI\_CLIENT\_RETRIES env var. ($LOKI\_CLIENT\_RETRIES) --min-backoff=0 Minimum backoff time between retries. Can also be set using LOKI\_CLIENT\_MIN\_BACKOFF env var. ($LOKI\_CLIENT\_MIN\_BACKOFF) --max-backoff=0 Maximum backoff time between retries. Can also be set using LOKI\_CLIENT\_MAX\_BACKOFF env var. ($LOKI\_CL... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.03471268340945244,
0.04534846171736717,
-0.027682486921548843,
-0.009109923616051674,
-0.019780488684773445,
-0.027356380596756935,
-0.036312174052000046,
0.007772196549922228,
-0.004131772555410862,
0.024236628785729408,
-0.02930925413966179,
0.01475304365158081,
0.047240063548088074,
... | 0.033585 |
requests for representing tenant ID. Useful for requesting tenant data when bypassing an auth gateway. Can also be set using LOKI\_ORG\_ID env var. ($LOKI\_ORG\_ID) --query-tags="" adds X-Query-Tags http header to API requests. This header value will be part of `metrics.go` statistics. Useful for tracking the query. Ca... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.012654650025069714,
0.07621840387582779,
-0.08878375589847565,
0.00016791533562354743,
0.009630313143134117,
-0.02107759565114975,
0.03319913521409035,
-0.01066549401730299,
0.05426643043756485,
0.02776719070971012,
0.01352396234869957,
-0.044454678893089294,
0.004018325824290514,
0.0154... | 0.127242 |
var. ($LOKI\_ORG\_ID) --query-tags="" adds X-Query-Tags http header to API requests. This header value will be part of `metrics.go` statistics. Useful for tracking the query. Can also be set using LOKI\_QUERY\_TAGS env var. ($LOKI\_QUERY\_TAGS) --[no-]nocache adds Cache-Control: no-cache http header to API requests. Ca... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.0007707618060521781,
0.07902731746435165,
-0.07272372394800186,
0.017427802085876465,
0.01589268445968628,
-0.01836826466023922,
0.06385387480258942,
0.038010869175195694,
0.042568136006593704,
0.034963157027959824,
-0.008377071470022202,
-0.06053538620471954,
0.0481635220348835,
0.00429... | 0.145035 |
to API requests for representing tenant ID. Useful for requesting tenant data when bypassing an auth gateway. Can also be set using LOKI\_ORG\_ID env var. ($LOKI\_ORG\_ID) --query-tags="" adds X-Query-Tags http header to API requests. This header value will be part of `metrics.go` statistics. Useful for tracking the qu... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.013597765937447548,
0.07354865968227386,
-0.09129825234413147,
-0.0001602724369149655,
-0.0053111189045012,
-0.01885312795639038,
0.026339534670114517,
-0.012291109189391136,
0.0496627613902092,
0.024463091045618057,
0.009686412289738655,
-0.047529689967632294,
0.010059543885290623,
0.01... | 0.117661 |
`metrics.go` statistics. Useful for tracking the query. Can also be set using LOKI\_QUERY\_TAGS env var. ($LOKI\_QUERY\_TAGS) --[no-]nocache adds Cache-Control: no-cache http header to API requests. Can also be set using LOKI\_NO\_CACHE env var. ($LOKI\_NO\_CACHE) --bearer-token="" adds the Authorization header to API ... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
0.014341719448566437,
0.06971947848796844,
-0.08717339485883713,
0.013462681323289871,
0.0071901241317391396,
-0.03212904557585716,
0.059695374220609665,
0.022493278607726097,
0.038748182356357574,
0.03713199123740196,
-0.011602666229009628,
-0.0466594435274601,
0.02807520143687725,
0.0070... | 0.136844 |
env var. ($LOKI\_BEARER\_TOKEN\_FILE) --retries=0 How many times to retry each query when getting an error response from Loki. Can also be set using LOKI\_CLIENT\_RETRIES env var. ($LOKI\_CLIENT\_RETRIES) --min-backoff=0 Minimum backoff time between retries. Can also be set using LOKI\_CLIENT\_MIN\_BACKOFF env var. ($L... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.012389099225401878,
0.024352921172976494,
-0.03869285807013512,
0.009542757645249367,
-0.01314850989729166,
-0.019976459443569183,
-0.008033565245568752,
0.022430969402194023,
0.01672874204814434,
0.039663877338171005,
-0.015147419646382332,
-0.0007465588860213757,
0.049313388764858246,
... | 0.05835 |
control the number of log line results that are returned in each batch. When not set, `--batch` defaults to 1000. Setting a `--limit` value larger than the `--batch` value will cause the requests from logcli to Loki to be batched. When you run a query in Loki, it will return up to a certain number of log lines. By defa... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/getting-started.md | main | loki | [
-0.004432272166013718,
0.023619385436177254,
-0.08941304683685303,
0.04226992279291153,
-0.06292151659727097,
-0.09293846786022186,
-0.013156815432012081,
0.0034656061325222254,
0.012297708541154861,
0.0013416697038337588,
-0.011176083236932755,
-0.013678213581442833,
0.040316008031368256,
... | 0.086013 |
# LogCLI tutorial This [LogCLI](https://grafana.com/docs/loki//query/logcli/) tutorial will walk you through the following concepts: \* Querying logs \* Meta Queries against your Loki instance \* Queries against static log files ## Prerequisites Before you begin, you need to have the following: \* Docker \* Docker-comp... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/logcli-tutorial.md | main | loki | [
-0.04324013367295265,
-0.02143426239490509,
-0.05543205142021179,
-0.01216510497033596,
0.00006120966281741858,
-0.12737031280994415,
0.02103782631456852,
0.004204927943646908,
-0.020675595849752426,
0.049995873123407364,
0.03172711282968521,
-0.11964006721973419,
-0.033233948051929474,
0.... | 0.109897 |
Maple Ave, Dallas, Texas"}, "receiver": {"name": "Receiver41", "address": "455 Pine Rd, Dallas, Texas"}} 2024-11-26T10:39:50Z {package\_id="PKG34018", package\_size="Large", state="Illinois"} {"timestamp": "2024-11-26T10:39:50.510841Z", "state": "Illinois", "city": "Chicago", "package\_id": "PKG34018", "package\_type":... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/logcli-tutorial.md | main | loki | [
-0.01200158428400755,
0.10243218392133713,
0.06654514372348785,
-0.007021727040410042,
-0.0009893557289615273,
-0.029269276186823845,
0.0169358029961586,
-0.03128879517316818,
-0.04390011727809906,
0.05288080871105194,
-0.005683861207216978,
-0.02472004108130932,
0.0028691019397228956,
0.0... | 0.0474 |
World` in the last 24 hours to the `./inventory` directory. The logs will be split into two files, each containing 12 hours of logs. Note that we do not need to specify `--limit` as this is overridden by the `--parallel-duration` flag. ## Meta queries As site managers, it's essential to maintain good data hygiene and e... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/logcli-tutorial.md | main | loki | [
0.034439243376255035,
-0.0237575676292181,
-0.014835186302661896,
0.025457654148340225,
0.04653031378984451,
-0.10032275319099426,
-0.0017636932898312807,
0.033795036375522614,
0.007802432402968407,
0.017460109665989876,
-0.03670204058289528,
-0.013591076247394085,
-0.015505017712712288,
0... | 0.128678 |
for it directly. Package size, on the other hand, has a low cardinality, making it a good candidate for a label. ### Checking query performance Another important aspect of keeping Loki healthy is to monitor the query performance. We can use LogCLI to check the query performance of our logs. {{< admonition type="note" >... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/logcli-tutorial.md | main | loki | [
0.04147458076477051,
0.03205008804798126,
-0.03290780633687973,
0.061239004135131836,
0.03219577670097351,
-0.16401441395282745,
-0.004133469890803099,
0.048219576478004456,
0.02922964282333851,
0.047517456114292145,
-0.01595892384648323,
-0.023995844647288322,
-0.044985294342041016,
0.057... | 0.158831 |
log file: ```bash logcli query \ --timezone=UTC \ --parallel-duration="12h" \ --parallel-max-workers="4" \ --part-path-prefix="./inventory/inv" \ --since=24h \ --merge-parts \ --output=raw \ '{service\_name="Delivery World"}' > ./inventory/complete.log ``` Next lets run a query against the static log file: ```bash cat ... | https://github.com/grafana/loki/blob/main/docs/sources/query/logcli/logcli-tutorial.md | main | loki | [
-0.0009941363241523504,
0.07776713371276855,
-0.03705025091767311,
-0.028882717713713646,
-0.03410371020436287,
-0.06333792209625244,
0.03753908723592758,
0.03127015382051468,
0.020526744425296783,
-0.02436227537691593,
0.05432227998971939,
-0.048687200993299484,
-0.014928407967090607,
0.0... | 0.109484 |
# Log queries All LogQL queries contain a \*\*log stream selector\*\*.  Optionally, the log stream selector can be followed by a \*\*log pipeline\*\*. A log pipeline is a set of stage expressions that are chained together and applied to the selected log streams. Each expressi... | https://github.com/grafana/loki/blob/main/docs/sources/query/log_queries/_index.md | main | loki | [
0.014185070991516113,
0.023546569049358368,
-0.013039937242865562,
0.03575562685728073,
0.0017227038042619824,
-0.04895941540598869,
0.09404531866312027,
0.0033734599128365517,
0.052606433629989624,
-0.02071649581193924,
-0.05115688592195511,
-0.09214875102043152,
0.010163411498069763,
0.0... | 0.10581 |
- `{name =~ "(?s).\*mysql.\*}`: match log label values with newline character - `{name =~ "[\S\s]\*mysql[\S\s]\*}`: match log label values with newline character ## Log pipeline A log pipeline can be appended to a log stream selector to further process and filter log streams. It is composed of a set of expressions. Eac... | https://github.com/grafana/loki/blob/main/docs/sources/query/log_queries/_index.md | main | loki | [
-0.06565225124359131,
0.03338701277971268,
0.0003888305800501257,
0.006880088709294796,
-0.06265762448310852,
-0.008186248131096363,
0.10910549014806747,
-0.005218707490712404,
0.008809352293610573,
-0.0053970227017998695,
-0.04291254281997681,
-0.045376330614089966,
0.08361929655075073,
-... | 0.088438 |
``` {job="mysql"} | json | line\_format "{{.message}}" |= "error" ``` Line filter expressions are the fastest way to filter logs once the log stream selectors have been applied. Line filter expressions have support matching IP addresses. See [Matching IP addresses](../ip/) for details. ### Removing color codes Line fil... | https://github.com/grafana/loki/blob/main/docs/sources/query/log_queries/_index.md | main | loki | [
-0.038845259696245193,
0.07129383832216263,
0.01945369318127632,
0.016943415626883507,
0.034064117819070816,
-0.0487101785838604,
0.09599456191062927,
-0.06428885459899902,
0.03141070157289505,
-0.012207713909447193,
-0.046116963028907776,
-0.05419522896409035,
0.10853291302919388,
0.04690... | 0.149738 |
``` To evaluate the logical `and` first, use parenthesis, as in this example: ```logql | duration >= 20ms or (method="GET" and size <= 20KB) ``` > Label filter expressions are the only expression allowed after the unwrap expression. This is mainly to allow filtering errors from the metric extraction. Label filter expre... | https://github.com/grafana/loki/blob/main/docs/sources/query/log_queries/_index.md | main | loki | [
-0.07709982246160507,
0.08197187632322311,
-0.008741340599954128,
-0.0017513175262138247,
-0.007921251468360424,
-0.06013237684965134,
0.025131097063422203,
0.015005072578787804,
0.02810908667743206,
-0.042441315948963165,
0.014412428252398968,
-0.08387680351734161,
-0.0038087088614702225,
... | 0.154018 |
"response": { "status": 401, "size": "228", "latency\_seconds": "6.031" } } ``` The following list of labels: ```kv "first\_server" => "129.0.1.1" "ua" => "curl/7.68.0" ``` If an array or an object returned by an expression, it will be assigned to the label in json format. For example, `| json server\_list="servers", h... | https://github.com/grafana/loki/blob/main/docs/sources/query/log_queries/_index.md | main | loki | [
-0.05296947434544563,
0.17104274034500122,
-0.0479656383395195,
0.017449568957090378,
0.004004334565252066,
-0.022178223356604576,
0.054886456578969955,
0.0038344059139490128,
0.034721627831459045,
-0.0010692437645047903,
0.010059825144708157,
-0.05763503536581993,
0.0026320305187255144,
0... | 0.110822 |
is a field name delimited by the `<` and `>` characters. `` defines the field name `example`. An unnamed capture appears as `<\_>`. The unnamed capture skips matched content. Captures are matched from the line beginning or the previous set of literals, to the line end or the next set of literals. If a capture is not ma... | https://github.com/grafana/loki/blob/main/docs/sources/query/log_queries/_index.md | main | loki | [
-0.09015984833240509,
0.020845428109169006,
0.05933373048901558,
-0.012189379893243313,
0.015837036073207855,
-0.059675466269254684,
0.023502930998802185,
0.0436045378446579,
0.08549336344003677,
0.04101194068789482,
0.0362262986600399,
-0.036977630108594894,
0.030136659741401672,
-0.01326... | 0.10326 |
format. ### Labels format expression The `| label\_format` expression can rename, modify or add labels. It takes as parameter a comma separated list of equality operations, enabling multiple operations at once. When both side are label identifiers, for example `dst=src`, the operation will rename the `src` label into `... | https://github.com/grafana/loki/blob/main/docs/sources/query/log_queries/_index.md | main | loki | [
-0.08269403874874115,
0.10063806176185608,
-0.043808482587337494,
0.04629582166671753,
-0.03105830028653145,
0.06050212308764458,
0.06114666163921356,
0.0898156389594078,
0.05099133029580116,
-0.0614202655851841,
0.004728768020868301,
0.004457575269043446,
-0.02948889136314392,
0.012876776... | 0.121785 |
be ``` {app="some-api-service", level="info"} {"app": "some-api-service", "level": "info", "method": "GET", "path": "/", "host": "grafana.net", "status": "200"} {level="info"} {"app": "other-service", "level": "info", "method": "GET", "path": "/", "host": "grafana.net", "status": "200"} ``` | https://github.com/grafana/loki/blob/main/docs/sources/query/log_queries/_index.md | main | loki | [
-0.07354313135147095,
0.08031382411718369,
-0.024783452972769737,
0.00026078676455654204,
-0.05711572617292404,
-0.049955327063798904,
0.015443241223692894,
0.008325992152094841,
-0.021293725818395615,
0.021852616220712662,
-0.0191302802413702,
-0.0594727098941803,
0.0022352542728185654,
0... | 0.046201 |
# Query Loki with Python This page provides Python examples for the most common Loki HTTP API operations: querying logs, pushing log entries, and listing labels. For the full API reference including all parameters and response formats, see the [Loki HTTP API](../loki-http-api/) documentation. ## Prerequisites Install t... | https://github.com/grafana/loki/blob/main/docs/sources/reference/python-client-examples.md | main | loki | [
-0.03609504923224449,
-0.01730331778526306,
-0.07722029089927673,
0.006374390330165625,
-0.05709809064865112,
-0.10531535744667053,
-0.050110071897506714,
0.012005379423499107,
-0.00614624097943306,
0.019091200083494186,
-0.000545690709259361,
-0.03465604409575462,
0.03832712024450302,
0.0... | 0.112944 |
1e9)), "limit": limit, "direction": "backward", }, headers=headers, auth=auth, verify=verify, ) resp.raise\_for\_status() return resp.json()["data"]["result"] results = query\_range( url="http://localhost:3100", query='{job="varlogs"} |= "error"', start=datetime.now() - timedelta(hours=1), end=datetime.now(), ) for str... | https://github.com/grafana/loki/blob/main/docs/sources/reference/python-client-examples.md | main | loki | [
-0.057840168476104736,
0.11101246625185013,
-0.04623723775148392,
0.033944979310035706,
-0.008568801917135715,
-0.06437625735998154,
-0.00474791694432497,
0.07935941964387894,
-0.027131929993629456,
-0.017526546493172646,
-0.02635963447391987,
-0.04209768772125244,
-0.012363258749246597,
0... | 0.091797 |
the response body for details: ```python import time import requests def query\_with\_retry( url: str, query: str, max\_retries: int = 3, backoff: float = 1.0, headers: dict[str, str] | None = None, auth: tuple[str, str] | None = None, verify: bool | str = True, # False to skip TLS, or path to CA bundle ) -> dict: """Q... | https://github.com/grafana/loki/blob/main/docs/sources/reference/python-client-examples.md | main | loki | [
-0.07407262921333313,
0.05137743428349495,
-0.008359597064554691,
0.047498829662799835,
-0.05624031648039818,
-0.1262906938791275,
-0.02791840210556984,
-0.021107153967022896,
0.020442664623260498,
0.02009415440261364,
0.014476723037660122,
-0.038825321942567825,
0.02712859958410263,
-0.01... | 0.052348 |
# Loki HTTP API Loki exposes an HTTP API for pushing, querying, and tailing log data, as well as for viewing and managing cluster information. {{< admonition type="note" >}} Note that authorization is not part of the Loki API. Authorization needs to be done separately, for example, using an open-source load-balancer su... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.003778536571189761,
-0.016887711361050606,
-0.05642271414399147,
0.05403810366988182,
0.009768822230398655,
-0.08423229306936264,
0.0018426632741466165,
0.0373096838593483,
0.014042152091860771,
0.024619830772280693,
0.017750347033143044,
-0.033047884702682495,
-0.009337668307125568,
0.... | 0.222 |
`vector`, an Instant Vector represents the latest value of a calculation for a given labelset. Instant Vectors are only returned when doing a query against a single point in time. - \*\*Stream\*\*: a Stream is a set of all values (logs) for a given label set over the queried time range. Streams are the only type that w... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.08925575017929077,
0.050948772579431534,
-0.06305348128080368,
-0.027323240414261818,
0.00855276733636856,
-0.039276123046875,
0.01091587170958519,
0.0734022930264473,
0.08627811074256897,
-0.04793327674269676,
0.0174019206315279,
-0.035181332379579544,
-0.09386854618787766,
0.060894448... | 0.075512 |
optionally attach [structured metadata](../../get-started/labels/structured-metadata/) to each log line by adding a JSON object to the end of the log line array. The JSON object must be a valid JSON object with string keys and string values. The JSON object should not contain any nested object. The JSON object must be ... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.021786246448755264,
0.0024172915145754814,
-0.05638675019145012,
0.008616825565695763,
-0.03854304924607277,
-0.08423854410648346,
-0.017696350812911987,
0.016376087442040443,
0.03227376937866211,
0.017068777233362198,
0.07933086156845093,
-0.040686748921871185,
-0.029273593798279762,
0... | 0.131614 |
TIME ZONE | | labels | MAP(VARCHAR, VARCHAR) | | value | DOUBLE | See [statistics](#statistics) for information about the statistics returned by Loki. ### Examples This example cURL command ```bash curl -G -s "http://localhost:3100/loki/api/v1/query" \ --data-urlencode 'query=sum(rate({job="varlogs"}[10m])) by (level)'... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
0.014283421449363232,
0.05164891481399536,
-0.04545887932181358,
0.05521903932094574,
-0.05105898901820183,
-0.021869389340281487,
-0.016215229406952858,
0.02380423992872238,
0.03929145634174347,
-0.007334223948419094,
-0.012888544239103794,
-0.0960637554526329,
0.0011633092071861029,
-0.0... | 0.086327 |
based on `start` and `end`. Only applies to query types which produce a matrix response. - `interval`: Only return entries at (or greater than) the specified interval, can be a `duration` format or float number of seconds. Only applies to queries which produce a stream response. Not to be confused with `step`, see the ... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.047407977283000946,
0.015337206423282623,
-0.05406804755330086,
0.00895021203905344,
-0.0663013681769371,
-0.04920133575797081,
-0.0821683257818222,
0.02682475745677948,
0.06227860227227211,
0.016179058700799942,
0.008074145764112473,
0.00690077617764473,
0.01996111124753952,
0.01608317... | 0.13782 |
} } } ``` ## Query labels ```bash GET /loki/api/v1/labels ``` `/loki/api/v1/labels` retrieves the list of known labels within a given time span. Loki may use a larger time span than the one specified. It accepts the following query parameters in the URL: - `start`: The start time for the query as a nanosecond Unix epoc... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.020030194893479347,
0.032653599977493286,
-0.08265639841556549,
0.009202033281326294,
-0.009339812211692333,
0.012550540268421173,
0.010581695474684238,
0.0587579607963562,
0.06776213645935059,
-0.04446091875433922,
0.010771961882710457,
-0.03581949323415756,
-0.017931470647454262,
0.03... | 0.13626 |
"job": "default/loki", "controller\_revision\_hash": "loki-stack-757479754d", "statefulset\_kubernetes\_io\_pod\_name": "loki-stack-0", "release": "loki-stack", "namespace": "default", "instance": "loki-stack-0" }, { "chart": "prometheus-9.3.3", "container\_name": "prometheus-server-configmap-reload", "filename": "/var... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
0.013611750677227974,
-0.01819419488310814,
0.020195625722408295,
-0.012421810999512672,
0.030725998803973198,
-0.07062245160341263,
-0.006100436672568321,
-0.030887557193636894,
0.0630866140127182,
0.027311410754919052,
0.027401680126786232,
-0.060441453009843826,
-0.04404102638363838,
-0... | 0.199616 |
team alpha, and you don't care which env those are in (other than caring that they're not dev jobs). To achieve this, you could specify `targetLabels=team,job`, resulting in a single metric series (in this case) of `{team="alpha", job="foo}`. The other way to change aggregations is with the `aggregateBy` parameter. The... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.018972577527165413,
0.014100804924964905,
-0.09325792640447617,
0.05412977933883667,
-0.04139932617545128,
0.009727167896926403,
0.07356639951467514,
-0.027300016954541206,
0.08188051730394363,
-0.03866095095872879,
-0.0545743964612484,
-0.06993085891008377,
0.0192934088408947,
0.058978... | 0.095509 |
parameter is optional. ### Examples This example cURL command ```bash curl -s "http://localhost:3100/loki/api/v1/patterns" \ --data-urlencode 'query={app="loki"}' | jq ``` gave this response: ```json { "status": "success", "data": [ { "pattern": "<\_> caller=grpc\_logging.go:66 <\_> level=error method=/cortex.Ingester/... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.025868311524391174,
0.027137432247400284,
-0.07499879598617554,
-0.01674790307879448,
-0.06507305800914764,
-0.0812685564160347,
-0.001672625308856368,
0.03781932219862938,
0.040587931871414185,
-0.00987328216433525,
0.022723453119397163,
-0.08658014237880707,
-0.04219331219792366,
0.03... | 0.122726 |
(for example, `1h`, `5m`). This parameter is optional and is used when `start` is omitted to compute `start = end - since`. If both `start` and `since` are omitted, `since` defaults to `1h`. - `step=`: Step between sample windows. This parameter is optional. - `line\_limit=`: Maximum number of log lines to scan per sha... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.014214648865163326,
0.05703650414943695,
-0.0799051970243454,
-0.02042478322982788,
-0.08308969438076019,
-0.051706064492464066,
-0.03354378417134285,
0.03899269178509712,
0.03897938132286072,
0.018207555636763573,
-0.02844160795211792,
-0.00884181447327137,
0.06348294019699097,
-0.0126... | 0.043143 |
Show current configuration ```bash GET /config ``` `/config` exposes the current configuration. The optional `mode` query parameter can be used to modify the output. If it has the value `diffs` only the differences between the default configuration and the current are returned. A value of `defaults` returns the default... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.011848275549709797,
-0.0005662047187797725,
-0.020698510110378265,
-0.01854502037167549,
0.012848620302975178,
-0.013414344750344753,
0.03138729929924011,
0.004054513294249773,
-0.018379246816039085,
0.057394713163375854,
0.02075405791401863,
0.05467812716960907,
0.04066309705376625,
-0... | 0.080724 |
ingester. ## Distributor ring status ```bash GET /distributor/ring ``` Displays a web page with the distributor hash ring status, including the state, health, and last heartbeat time of each distributor. ## Index gateway ring status ```bash GET /indexgateway/ring ``` Displays a web page with the index gateway hash ring... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.07759091258049011,
0.05115552991628647,
-0.12012692540884018,
0.0022710140328854322,
-0.043590690940618515,
-0.07860592007637024,
0.018684329465031624,
-0.017364665865898132,
0.058143921196460724,
-0.010527313686907291,
0.012591833248734474,
-0.02237941138446331,
0.013890520669519901,
-... | 0.190482 |
details. Log entry deletion is supported \_only\_ when TSDB is configured for the index store. Query parameters: - `query=`: query argument that identifies the streams from which to delete with optional line filters. - `start=`: A timestamp that identifies the start of the time window within which entries will be delet... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.04935762658715248,
-0.012716474942862988,
0.009470226243138313,
0.04846513643860817,
0.003986657597124577,
-0.02029336243867874,
0.0741908848285675,
-0.04972774535417557,
0.07783441990613937,
0.0352812223136425,
-0.05558799207210541,
0.0180087648332119,
0.02540629729628563,
0.0134994508... | 0.102115 |
cancel a delete request that has been picked up for processing or is partially complete, pass the `force=true` query parameter to the API. Log entry deletion is supported \_only\_ when TSDB is configured for the index store. Cancel a delete request using this compactor endpoint: ```bash DELETE /loki/api/v1/delete ``` Q... | https://github.com/grafana/loki/blob/main/docs/sources/reference/loki-http-api.md | main | loki | [
-0.09688151627779007,
0.03686286509037018,
-0.007358168717473745,
0.05285767838358879,
-0.010282312519848347,
-0.06245556101202965,
0.02849600464105606,
-0.09178628027439117,
0.09553909301757812,
0.08278872072696686,
-0.018738891929388046,
0.01935310661792755,
0.025768807157874107,
-0.0017... | 0.1464 |
# Consistent hash rings [Consistent hash rings](https://en.wikipedia.org/wiki/Consistent\_hashing) are incorporated into Loki cluster architectures to - aid in the sharding of log lines - implement high availability - ease the horizontal scale up and scale down of clusters. There is less of a performance hit for operat... | https://github.com/grafana/loki/blob/main/docs/sources/get-started/hash-rings.md | main | loki | [
0.002756163477897644,
-0.046876464039087296,
-0.053955838084220886,
-0.011069085448980331,
-0.03427751734852791,
-0.08727794885635376,
0.0009836042299866676,
0.010341493412852287,
0.08217967301607132,
-0.057381704449653625,
-0.0033197379671037197,
0.06312891095876694,
0.059768371284008026,
... | 0.154667 |
by rulers or queriers. | https://github.com/grafana/loki/blob/main/docs/sources/get-started/hash-rings.md | main | loki | [
0.07497894763946533,
0.08444181829690933,
-0.033859312534332275,
0.03423988074064255,
-0.11671856790781021,
-0.0503673292696476,
0.016198137775063515,
-0.039594992995262146,
-0.02055439166724682,
0.057973772287368774,
0.054716773331165314,
-0.06941311061382294,
0.04783886298537254,
-0.0516... | 0.088692 |
# Loki architecture Grafana Loki has a microservices-based architecture and is designed to run as a horizontally scalable, distributed system. The system has multiple components that can run separately and in parallel. The Grafana Loki design compiles the code for all components into a single binary or Docker image. Th... | https://github.com/grafana/loki/blob/main/docs/sources/get-started/architecture.md | main | loki | [
-0.03365149348974228,
-0.05885259807109833,
-0.06522117555141449,
0.0028130202554166317,
-0.04142479598522186,
-0.07031667977571487,
-0.08910422772169113,
0.0019015194848179817,
-0.030022017657756805,
0.059620700776576996,
-0.005193152464926243,
-0.03129453584551811,
0.012647937051951885,
... | 0.113769 |
| ---------------------------------------------------------------------------- | #blocks len (uvarint) | #blocks offset (uvarint) | ---------------------------------------------------------------------------- ``` `mint` and `maxt` describe the minimum and maximum Unix nanosecond timestamp, respectively. The `structured... | https://github.com/grafana/loki/blob/main/docs/sources/get-started/architecture.md | main | loki | [
-0.025193482637405396,
0.10208464413881302,
-0.1102987676858902,
-0.055661726742982864,
-0.03184610605239868,
0.020816877484321594,
0.0011092901695519686,
0.13389889895915985,
0.0029108026064932346,
-0.04535806179046631,
0.08945102244615555,
-0.08342359215021133,
0.031235873699188232,
-0.0... | 0.106207 |
queriers. 1. The query frontend merges the individual results into a final result and return it to the client. Refer to [Components](../components/) for a more detailed description of the components involved in the read path. ## Multi-tenancy All data, both in memory and in long-term storage, may be partitioned by a te... | https://github.com/grafana/loki/blob/main/docs/sources/get-started/architecture.md | main | loki | [
0.008972152136266232,
-0.003758753649890423,
-0.10171904414892197,
0.0661272406578064,
-0.058459386229515076,
-0.07305579632520676,
-0.011299639008939266,
-0.011652260087430477,
0.062123704701662064,
-0.018738308921456337,
0.044463444501161575,
0.0587737075984478,
0.03971526026725769,
-0.0... | 0.071273 |
# Loki overview Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by [Prometheus](https://prometheus.io/). Loki differs from Prometheus by focusing on logs instead of metrics, and collecting logs via push, instead of pull. Loki is designed to be very cost effective and high... | https://github.com/grafana/loki/blob/main/docs/sources/get-started/overview.md | main | loki | [
-0.02066306583583355,
-0.005161988083273172,
-0.011221546679735184,
0.038251809775829315,
0.09812206029891968,
-0.07998273521661758,
0.001708157011307776,
0.04530670866370201,
0.08113031089305878,
0.03637106344103813,
-0.02014576829969883,
-0.004205677192658186,
0.015616306103765965,
0.084... | 0.214381 |
find LogQL familiar and flexible for generating queries against the logs. The language also facilitates the generation of metrics from log data, a powerful feature that goes well beyond log aggregation. - \*\*Alerting\*\* - Loki includes a component called the [ruler](../../alert/), which can continually evaluate queri... | https://github.com/grafana/loki/blob/main/docs/sources/get-started/overview.md | main | loki | [
-0.05640396103262901,
-0.009954186156392097,
-0.05671674385666847,
0.0589594729244709,
-0.01068483293056488,
-0.11588707566261292,
0.03864002600312233,
-0.005885281600058079,
0.06743793189525604,
0.02961023338139057,
-0.03376217558979988,
-0.09715481847524643,
0.022948337718844414,
0.04322... | 0.237326 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.