Logs Explorer in SigNoz
Introduction
The Logs Explorer page in SigNoz enables developers to filter, examine, and analyze logs. There are two ways to filter the logs and each way has 3 different views available in Logs Explorer which include:
Operations on Data
Search
The search feature in Logs Explorer allows you to filter your logs data using different attributes (like serviceName
, status
etc.) using operators (like IN
, =
etc.). You can filter using multiple attributes simultaneously.
![Search feature in Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-search.webp)
Query Builder
Just like search, the Query Builder also allows you to filter your logs data based on different attributes using operators. The Query Builder provides you with additional powerful features like aggregation, grouping etc. on your data. To learn more about the Query Builder, refer to this documentation.
![Query Builder feature in Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-query-builder.webp)
Views
There are three views available in both Search and Query Builder.
![Different Views in Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-views.gif)
List View
The list view in logs explorer has the following features:
Download logs
You can download your logs in two format:
- Excel (.xlsx)
- CSV
![Download Logs feature in List View of Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-list-view-download.webp)
Settings
The settings option has three sections:
Format
There are three formats available which represents the logs in different formats :
- Raw: Shows the logs entries in the raw format as they appear in the logging system.
- Default: It provides a balanced view by formatting a raw log based on different attributes to make it more readable.
- Column: It organizes the logs data into different attribute Columns to provide a tabular view of logs.
![Different logs format](/img/docs/product-features/logs-explorer/logs-explorer-list-view-settings-format.gif)
Max lines per row
The maximum number of lines of text that each log entry is allowed to display.
![Maximum lines per log rows](/img/docs/product-features/logs-explorer/logs-explorer-list-view-settings-max-number-rows.gif)
Columns
You can add new columns for the different attributes available in your logs. This only works for Default and Column format. By default the log is formatted into Timestamp
and Body
in the Default and Column views.
![Add or remove attributes columns](/img/docs/product-features/logs-explorer/logs-explorer-list-view-settings-columns.gif)
Show in Context
When you hover over a log in any format, at the right most side, you'll find an option to Show in Context
.
This will by default show you 10 logs before and 10 logs after the log that you have selected which can be used in faster debugging.
You can load more than 10 logs logs and also filter the logs by a particular attribute.
![Show in context feature of List View in Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-list-view-show-in-context.gif)
Copy Link
You can copy the link to a particular log line which can be shared and accessed by anyone who has access to same SigNoz instance.
![Copy Link feature of List View in Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-list-view-copy-link.gif)
Time Series View
The Time Series View provides a graphical representation of logs data over time based on the filters or operations applied.
![Timeseries View in the Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-timeseries-view.webp)
Table View
The Table View provides a tabular representation of different operations like the count logs, average of duration etc., based on the filters applied.
![Table View in the Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-table-view.webp)
Log Details
When you click on a log line in any format it will open up a Log Detail panel which gives a comprehensive view of your log. This is only available in the List View.
![Log Details Panel in Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-log-details.webp)
The panel provides the following sections:
Overview
Overview has two sections:
Body
This shows the complete body of the log in JSON
format by default. Once you toggle on Wrap text
, the logs get converted to the Raw format.
![Log Body in Overview section of Log Details](/img/docs/product-features/logs-explorer/logs-explorer-log-details-overview-1.gif)
Attributes
This the attributes of the logs in a tabular format showing the attribute name and its value.
The following features are available in this section:
Pin an attribute
You can pin an attribute using the pin icon shown on the left side of the attribute name. The pinned attribute will be shown at the top when you open a new log line.
![Pin an attribute](/img/docs/product-features/logs-explorer/logs-explorer-log-details-overview-2.gif)
Search Attribute
You can search for an attribute available in your log using the search bar.
![Search an attribute](/img/docs/product-features/logs-explorer/logs-explorer-log-details-overview-3.gif)
Filter for Value
Using this, you can instantly filter the logs based on a particular attribute and its value using the IN operator.
For example, if the attribute is container_id
and it's value is debian
then using Filter for Value will create a filter container_id IN debian
. This will list the logs where the container_id
attribute is debian
.
![Filter for Value](/img/docs/product-features/logs-explorer/logs-explorer-log-details-overview-4.gif)
Filter out Value
Using this, you can instantly filter the logs based on a particular attribute and its value using the NOT_IN operator.
For example, if the attribute is container_id
and it's value is debian
then using Filter out Value will create a filter container_id NOT_IN debian
. This will list the logs where the container_id
attribute is not debian
.
![Filter out Value](/img/docs/product-features/logs-explorer/logs-explorer-log-details-overview-5.gif)
JSON
This section displays the log in JSON format. You can:
Wrap Text
Switching the toggle on for wrap text will convert your log to raw format from JSON.
![Wrap text](/img/docs/product-features/logs-explorer/logs-explorer-log-details-json-1.gif)
Copy Log
Copy your log in either JSON or Raw form.
![Copy Log](/img/docs/product-features/logs-explorer/logs-explorer-log-details-json-2.gif)
Context
This section will by default show you 10 logs before and 10 logs after the log that you have selected which can be used in faster debugging.
You can:
- Load more than 10 logs.
- Filter the logs by a particular attribute.
![Context in Log Details](/img/docs/product-features/logs-explorer/logs-explorer-log-details-context.gif)
Live View
The Live View streams new log entries continuously as they occur. This can help in debugging the real-time incidents.
![Switch to Live view in Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-live-view.gif)
These are the following features available in live view:
Search Filter
You can filter your logs based on different attributes. Just below the search filter section, you get a histogram which shows the count of logs at different times for the particular filter(s).
![Search filter in Live view](/img/docs/product-features/logs-explorer/logs-explorer-live-view-1.gif)
Format
Just like List View, there are three formats in which you can view your logs:
- Raw
- Table
- List (Default)
By hovering over the Format
button in the Raw and Table View, you can change the Max lines per Row
for your logs.
![Different formats in Live view](/img/docs/product-features/logs-explorer/logs-explorer-live-view-2.gif)
Pause and Resume
The Live Logs can be paused to stop the real-time feed. This allows users to scroll through the logs without new entries being pushed.
![Pause and Resume in Live view in Logs Explorer](/img/docs/product-features/logs-explorer/logs-explorer-live-view-3.gif)