Log Stream Widget
The Log Stream displays a log flow matching the defined query.
Setup
Configuration
- Enter a search query to filter the log stream.
- You can group logs into event subsets of Log Analytics, which include
Patterns
and Transactions
. - Update the columns to display the values of your facets and measures.
- Give your graph a title or leave the box blank for the suggested title.
API
This widget can be used with the Dashboards API. See Dashboards API for more details.
The widget JSON schema definition for the log stream widget is:
Expand All
Which columns to display on the widget.
An array of index names to query in the stream. Use [] to query all indexes at once.
DEPRECATED: ID of the log set to use.
Amount of log lines to display
Allowed enum values: inline,expanded-md,expanded-lg
Query to filter the log stream with.
Whether to show the date column or not
Whether to show the message column or not
Which column and order to sort by
Facet path for the column
Widget sorting methods.
Allowed enum values: asc,desc
Time setting for the widget.
The available timeframes depend on the widget you are using.
Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w,1mo,3mo,6mo,1y,alert
How to align the text on the widget.
Allowed enum values: center,left,right
Type of the log stream widget.
Allowed enum values: log_stream
{
"columns": [],
"indexes": [
"days-3",
"days-7"
],
"logset": "string",
"message_display": "string",
"query": "string",
"show_date_column": false,
"show_message_column": false,
"sort": {
"column": "",
"order": "desc"
},
"time": {
"live_span": "5m"
},
"title": "string",
"title_align": "string",
"title_size": "string",
"type": "log_stream"
}
Further Reading
Additional helpful documentation, links, and articles: