Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ismarslomic/grafana-loki-evaluation
Example for evaluating use of Grafana Loki for log aggregation
https://github.com/ismarslomic/grafana-loki-evaluation
Last synced: about 2 months ago
JSON representation
Example for evaluating use of Grafana Loki for log aggregation
- Host: GitHub
- URL: https://github.com/ismarslomic/grafana-loki-evaluation
- Owner: ismarslomic
- Created: 2023-03-10T13:24:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-11T18:51:42.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T12:52:33.816Z (3 months ago)
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Evaluation of Grafana Loki for log aggregation
> Example for evaluating use of Grafana Loki for log aggregation, see [docker-compose.yaml](docker-compose.yaml) for
> which containers are used. Based
> on [Getting started with Grafana Loki](https://grafana.com/docs/loki/latest/getting-started/)## Start the containers
```bash
docker compose up -d
```Open Grafana and head to the Explore tab http://localhost:3000/explore.
## Query examples
To see all the log lines that flog has generated:
```text
{container="flog"}
```The flog app will generate log lines for invented HTTP requests. To see all GET log lines, enter the query:
```text
{container="flog"} |= "GET"
```For POST methods:
```text
{container="flog"} |= "POST"
```To see every log line with a 401 status (unauthorized error):
```text
{container="flog"} | json | status="401"
```To see every log line other than those that contain the value 401:
```text
{container="flog"} != "401"
```