# Introducing Log View in GreptimeDB Dashboard UI

Source: https://greptime.com/blogs/2024-12-17-log-view-dashboard-ui

From [GreptimeDB v0.11](https://github.com/GreptimeTeam/greptimedb) release, **we ship a new UI for querying and viewing logs and events stored in GreptimeDB**. Let us dive into the details to see how our new Log UI can help you with navigating your data and get insights from it.

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image1.png" alt="GreptimeDB Dashboard UI Log View" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 1: GreptimeDB Dashboard UI Sample</figcaption>
</figure>

## Query Builder

The query builder allows you to **select the table to query, define filters and data sorting options**. 

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image2.png" alt="GreptimeDB Dashboard Query Builder" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 2: Functional Diagram of Query Builder</figcaption>
</figure>

**The Date/Time Picker** provides you a quick access to timestamp filters. If you use relative date time range like "Last 10 minutes", it will always fetch data from current time. This is useful for tailing logs for the latest update.

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image3.png" alt="GreptimeDB Dashboard Date/Time Picker" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 3: The Date/Time Picker</figcaption>
</figure>

Like many visualization and BI tools, it's also possible to switch to "Code" mode and write SQL directly for advanced queries.

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image4.png" alt="GreptimeDB Dashboard Query Builder" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 4: Switch to "Code" Mode for Advanced Queries</figcaption>
</figure>

Click the "Run" button to execute the query and retrieve results. If you check the "Live" option, the UI will run the query periodically to tail the latest results and prepend the to the UI.

## Result View

The result view first provides **an overview of the result item count over time**, then followed by **the actual result table**. By zooming in and out the bar chart, we will show the data for your selected time range.

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image5.png" alt="GreptimeDB Dashboard UI" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 5: Result View</figcaption>
</figure>

There are two types of result table views: **single-column view** and **multi-column view**. The single-column mode is to simulate a log file experience. You can also toggle the visibility of field keys if it provides little information for you.

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image6.png" alt="GreptimeDB Dashboard UI" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 6: Single-column View</figcaption>
</figure>

While the multi-column view is great for structured event data, gives you a clear table experience.

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image7.png" alt="GreptimeDB Dashboard UI" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 7: Multi-column View</figcaption>
</figure>

You also control the display size by turning on "Compact Mode" to include more data in one screen. And use "Wrap Line" to avoid horizontal scroll bars.

The time navigation widget gives you a quick look of data time range of current page, and is navigable between time ranges. While the column filter allows you to toggle the visibility of columns from the result table.

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image8.png" alt="GreptimeDB Dashboard UI" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 8: The Time Navigation Widget</figcaption>
</figure>

## Pipeline Management

GreptimeDB has built in log data processing pipelines to transform any format of log input to the structure you want. Previously, it was only available as REST API but in this release, we built a dedicated pipeline management UI. 

<figure>
<img src="/blogs/2024-12-17-log-view-dashboard-ui/image9.png" alt="GreptimeDB Pipeline Management" style="width: 80%; margin: 0 auto"/>
<figcaption>Figure 9: Pipeline Management</figcaption>
</figure>

You can edit and test your pipeline and see the intermediate data structure to be stored in database. 

## First Release of Our Log UI

This is the first release of our log UI. We are continuously working on it to ship new features and bugfixes. 

To add feedback for it, head to our [community slack](https://greptime.com/slack) and [dashboard github project](https://github.com/GreptimeTeam/dashboard)

------
#### About Greptime

Greptime offers industry-leading time series database products and solutions to empower IoT and Observability scenarios, enabling enterprises to uncover valuable insights from their data with less time, complexity, and cost.

[GreptimeDB](https://github.com/GreptimeTeam/greptimedb) is an open-source, high-performance time-series database offering unified storage and analysis for metrics, logs, and events. Try it out instantly with [GreptimeCloud](https://www.greptime.com/product/cloud), a fully-managed DBaaS solution—no deployment needed!

The [Edge-Cloud Integrated Solution](https://greptime.com/product/carcloud) combines multimodal edge databases with cloud-based GreptimeDB to optimize IoT edge scenarios, cutting costs while boosting data performance.

Star us on [GitHub](https://github.com/GreptimeTeam/greptimedb) or join GreptimeDB Community on [Slack](https://www.greptime.com/slack) to get connected.
