<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Explore on Grafana Labs</title><link>https://grafana.com/docs/grafana/v10.0/explore/</link><description>Recent content in Explore on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/grafana/v10.0/explore/index.xml" rel="self" type="application/rss+xml"/><item><title>Query management</title><link>https://grafana.com/docs/grafana/v10.0/explore/query-management/</link><pubDate>Fri, 06 Mar 2026 06:34:21 +0000</pubDate><guid>https://grafana.com/docs/grafana/v10.0/explore/query-management/</guid><content><![CDATA[&lt;h1 id=&#34;query-management-in-explore&#34;&gt;Query management in Explore&lt;/h1&gt;
&lt;p&gt;To help with debugging queries, Explore allows you to investigate query requests and responses, as well as query statistics, via the Query inspector.
This functionality is similar to the panel inspector tasks &lt;a href=&#34;../../panels-visualizations/panel-inspector/#inspect-query-performance&#34;&gt;Inspect query performance&lt;/a&gt; and
&lt;a href=&#34;../../panels-visualizations/panel-inspector/#inspect-query-request-and-response-data&#34;&gt;Inspect query request and response data&lt;/a&gt;.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 550px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/v71/query_inspector_explore.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/v71/query_inspector_explore.png&#34;data-srcset=&#34;/static/img/docs/v71/query_inspector_explore.png?w=320 320w, /static/img/docs/v71/query_inspector_explore.png?w=550 550w, /static/img/docs/v71/query_inspector_explore.png?w=750 750w, /static/img/docs/v71/query_inspector_explore.png?w=900 900w, /static/img/docs/v71/query_inspector_explore.png?w=1040 1040w, /static/img/docs/v71/query_inspector_explore.png?w=1240 1240w, /static/img/docs/v71/query_inspector_explore.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Screenshot of the query inspector button in Explore&#34;width=&#34;791&#34;height=&#34;120&#34;title=&#34;Screenshot of the query inspector button in Explore&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v71/query_inspector_explore.png&#34;
            alt=&#34;Screenshot of the query inspector button in Explore&#34;width=&#34;791&#34;height=&#34;120&#34;title=&#34;Screenshot of the query inspector button in Explore&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Screenshot of the query inspector button in Explore&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h2 id=&#34;query-history&#34;&gt;Query history&lt;/h2&gt;
&lt;p&gt;Query history is a list of queries that you used in Explore. The history is stored in the Grafana database and it is not shared with other users. The retention period for queries in history is two weeks. Queries older than two weeks are automatically deleted. To open and interact with your history, click the &lt;strong&gt;Query history&lt;/strong&gt; button in Explore.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Starred queries are not subject to the two weeks retention period and they are not deleted.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h3 id=&#34;view-query-history&#34;&gt;View query history&lt;/h3&gt;
&lt;p&gt;Query history lets you view the history of your querying. For each individual query, you can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run a query.&lt;/li&gt;
&lt;li&gt;Create and/or edit a comment.&lt;/li&gt;
&lt;li&gt;Copy a query to the clipboard.&lt;/li&gt;
&lt;li&gt;Copy a shortened link with the query to the clipboard.&lt;/li&gt;
&lt;li&gt;Star a query.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;manage-favorite-queries&#34;&gt;Manage favorite queries&lt;/h3&gt;
&lt;p&gt;All queries that have been starred in the Query history tab are displayed in the Starred tab. This allows you to access your favorite queries faster and to reuse these queries without typing them from scratch.&lt;/p&gt;
&lt;h3 id=&#34;sort-query-history&#34;&gt;Sort query history&lt;/h3&gt;
&lt;p&gt;By default, query history shows you the most recent queries. You can sort your history by date or by data source name in ascending or descending order.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click the &lt;strong&gt;Sort queries by&lt;/strong&gt; field.&lt;/li&gt;
&lt;li&gt;Select one of the following options:
&lt;ul&gt;
&lt;li&gt;Newest first&lt;/li&gt;
&lt;li&gt;Oldest first&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;filter-query-history&#34;&gt;Filter query history&lt;/h3&gt;
&lt;p&gt;Filter query history in Query history and Starred tab by data source name:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click the &lt;strong&gt;Filter queries for specific data source(s)&lt;/strong&gt; field.&lt;/li&gt;
&lt;li&gt;Select the data source for which you would like to filter your history. You can select multiple data sources.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In &lt;strong&gt;Query history&lt;/strong&gt; tab it is also possible to filter queries by date using the slider:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use vertical slider to filter queries by date.&lt;/li&gt;
&lt;li&gt;By dragging bottom handle, adjust start date.&lt;/li&gt;
&lt;li&gt;By dragging top handle, adjust end date.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;search-in-query-history&#34;&gt;Search in query history&lt;/h3&gt;
&lt;p&gt;You can search in your history across queries and your comments. Search is possible for queries in the Query history tab and Starred tab.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click the &lt;strong&gt;Search queries&lt;/strong&gt; field.&lt;/li&gt;
&lt;li&gt;Type the term you are searching for into search field.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;query-history-settings&#34;&gt;Query history settings&lt;/h3&gt;
&lt;p&gt;You can customize the query history in the Settings tab. Options are described in the table below.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Setting&lt;/th&gt;
              &lt;th&gt;Default value&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;Change the default active tab&lt;/td&gt;
              &lt;td&gt;Query history tab&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Query history settings are global, and applied to both panels in split mode.&lt;/p&gt;&lt;/blockquote&gt;
]]></content><description>&lt;h1 id="query-management-in-explore">Query management in Explore&lt;/h1>
&lt;p>To help with debugging queries, Explore allows you to investigate query requests and responses, as well as query statistics, via the Query inspector.
This functionality is similar to the panel inspector tasks &lt;a href="../../panels-visualizations/panel-inspector/#inspect-query-performance">Inspect query performance&lt;/a> and
&lt;a href="../../panels-visualizations/panel-inspector/#inspect-query-request-and-response-data">Inspect query request and response data&lt;/a>.&lt;/p></description></item><item><title>Logs in Explore</title><link>https://grafana.com/docs/grafana/v10.0/explore/logs-integration/</link><pubDate>Fri, 06 Mar 2026 06:34:21 +0000</pubDate><guid>https://grafana.com/docs/grafana/v10.0/explore/logs-integration/</guid><content><![CDATA[&lt;h1 id=&#34;logs-in-explore&#34;&gt;Logs in Explore&lt;/h1&gt;
&lt;p&gt;Along with metrics, Explore allows you to investigate your logs across several data sources including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/elasticsearch/&#34;&gt;Elasticsearch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/influxdb/&#34;&gt;InfluxDB&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/loki/&#34;&gt;Loki&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;During monitoring, troubleshooting, and incident response, you can dig deeper into the metrics and logs to find the cause of the issue. Explore also allows you to correlate metrics and logs by viewing them side-by-side.&lt;/p&gt;
&lt;h2 id=&#34;logs-visualization&#34;&gt;Logs visualization&lt;/h2&gt;
&lt;p&gt;Results of log queries are shown as histograms in the graph and individual logs are explained in the following sections.&lt;/p&gt;
&lt;p&gt;If the data source supports a full range log volume histogram, the graph with log distribution for all entered log queries is shown automatically. This feature is currently supported by Elasticsearch and Loki data sources.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; In Loki, this full range log volume histogram is rendered by metric query which can be expensive depending on time range queried. This query may be particularly challenging for smaller Loki installations to process. To mitigate this, we recommend using a proxy like &lt;a href=&#34;https://www.nginx.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;nginx&lt;/a&gt; in front of Loki to set a custom timeout (for example, 10 seconds) for these queries. Log volume histogram queries can be identified by looking for queries with the HTTP header &lt;code&gt;X-Query-Tags&lt;/code&gt; with value &lt;code&gt;Source=logvolhist&lt;/code&gt;; these headers are added by Grafana to all log volume histogram queries.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If the data source does not support loading full range log volume histogram, the logs model computes a time series based on the log row counts bucketed by an automatically calculated time interval, and the first log row&amp;rsquo;s timestamp then anchors the start of the histogram from the result. The end of the time series is anchored to the time picker&amp;rsquo;s &lt;strong&gt;To&lt;/strong&gt; range.&lt;/p&gt;
&lt;h3 id=&#34;log-level&#34;&gt;Log level&lt;/h3&gt;
&lt;p&gt;For logs where a level label is specified, we use the value of the label to determine the log level and update color accordingly. If the log doesn&amp;rsquo;t have a level label specified, we try to find out if its content matches any of the supported expressions (see below for more information). The log level is always determined by the first match. In case Grafana is not able to determine a log level, it will be visualized with an unknown log level.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; If you use Loki data source and the &amp;ldquo;level&amp;rdquo; is in your log-line, use parsers (JSON, logfmt, regex,..) to extract the level information into a level label that is used to determine log level. This will allow the histogram to show the various log levels in separate bars.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Supported log levels and mapping of log level abbreviation and expressions:&lt;/strong&gt;&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Supported expressions&lt;/th&gt;
              &lt;th style=&#34;text-align: center&#34;&gt;Log level&lt;/th&gt;
              &lt;th style=&#34;text-align: right&#34;&gt;Color&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;emerg&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;critical&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;purple&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;fatal&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;critical&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;purple&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;alert&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;critical&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;purple&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;crit&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;critical&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;purple&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;critical&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;critical&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;purple&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;err&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;error&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;red&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;eror&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;error&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;red&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;error&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;error&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;red&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;warn&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;warning&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;yellow&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;warning&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;warning&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;yellow&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;info&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;info&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;green&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;information&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;info&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;green&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;informational&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;info&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;green&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;notice&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;info&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;green&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;dbug&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;debug&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;blue&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;debug&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;debug&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;blue&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;trace&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;trace&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;light blue&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;*&lt;/td&gt;
              &lt;td style=&#34;text-align: center&#34;&gt;unknown&lt;/td&gt;
              &lt;td style=&#34;text-align: right&#34;&gt;grey&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;h2 id=&#34;logs-navigation&#34;&gt;Logs navigation&lt;/h2&gt;
&lt;p&gt;Logs navigation, at the right side of the log lines, can be used to request more logs. You can do this by clicking the &lt;strong&gt;Older logs&lt;/strong&gt; button at the bottom of the navigation. This is especially useful when you hit the line limit and you want to see more logs. Each request that&amp;rsquo;s run from the navigation is then displayed in the navigation as separate page. Every page shows &lt;code&gt;from&lt;/code&gt; and &lt;code&gt;to&lt;/code&gt; timestamps of the incoming log lines. You can see previous results by clicking on the page. Explore caches the last five requests run from the logs navigation, so you&amp;rsquo;re not re-running the same queries when clicking on the pages.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/explore/navigate-logs-8-0.png&#34;
  alt=&#34;Navigate logs in Explore&#34; width=&#34;1145&#34;
     height=&#34;620&#34;/&gt;&lt;/p&gt;
&lt;h2 id=&#34;visualization-options&#34;&gt;Visualization options&lt;/h2&gt;
&lt;p&gt;You can customize how logs are displayed and select which columns are shown.&lt;/p&gt;
&lt;h3 id=&#34;time&#34;&gt;Time&lt;/h3&gt;
&lt;p&gt;Shows or hides the time column. This is the timestamp associated with the log line as reported from the data source.&lt;/p&gt;
&lt;h3 id=&#34;unique-labels&#34;&gt;Unique labels&lt;/h3&gt;
&lt;p&gt;Shows or hides the unique labels column that includes only non-common labels. All common labels are displayed above.&lt;/p&gt;
&lt;h3 id=&#34;wrap-lines&#34;&gt;Wrap lines&lt;/h3&gt;
&lt;p&gt;Set this to True if you want the display to use line wrapping. If set to False, it will result in horizontal scrolling.&lt;/p&gt;
&lt;h3 id=&#34;prettify-json&#34;&gt;Prettify JSON&lt;/h3&gt;
&lt;p&gt;Set this to &lt;code&gt;true&lt;/code&gt; to pretty print all JSON logs. This setting does not affect logs in any format other than JSON.&lt;/p&gt;
&lt;h3 id=&#34;deduplication&#34;&gt;Deduplication&lt;/h3&gt;
&lt;p&gt;Log data can be very repetitive and Explore can help by hiding duplicate log lines. There are a few different deduplication algorithms that you can use:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Exact -&lt;/strong&gt; Exact matches are done on the whole line except for date fields.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Numbers -&lt;/strong&gt; Matches on the line after stripping out numbers such as durations, IP addresses, and so on.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Signature -&lt;/strong&gt; The most aggressive deduplication, this strips all letters and numbers and matches on the remaining whitespace and punctuation.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;display-results-order&#34;&gt;Display results order&lt;/h3&gt;
&lt;p&gt;You can change the order of received logs from the default descending order (newest first) to ascending order (oldest first).&lt;/p&gt;
&lt;h2 id=&#34;labels-and-detected-fields&#34;&gt;Labels and detected fields&lt;/h2&gt;
&lt;p&gt;Each log line has an extendable area, with its labels and detected fields, for more robust interaction. You can filter for (positive filter) and filter out (negative filter) selected labels. Additionally, you can select a unique field to visualize instead of the whole log line by clicking on the eye icon.
Finally, each field or label also has a stats icon to display ad-hoc statistics in relation to all displayed logs.&lt;/p&gt;
&lt;h2 id=&#34;escaping-newlines&#34;&gt;Escaping newlines&lt;/h2&gt;
&lt;p&gt;Explore automatically detects some incorrectly escaped sequences in log lines, such as newlines (&lt;code&gt;\n&lt;/code&gt;, &lt;code&gt;\r&lt;/code&gt;) or tabs (&lt;code&gt;\t&lt;/code&gt;). When it detects such sequences, Explore provides an &amp;ldquo;Escape newlines&amp;rdquo; option.&lt;/p&gt;
&lt;p&gt;To automatically fix incorrectly escaped sequences that Explore has detected:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click &amp;ldquo;Escape newlines&amp;rdquo; to replace the sequences.&lt;/li&gt;
&lt;li&gt;Manually review the replacements to confirm their correctness.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Explore replaces these sequences. When it does so, the option will change from &amp;ldquo;Escape newlines&amp;rdquo; to &amp;ldquo;Remove escaping&amp;rdquo;. Evaluate the changes as the parsing may not be accurate based on the input received. You can revert the replacements by clicking &amp;ldquo;Remove escaping&amp;rdquo;.&lt;/p&gt;
&lt;h2 id=&#34;data-links&#34;&gt;Data links&lt;/h2&gt;
&lt;p&gt;By using data links, you can turn any part of a log message into an internal or external link. The created link is visible as a button in the &lt;strong&gt;Links&lt;/strong&gt; section inside the &lt;strong&gt;Log details&lt;/strong&gt; view.
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p &#34;
    style=&#34;max-width: 800px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/explore/data-link-9-4.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/explore/data-link-9-4.png&#34;data-srcset=&#34;/static/img/docs/explore/data-link-9-4.png?w=320 320w, /static/img/docs/explore/data-link-9-4.png?w=550 550w, /static/img/docs/explore/data-link-9-4.png?w=750 750w, /static/img/docs/explore/data-link-9-4.png?w=900 900w, /static/img/docs/explore/data-link-9-4.png?w=1040 1040w, /static/img/docs/explore/data-link-9-4.png?w=1240 1240w, /static/img/docs/explore/data-link-9-4.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Data link in Explore&#34;width=&#34;1838&#34;height=&#34;810&#34;title=&#34;Data link in Explore&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/explore/data-link-9-4.png&#34;
            alt=&#34;Data link in Explore&#34;width=&#34;1838&#34;height=&#34;810&#34;title=&#34;Data link in Explore&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Data link in Explore&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;&lt;/p&gt;
&lt;h2 id=&#34;log-context&#34;&gt;Log context&lt;/h2&gt;
&lt;p&gt;Log context is a feature that allows you to display additional lines of context surrounding a log entry that matches a particular search query. This can be helpful in understanding the log entry&amp;rsquo;s context, and is similar to the &lt;code&gt;-C&lt;/code&gt; parameter in the &lt;code&gt;grep&lt;/code&gt; command.&lt;/p&gt;
&lt;p&gt;When using Log context in Grafana, you can configure the number of lines of context to display before and after the matching log entry. By default, the Log context feature will show the log entry itself along with the 50 lines before and after it. However, this can be adjusted as needed depending on the specific use case.&lt;/p&gt;
&lt;p&gt;You may encounter long lines of text that make it difficult to read and analyze the context around each log entry. This is where the &lt;strong&gt;Wrap lines&lt;/strong&gt; toggle can come in handy. By enabling this toggle, Grafana will automatically wrap long lines of text so that they fit within the visible width of the viewer. This can make it easier to read and understand the log entries.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;Open in split view&lt;/strong&gt; button allows you to execute the context query for a log entry in a split screen in the Explore view. Clicking this button will open a new Explore pane with the context query displayed alongside the log entry, making it easier to analyze and understand the surrounding context.&lt;/p&gt;
&lt;h2 id=&#34;loki-specific-features&#34;&gt;Loki-specific features&lt;/h2&gt;
&lt;p&gt;As mentioned, one of the log integrations is for the new open source log aggregation system from Grafana Labs - &lt;a href=&#34;https://github.com/grafana/loki&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Loki&lt;/a&gt;. Loki is designed to be very cost effective, as it does not index the contents of the logs, but rather a set of labels for each log stream. The logs from Loki are queried in a similar way to querying with label selectors in Prometheus. It uses labels to group log streams which can be made to match up with your Prometheus labels. For more information about Grafana Loki, refer to &lt;a href=&#34;https://github.com/grafana/loki&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Loki&lt;/a&gt; or the Grafana Labs hosted variant: &lt;a href=&#34;/loki&#34;&gt;Grafana Cloud Logs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For more information, refer to &lt;a href=&#34;../../datasources/loki/&#34;&gt;Loki&amp;rsquo;s data source documentation&lt;/a&gt; on how to query for log data.&lt;/p&gt;
&lt;h3 id=&#34;switch-from-metrics-to-logs&#34;&gt;Switch from metrics to logs&lt;/h3&gt;
&lt;p&gt;If you switch from a Prometheus query to a logs query (you can do a split first to have your metrics and logs side by side) then it will keep the labels from your query that exist in the logs and use those to query the log streams. For example, the following Prometheus query:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;grafana_alerting_active_alerts{job=&amp;quot;grafana&amp;quot;}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;after switching to the Logs data source, the query changes to:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;{job=&amp;quot;grafana&amp;quot;}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This will return a chunk of logs in the selected time range that can be grepped/text searched.&lt;/p&gt;
&lt;h3 id=&#34;logs-sample&#34;&gt;Logs sample&lt;/h3&gt;
&lt;p&gt;If the selected data source implements logs sample, and supports both log and metric queries, then for metric queries you will be able to automatically see samples of log lines that contributed to visualized metrics. This feature is currently supported by Loki data sources.&lt;/p&gt;
&lt;h3 id=&#34;live-tailing&#34;&gt;Live tailing&lt;/h3&gt;
&lt;p&gt;Use the Live tailing feature to see real-time logs on supported data sources.&lt;/p&gt;
&lt;p&gt;Click the &lt;strong&gt;Live&lt;/strong&gt; button in the Explore toolbar to switch to Live tail view.&lt;/p&gt;
&lt;p&gt;While in Live tail view new logs will come from the bottom of the screen and will have fading contrasting background so you can keep track of what is new. Click the &lt;strong&gt;Pause&lt;/strong&gt; button or scroll the logs view to pause the Live tailing and explore previous logs without interruption. Click &lt;strong&gt;Resume&lt;/strong&gt; button to resume the Live tailing or click &lt;strong&gt;Stop&lt;/strong&gt; button to exit Live tailing and go back to standard Explore view.&lt;/p&gt;
&lt;div class=&#34;&#34;&gt;
  &lt;figure class=&#34;p-0 m-0 &#34;&gt;
    &lt;video 
      width=&#34;&#34; 
      controls
      muted
      playsinline
      
        class=&#34;lazyload&#34;
        preload=&#34;none&#34;
        
             
      
      
        loop
      
      src=&#34;/static/img/docs/v95/explore_live_tailing.mp4&#34;
      type=&#34;video/mp4&#34;
    &gt;
    &lt;/video&gt;&lt;/figure&gt;
&lt;/div&gt;
]]></content><description>&lt;h1 id="logs-in-explore">Logs in Explore&lt;/h1>
&lt;p>Along with metrics, Explore allows you to investigate your logs across several data sources including:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="../../datasources/elasticsearch/">Elasticsearch&lt;/a>&lt;/li>
&lt;li>&lt;a href="../../datasources/influxdb/">InfluxDB&lt;/a>&lt;/li>
&lt;li>&lt;a href="../../datasources/loki/">Loki&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>During monitoring, troubleshooting, and incident response, you can dig deeper into the metrics and logs to find the cause of the issue. Explore also allows you to correlate metrics and logs by viewing them side-by-side.&lt;/p></description></item><item><title>Tracing in Explore</title><link>https://grafana.com/docs/grafana/v10.0/explore/trace-integration/</link><pubDate>Fri, 06 Mar 2026 06:34:21 +0000</pubDate><guid>https://grafana.com/docs/grafana/v10.0/explore/trace-integration/</guid><content><![CDATA[&lt;h1 id=&#34;tracing-in-explore&#34;&gt;Tracing in Explore&lt;/h1&gt;
&lt;p&gt;You can use Explore to query and visualize traces from tracing data sources.&lt;/p&gt;
&lt;p&gt;Supported data sources are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/tempo/&#34;&gt;Tempo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/jaeger/&#34;&gt;Jaeger&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/zipkin/&#34;&gt;Zipkin&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/grafana/plugins/grafana-x-ray-datasource&#34;&gt;X-Ray&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For information on how to configure queries for the data sources listed above, refer to the documentation for specific data source.&lt;/p&gt;
&lt;h2 id=&#34;query-editor&#34;&gt;Query editor&lt;/h2&gt;
&lt;p&gt;You can query and search tracing data using a data source&amp;rsquo;s query editor.&lt;/p&gt;
&lt;p&gt;Each data source can have it&amp;rsquo;s own query editor. The query editor for the Tempo data source is slightly different than the query editor for the Jaegar data source.&lt;/p&gt;
&lt;p&gt;For information on querying each data source, refer to their documentation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/tempo/query-editor/&#34;&gt;Tempo query editor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/jaeger/#query-the-data-source&#34;&gt;Jaeger query editor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../datasources/zipkin/#query-the-data-source&#34;&gt;Zipkin query editor&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;trace-view&#34;&gt;Trace View&lt;/h2&gt;
&lt;p&gt;This section explains the elements of the Trace View.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 900px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/explore/explore-trace-view-full-8-0.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/explore/explore-trace-view-full-8-0.png&#34;data-srcset=&#34;/static/img/docs/explore/explore-trace-view-full-8-0.png?w=320 320w, /static/img/docs/explore/explore-trace-view-full-8-0.png?w=550 550w, /static/img/docs/explore/explore-trace-view-full-8-0.png?w=750 750w, /static/img/docs/explore/explore-trace-view-full-8-0.png?w=900 900w, /static/img/docs/explore/explore-trace-view-full-8-0.png?w=1040 1040w, /static/img/docs/explore/explore-trace-view-full-8-0.png?w=1240 1240w, /static/img/docs/explore/explore-trace-view-full-8-0.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Screenshot of the trace view&#34;width=&#34;2370&#34;height=&#34;1168&#34;title=&#34;Screenshot of the trace view&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/explore/explore-trace-view-full-8-0.png&#34;
            alt=&#34;Screenshot of the trace view&#34;width=&#34;2370&#34;height=&#34;1168&#34;title=&#34;Screenshot of the trace view&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Screenshot of the trace view&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h3 id=&#34;header&#34;&gt;Header&lt;/h3&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 750px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/v70/explore-trace-view-header.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/v70/explore-trace-view-header.png&#34;data-srcset=&#34;/static/img/docs/v70/explore-trace-view-header.png?w=320 320w, /static/img/docs/v70/explore-trace-view-header.png?w=550 550w, /static/img/docs/v70/explore-trace-view-header.png?w=750 750w, /static/img/docs/v70/explore-trace-view-header.png?w=900 900w, /static/img/docs/v70/explore-trace-view-header.png?w=1040 1040w, /static/img/docs/v70/explore-trace-view-header.png?w=1240 1240w, /static/img/docs/v70/explore-trace-view-header.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Screenshot of the trace view header&#34;width=&#34;1448&#34;height=&#34;154&#34;title=&#34;Screenshot of the trace view header&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v70/explore-trace-view-header.png&#34;
            alt=&#34;Screenshot of the trace view header&#34;width=&#34;1448&#34;height=&#34;154&#34;title=&#34;Screenshot of the trace view header&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Screenshot of the trace view header&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;Header title: Shows the name of the root span and trace ID.&lt;/li&gt;
&lt;li&gt;Search: Highlights spans containing the searched text.&lt;/li&gt;
&lt;li&gt;Metadata: Various metadata about the trace.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;minimap&#34;&gt;Minimap&lt;/h3&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 900px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/v70/explore-trace-view-minimap.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/v70/explore-trace-view-minimap.png&#34;data-srcset=&#34;/static/img/docs/v70/explore-trace-view-minimap.png?w=320 320w, /static/img/docs/v70/explore-trace-view-minimap.png?w=550 550w, /static/img/docs/v70/explore-trace-view-minimap.png?w=750 750w, /static/img/docs/v70/explore-trace-view-minimap.png?w=900 900w, /static/img/docs/v70/explore-trace-view-minimap.png?w=1040 1040w, /static/img/docs/v70/explore-trace-view-minimap.png?w=1240 1240w, /static/img/docs/v70/explore-trace-view-minimap.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Screenshot of the trace view minimap&#34;width=&#34;1442&#34;height=&#34;160&#34;title=&#34;Screenshot of the trace view minimap&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v70/explore-trace-view-minimap.png&#34;
            alt=&#34;Screenshot of the trace view minimap&#34;width=&#34;1442&#34;height=&#34;160&#34;title=&#34;Screenshot of the trace view minimap&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Screenshot of the trace view minimap&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;Shows condensed view or the trace timeline. Drag your mouse over the minimap to zoom into smaller time range. Zooming will also update the main timeline, so it is easy to see shorter spans. Hovering over the minimap, when zoomed, will show Reset Selection button which resets the zoom.&lt;/p&gt;
&lt;h3 id=&#34;span-filters&#34;&gt;Span Filters&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This feature is behind the &lt;code&gt;newTraceViewHeader&lt;/code&gt; &lt;a href=&#34;../../setup-grafana/configure-grafana/feature-toggles/&#34;&gt;feature toggle&lt;/a&gt;.
If you use Grafana Cloud, open a &lt;a href=&#34;/profile/org#support&#34;&gt;support ticket in the Cloud Portal&lt;/a&gt; to access this feature.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/media/docs/tempo/screenshot-grafana-tempo-span-filters.png&#34;
  alt=&#34;Screenshot of span filtering&#34; width=&#34;758&#34;
     height=&#34;234&#34;/&gt;&lt;/p&gt;
&lt;p&gt;Using span filters, you can filter your spans in the trace timeline viewer. The more filters you add, the more specific are the filtered spans.&lt;/p&gt;
&lt;p&gt;You can add one or more of the following filters:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Service name&lt;/li&gt;
&lt;li&gt;Span name&lt;/li&gt;
&lt;li&gt;Duration&lt;/li&gt;
&lt;li&gt;Tags (which include tags, process tags, and log fields)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;timeline&#34;&gt;Timeline&lt;/h3&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 900px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/v70/explore-trace-view-timeline.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/v70/explore-trace-view-timeline.png&#34;data-srcset=&#34;/static/img/docs/v70/explore-trace-view-timeline.png?w=320 320w, /static/img/docs/v70/explore-trace-view-timeline.png?w=550 550w, /static/img/docs/v70/explore-trace-view-timeline.png?w=750 750w, /static/img/docs/v70/explore-trace-view-timeline.png?w=900 900w, /static/img/docs/v70/explore-trace-view-timeline.png?w=1040 1040w, /static/img/docs/v70/explore-trace-view-timeline.png?w=1240 1240w, /static/img/docs/v70/explore-trace-view-timeline.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Screenshot of the trace view timeline&#34;width=&#34;1790&#34;height=&#34;428&#34;title=&#34;Screenshot of the trace view timeline&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v70/explore-trace-view-timeline.png&#34;
            alt=&#34;Screenshot of the trace view timeline&#34;width=&#34;1790&#34;height=&#34;428&#34;title=&#34;Screenshot of the trace view timeline&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Screenshot of the trace view timeline&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;Shows list of spans within the trace. Each span row consists of these components:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Expand children button: Expands or collapses all the children spans of selected span.&lt;/li&gt;
&lt;li&gt;Service name: Name of the service logged the span.&lt;/li&gt;
&lt;li&gt;Operation name: Name of the operation that this span represents.&lt;/li&gt;
&lt;li&gt;Span duration bar: Visual representation of the operation duration within the trace.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Clicking anywhere on the span row shows span details.&lt;/p&gt;
&lt;h3 id=&#34;span-details&#34;&gt;Span details&lt;/h3&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 900px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/v70/explore-trace-view-span-details.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/v70/explore-trace-view-span-details.png&#34;data-srcset=&#34;/static/img/docs/v70/explore-trace-view-span-details.png?w=320 320w, /static/img/docs/v70/explore-trace-view-span-details.png?w=550 550w, /static/img/docs/v70/explore-trace-view-span-details.png?w=750 750w, /static/img/docs/v70/explore-trace-view-span-details.png?w=900 900w, /static/img/docs/v70/explore-trace-view-span-details.png?w=1040 1040w, /static/img/docs/v70/explore-trace-view-span-details.png?w=1240 1240w, /static/img/docs/v70/explore-trace-view-span-details.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Screenshot of the trace view span details&#34;width=&#34;2354&#34;height=&#34;1174&#34;title=&#34;Screenshot of the trace view span details&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/v70/explore-trace-view-span-details.png&#34;
            alt=&#34;Screenshot of the trace view span details&#34;width=&#34;2354&#34;height=&#34;1174&#34;title=&#34;Screenshot of the trace view span details&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Screenshot of the trace view span details&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;Operation name.&lt;/li&gt;
&lt;li&gt;Span metadata.&lt;/li&gt;
&lt;li&gt;Tags: Any tags associated with this span.&lt;/li&gt;
&lt;li&gt;Process metadata: Metadata about the process that logged this span.&lt;/li&gt;
&lt;li&gt;Logs: List of logs logged by this span and associated key values. In case of Zipkin logs section shows Zipkin annotations.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;trace-to-logs&#34;&gt;Trace to logs&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Available in Grafana 7.4 and later versions.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;You can navigate from a span in a trace view directly to logs relevant for that span. This feature is available for Tempo, Jaeger, and Zipkin data sources. Refer to their &lt;a href=&#34;/docs/grafana/latest/datasources/tempo/#trace-to-logs&#34;&gt;relevant documentation&lt;/a&gt; for configuration instructions.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 600px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/explore/trace-to-log-7-4.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/explore/trace-to-log-7-4.png&#34;data-srcset=&#34;/static/img/docs/explore/trace-to-log-7-4.png?w=320 320w, /static/img/docs/explore/trace-to-log-7-4.png?w=550 550w, /static/img/docs/explore/trace-to-log-7-4.png?w=750 750w, /static/img/docs/explore/trace-to-log-7-4.png?w=900 900w, /static/img/docs/explore/trace-to-log-7-4.png?w=1040 1040w, /static/img/docs/explore/trace-to-log-7-4.png?w=1240 1240w, /static/img/docs/explore/trace-to-log-7-4.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Screenshot of the trace view in Explore with icon next to the spans&#34;width=&#34;1224&#34;height=&#34;795&#34;title=&#34;Screenshot of the trace view in Explore with icon next to the spans&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/explore/trace-to-log-7-4.png&#34;
            alt=&#34;Screenshot of the trace view in Explore with icon next to the spans&#34;width=&#34;1224&#34;height=&#34;795&#34;title=&#34;Screenshot of the trace view in Explore with icon next to the spans&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Screenshot of the trace view in Explore with icon next to the spans&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;Click the document icon to open a split view in Explore with the configured data source and query relevant logs for the span.&lt;/p&gt;
&lt;h3 id=&#34;trace-to-metrics&#34;&gt;Trace to metrics&lt;/h3&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;This feature is currently in beta &amp;amp; behind the &lt;code&gt;traceToMetrics&lt;/code&gt; feature toggle.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;p&gt;You can navigate from a span in a trace view directly to metrics relevant for that span. This feature is available for Tempo, Jaeger, and Zipkin data sources. Refer to their &lt;a href=&#34;/docs/grafana/latest/datasources/tempo/#trace-to-metrics&#34;&gt;relevant documentation&lt;/a&gt; for configuration instructions.&lt;/p&gt;
&lt;h2 id=&#34;node-graph&#34;&gt;Node Graph&lt;/h2&gt;
&lt;p&gt;You can optionally expand the node graph for the displayed trace. Depending on the data source, this can show spans of the trace as nodes in the graph, or as some additional context like service graph based on the current trace.&lt;/p&gt;
&lt;p&gt;&lt;img
  class=&#34;lazyload d-inline-block&#34;
  data-src=&#34;/static/img/docs/explore/explore-trace-view-node-graph-8-0.png&#34;
  alt=&#34;Node graph&#34; width=&#34;2364&#34;
     height=&#34;1420&#34;/&gt;&lt;/p&gt;
&lt;h2 id=&#34;service-graph&#34;&gt;Service Graph&lt;/h2&gt;
&lt;p&gt;The Service Graph visualizes the span metrics (traces data for rates, error rates, and durations (RED)) and service graphs.
Once the requirements are set up, this pre-configured view is immediately available.&lt;/p&gt;
&lt;p&gt;For more information, refer to the &lt;a href=&#34;../../datasources/tempo/#open-the-service-graph-view&#34;&gt;Service Graph view section&lt;/a&gt; of the Tempo data source page and the &lt;a href=&#34;/docs/tempo/latest/metrics-generator/service-graph-view/&#34;&gt;service graph view page&lt;/a&gt; in the Tempo documentation.&lt;/p&gt;
&lt;figure
    class=&#34;figure-wrapper figure-wrapper__lightbox w-100p docs-image--no-shadow&#34;
    style=&#34;max-width: 900px;&#34;
    itemprop=&#34;associatedMedia&#34;
    itemscope=&#34;&#34;
    itemtype=&#34;http://schema.org/ImageObject&#34;
  &gt;&lt;a
        class=&#34;lightbox-link captioned&#34;
        href=&#34;/static/img/docs/grafana-cloud/apm-overview.png&#34;
        itemprop=&#34;contentUrl&#34;
      &gt;&lt;div class=&#34;img-wrapper w-100p h-auto&#34;&gt;&lt;img
          class=&#34;lazyload mb-0&#34;
          data-src=&#34;/static/img/docs/grafana-cloud/apm-overview.png&#34;data-srcset=&#34;/static/img/docs/grafana-cloud/apm-overview.png?w=320 320w, /static/img/docs/grafana-cloud/apm-overview.png?w=550 550w, /static/img/docs/grafana-cloud/apm-overview.png?w=750 750w, /static/img/docs/grafana-cloud/apm-overview.png?w=900 900w, /static/img/docs/grafana-cloud/apm-overview.png?w=1040 1040w, /static/img/docs/grafana-cloud/apm-overview.png?w=1240 1240w, /static/img/docs/grafana-cloud/apm-overview.png?w=1920 1920w&#34;data-sizes=&#34;auto&#34;alt=&#34;Screenshot of the Service Graph view&#34;width=&#34;1266&#34;height=&#34;915&#34;title=&#34;Screenshot of the Service Graph view&#34;/&gt;
        &lt;noscript&gt;
          &lt;img
            src=&#34;/static/img/docs/grafana-cloud/apm-overview.png&#34;
            alt=&#34;Screenshot of the Service Graph view&#34;width=&#34;1266&#34;height=&#34;915&#34;title=&#34;Screenshot of the Service Graph view&#34;class=&#34;docs-image--no-shadow&#34;/&gt;
        &lt;/noscript&gt;&lt;/div&gt;&lt;figcaption class=&#34;w-100p caption text-gray-13  &#34;&gt;Screenshot of the Service Graph view&lt;/figcaption&gt;&lt;/a&gt;&lt;/figure&gt;
&lt;h2 id=&#34;data-api&#34;&gt;Data API&lt;/h2&gt;
&lt;p&gt;This visualization needs a specific shape of the data to be returned from the data source in order to correctly display it.&lt;/p&gt;
&lt;p&gt;Data source needs to return data frame and set &lt;code&gt;frame.meta.preferredVisualisationType = &#39;trace&#39;&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&#34;data-frame-structure&#34;&gt;Data frame structure&lt;/h3&gt;
&lt;p&gt;Required fields:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Field name&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;traceID&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Identifier for the entire trace. There should be only one trace in the data frame.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;spanID&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Identifier for the current span. SpanIDs should be unique per trace.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;parentSpanID&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;SpanID of the parent span to create child parent relationship in the trace view. Can be &lt;code&gt;undefined&lt;/code&gt; for root span without a parent.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;serviceName&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Name of the service this span is part of.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;serviceTags&lt;/td&gt;
              &lt;td&gt;TraceKeyValuePair[]&lt;/td&gt;
              &lt;td&gt;List of tags relevant for the service.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;startTime&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;Start time of the span in millisecond epoch time.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;duration&lt;/td&gt;
              &lt;td&gt;number&lt;/td&gt;
              &lt;td&gt;Duration of the span in milliseconds.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;Optional fields:&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;button-div&#34;&gt;
      &lt;button class=&#34;expand-table-btn&#34;&gt;Expand table&lt;/button&gt;
    &lt;/div&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Field name&lt;/th&gt;
              &lt;th&gt;Type&lt;/th&gt;
              &lt;th&gt;Description&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;logs&lt;/td&gt;
              &lt;td&gt;TraceLog[]&lt;/td&gt;
              &lt;td&gt;List of logs associated with the current span.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;tags&lt;/td&gt;
              &lt;td&gt;TraceKeyValuePair[]&lt;/td&gt;
              &lt;td&gt;List of tags associated with the current span.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;warnings&lt;/td&gt;
              &lt;td&gt;string[]&lt;/td&gt;
              &lt;td&gt;List of warnings associated with the current span.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;stackTraces&lt;/td&gt;
              &lt;td&gt;string[]&lt;/td&gt;
              &lt;td&gt;List of stack traces associated with the current span.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;errorIconColor&lt;/td&gt;
              &lt;td&gt;string&lt;/td&gt;
              &lt;td&gt;Color of the error icon in case span is tagged with &lt;code&gt;error: true&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;For details about the types see &lt;a href=&#34;https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/types/trace.ts#L28&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;TraceSpanRow&lt;/a&gt;, &lt;a href=&#34;https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/types/trace.ts#L4&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;TraceKeyValuePair&lt;/a&gt; and &lt;a href=&#34;https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/types/trace.ts#L12&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;TraceLog&lt;/a&gt;.&lt;/p&gt;
]]></content><description>&lt;h1 id="tracing-in-explore">Tracing in Explore&lt;/h1>
&lt;p>You can use Explore to query and visualize traces from tracing data sources.&lt;/p>
&lt;p>Supported data sources are:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="../../datasources/tempo/">Tempo&lt;/a>&lt;/li>
&lt;li>&lt;a href="../../datasources/jaeger/">Jaeger&lt;/a>&lt;/li>
&lt;li>&lt;a href="../../datasources/zipkin/">Zipkin&lt;/a>&lt;/li>
&lt;li>&lt;a href="/grafana/plugins/grafana-x-ray-datasource">X-Ray&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>For information on how to configure queries for the data sources listed above, refer to the documentation for specific data source.&lt;/p></description></item><item><title>Inspector in Explore</title><link>https://grafana.com/docs/grafana/v10.0/explore/explore-inspector/</link><pubDate>Fri, 06 Mar 2026 06:34:21 +0000</pubDate><guid>https://grafana.com/docs/grafana/v10.0/explore/explore-inspector/</guid><content><![CDATA[&lt;h1 id=&#34;inspector-in-explore&#34;&gt;Inspector in Explore&lt;/h1&gt;
&lt;p&gt;The inspector helps you understand and troubleshoot your queries. You can inspect the raw data, export that data to a comma-separated values (CSV) file, export log results in TXT format, and view query requests.&lt;/p&gt;
&lt;h2 id=&#34;inspector-ui&#34;&gt;Inspector UI&lt;/h2&gt;
&lt;p&gt;The inspector has following tabs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Stats tab -&lt;/strong&gt; Shows how long your query takes and how much it returns.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Query tab -&lt;/strong&gt; Shows you the requests to the server sent when Grafana queries the data source.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;JSON tab -&lt;/strong&gt; Allows you to view and copy the data JSON and data frame structure JSON.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Data tab -&lt;/strong&gt; Shows the raw data returned by the query.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error tab -&lt;/strong&gt; Shows the error. Only visible when query returns error.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;inspector-tasks&#34;&gt;Inspector tasks&lt;/h2&gt;
&lt;p&gt;You can perform a variety of tasks in the Explore inspector.&lt;/p&gt;
&lt;h3 id=&#34;open-the-inspector&#34;&gt;Open the Inspector&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run the query you would like to inspect.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;Inspector&lt;/strong&gt; button.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The inspector pane opens on the bottom of the screen.&lt;/p&gt;
&lt;h3 id=&#34;inspect-raw-query-results&#34;&gt;Inspect raw query results&lt;/h3&gt;
&lt;p&gt;You can view raw query results, that is the data returned by the query in a table.&lt;/p&gt;
&lt;p&gt;In the &lt;strong&gt;Inspector&lt;/strong&gt; tab, click the &lt;strong&gt;Data&lt;/strong&gt; tab.&lt;/p&gt;
&lt;p&gt;For multiple queries or for queries multiple nodes, there are additional options.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Show data frame:&lt;/strong&gt; Select the result set data you want to view.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Series joined by time:&lt;/strong&gt; View the raw data from all of your queries at once, one result set per column. You can click a column heading to sort the data.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;download-raw-query-results-as-csv&#34;&gt;Download raw query results as CSV&lt;/h3&gt;
&lt;p&gt;Grafana generates a CSV file in your default browser download location. You can open it in the viewer of your choice.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the &lt;strong&gt;Inspector&lt;/strong&gt; tab, get raw query results by following the instructions &lt;a href=&#34;#inspect-raw-query-results&#34;&gt;described in Inspect raw query results&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Refine query settings until you can see the raw data that you want to export.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Download CSV&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In order to download a CSV file specifically formatted for Excel, expand &lt;strong&gt;Data options&lt;/strong&gt; and then enable the &lt;strong&gt;Download for Excel&lt;/strong&gt; toggle before you click the &lt;strong&gt;Download CSV&lt;/strong&gt; option.&lt;/p&gt;
&lt;h3 id=&#34;download-log-results-as-txt&#34;&gt;Download log results as TXT&lt;/h3&gt;
&lt;p&gt;Grafana generates a TXT file in your default browser download location. You can open it in the viewer of your choice.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the inspector.&lt;/li&gt;
&lt;li&gt;Inspect the log query results as described above.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Download logs&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;download-trace-results&#34;&gt;Download trace results&lt;/h3&gt;
&lt;p&gt;Based on the data source type, Grafana generates a JSON file for the trace results in one of the supported formats: Jaeger, Zipkin, or OTLP formats.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the inspector.&lt;/li&gt;
&lt;li&gt;Inspect the trace query results &lt;a href=&#34;#inspect-raw-query-results&#34;&gt;as described above&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Download traces&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;inspect-query-performance&#34;&gt;Inspect query performance&lt;/h3&gt;
&lt;p&gt;The Stats tab displays statistics that tell you how long your query takes, how many queries you send, and the number of rows returned. This information can help you troubleshoot your queries, especially if any of the numbers are unexpectedly high or low.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the inspector.&lt;/li&gt;
&lt;li&gt;Navigate to the &lt;strong&gt;Stats&lt;/strong&gt; tab.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Statistics are displayed in read-only format.&lt;/p&gt;
&lt;h3 id=&#34;view-json-model&#34;&gt;View JSON model&lt;/h3&gt;
&lt;p&gt;You can explore and export data as well as data frame JSON models.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the Inspector panel, click the &lt;strong&gt;JSON&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;From the Select source dropdown, choose one of the following options:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Data -&lt;/strong&gt; Displays a JSON object representing the data that was returned to Explore.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DataFrame structure -&lt;/strong&gt; Displays the raw result set.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;You can expand or collapse portions of the JSON to view separate sections. You can also click the &lt;strong&gt;Copy to clipboard&lt;/strong&gt; option to copy JSON body and paste it into another application.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;view-raw-request-and-response-to-data-source&#34;&gt;View raw request and response to data source&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Open the panel inspector and then click the &lt;strong&gt;Query&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Refresh&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Grafana sends the query to the server and displays the result. You can drill down on specific portions of the query, expand or collapse all of it, or copy the data to the clipboard to use in other applications.&lt;/p&gt;
]]></content><description>&lt;h1 id="inspector-in-explore">Inspector in Explore&lt;/h1>
&lt;p>The inspector helps you understand and troubleshoot your queries. You can inspect the raw data, export that data to a comma-separated values (CSV) file, export log results in TXT format, and view query requests.&lt;/p></description></item></channel></rss>