---
title: "Select the Logs query type | Grafana Labs"
description: "Learn how to switch to the Logs query type for analyzing log data in Elasticsearch."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Select the Logs query type

The Elasticsearch query editor in Grafana offers three query types: Metrics, Logs, and Raw data. For exploring and analyzing log entries, the Logs query type provides an optimized view that displays individual log messages with timestamps and log levels.

In this milestone, you’ll switch to the Logs query type to begin exploring your Elasticsearch log data.

You’ll select **Logs** in the query editor so Grafana shows log-specific options.

> **Note:** The default query type is **Metrics**, but this can be changed in your data source settings under **Elasticsearch details** &gt; **Default query mode**.

1. Open **Explore** if you aren’t already there.
2. In the **Query type** selector, click **Logs**.
3. Confirm the query editor shows log-specific options, including a **Limit** field.

The query type shows Logs and the interface displays a Limit option for controlling the number of returned log entries.

In the next milestone, you’ll write a Lucene query to search for specific log entries.

* * *

### More to explore (optional)

At this point in your journey, you can explore the following paths:

- [Elasticsearch query editor](/docs/grafana/latest/datasources/elasticsearch/query-editor/)
