로그 스트림 위젯

로그 스트림은 정의된 쿼리와 일치하는 로그 흐름을 표시합니다.

로그 스트림

구성

설정

  1. 검색 쿼리를 입력하여 로그 스트림을 필터링합니다.
  2. 열을 업데이트하여 패싯측정 값을 표시하세요.
  3. 그래프에 타이틀을 지정하거나, 제안된 타이틀 상자를 공란으로 두세요.
로그 스트림 구성

API

이 위젯은 Dashboards API와 함께 사용할 수 있습니다. 자세한 내용은 대시보드 API를 참조하세요.

로그 스트림 위젯의 위젯 JSON 스키마 정의는 다음과 같습니다.

Expand All

항목

유형

설명

columns

[string]

Which columns to display on the widget.

indexes

[string]

An array of index names to query in the stream. Use [] to query all indexes at once.

logset

string

DEPRECATED: ID of the log set to use.

message_display

enum

Amount of log lines to display Allowed enum values: inline,expanded-md,expanded-lg

query

string

Query to filter the log stream with.

show_date_column

boolean

Whether to show the date column or not

show_message_column

boolean

Whether to show the message column or not

sort

object

Which column and order to sort by

column [required]

string

Facet path for the column

order [required]

enum

Widget sorting methods. Allowed enum values: asc,desc

time

object

Time setting for the widget.

live_span

enum

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,week_to_date,month_to_date,1y,alert

title

string

Title of the widget.

title_align

enum

How to align the text on the widget. Allowed enum values: center,left,right

title_size

string

Size of the title.

type [required]

enum

Type of the log stream widget. Allowed enum values: log_stream

default: 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"
}

참고 자료

Additional helpful documentation, links, and articles: