ログストリームウィジェット

ログストリームは、定義したクエリと一致するログフローを表示します。

セットアップ

日付、ホスト、サービスの 3 列を持つ source:nodejs でフィルターされたログストリーム構成

コンフィギュレーション

  1. 検索クエリを入力して、ログストリームを絞り込みます。
  2. Log Analytics のイベントサブセットには、PatternsTransactions があり、ログをグループ化することができます。
  3. 列を更新して、ファセットメジャーの値を表示します。
  4. グラフにタイトルを付けるか、提案されたタイトルを使用するにはボックスを空白のままにします。

API

このウィジェットは、ダッシュボード 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,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

{
  "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"
}

その他の参考資料