![]() Then, install Loki, as explained below, and connect it to Grafana as a data source. ![]() Loki's design builds on its companion tool, Promtail, which scans the server and collects any available logs to ship off to Loki for storage.Īs a prerequisite for this Loki tutorial, install Grafana. This Grafana Loki tutorial features the LogCLI command-line interface and explores LogQL, the query language used with Loki. ![]() Loki works either within the Grafana GUI or with a command-line interface (CLI). When users run a query in Loki, it starts off with this smaller subset, rather than the whole database, and then uses regular expressions and allows for aggregations to process the rest. This approach contrasts with ElasticSearch, which indexes every available field. Loki indexes only the date, system name and a label for logs.
0 Comments
Leave a Reply. |