> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drdroid.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Grafana Loki Logs

> Loki is an Open Source Timeseries Database supported by Grafana.

### Integration

To get started with the integration, we currently support Loki integration with the following parameters:

(a) Protocol (http / https)

(b) Host + Port

(c) X-Scope-OrgId

(d) TLS Certificate Validation

<img src="https://mintcdn.com/drdroid-88/7v3BmpsGXj6G8uPu/images/docs/a1cacd4-Screenshot_2024-07-23_at_5.00.15_PM.png?fit=max&auto=format&n=7v3BmpsGXj6G8uPu&q=85&s=fd588aea68647a16cdc006bb77e939ab" alt="" width="2468" height="706" data-path="images/docs/a1cacd4-Screenshot_2024-07-23_at_5.00.15_PM.png" />

### Adding to Playbook

When you want to add data from Loki into a Playbook, select "Query Logs from Grafana Loki" in the Playbook.

<img src="https://mintcdn.com/drdroid-88/7v3BmpsGXj6G8uPu/images/docs/c6302f5-Screenshot_2024-07-23_at_5.01.07_PM.png?fit=max&auto=format&n=7v3BmpsGXj6G8uPu&q=85&s=c01e58d9d5b97a89c613ad3767707df9" alt="" width="590" height="910" data-path="images/docs/c6302f5-Screenshot_2024-07-23_at_5.01.07_PM.png" />

### Querying

Write query, enter the result count and timestamp in epoch seconds (it will be pre-filled from the time range selected on top right)

<img src="https://mintcdn.com/drdroid-88/7v3BmpsGXj6G8uPu/images/docs/c014701-Screenshot_2024-07-23_at_5.31.55_PM.png?fit=max&auto=format&n=7v3BmpsGXj6G8uPu&q=85&s=c1f65e4af21e814bd690c4755eea794d" alt="" width="1130" height="1230" data-path="images/docs/c014701-Screenshot_2024-07-23_at_5.31.55_PM.png" />

### Output

<img src="https://mintcdn.com/drdroid-88/1SAc3s_qYs-82p4P/images/docs/f0d4892-Screenshot_2024-07-23_at_5.32.07_PM.png?fit=max&auto=format&n=1SAc3s_qYs-82p4P&q=85&s=ecda9db47c5190634e8178bfa953f540" alt="" width="1124" height="1094" data-path="images/docs/f0d4892-Screenshot_2024-07-23_at_5.32.07_PM.png" />
