diff --git a/content/en/docs/toolbox/events-query.md b/content/en/docs/toolbox/events-query.md index 270fb241a..3506adf63 100644 --- a/content/en/docs/toolbox/events-query.md +++ b/content/en/docs/toolbox/events-query.md @@ -16,38 +16,27 @@ This guide demonstrates how you can do multi-level, fine-grained event queries t ## Query Events -1. The event query function is available for all users. Log in to the console with any account, hover over the **Toolbox** in the lower-right corner and select **Event Search**. +1. The event query function is available for all users. Log in to the console with any account, hover over in the lower-right corner and select **Event Search**. - ![events_query_guide](/images/docs/events/events_query_guide.png) +2. In the displayed dialog box, you can view the number of events that the account has permission to view. -2. As shown in the pop-up window, you can see the number of events that the account has permission to view. - - ![events_query_home](/images/docs/events/events_query_home.png) + ![event-search](/images/docs/toolbox/event-query/event-search.png) {{< notice note >}} -- KubeSphere supports event queries on each cluster separately if you have enabled the multi-cluster feature. You can switch the target cluster using the drop-down list next to the search bar. +- KubeSphere supports event queries on each cluster separately if you have enabled the [multi-cluster feature](../../multicluster-management/). You can click on the left of the search box and select a target cluster. -- Supported fields in the search bar: - - **Workspace** - - **Project** - - **Resource Type** - - **Resource Name** - - **Reason** - - **Message** - - **Category** - - **Time Range** -- You can customize the query time range by selecting **Time Range** in the search bar. KubeSphere stores events for last seven days by default. +- KubeSphere stores events for last seven days by default. {{}} -3. Here is an example to query events in the project `test` whose **Message** contains `container` within last 1 hour as shown in the following screenshot. It returns 84 rows of results with the corresponding time, project, and message all displayed. +3. You can click the search box and enter a condition to search for events by message, workspace, project, resource type, resource name, reason, category, or time range (for example, use `Time Range:Last 10 minutes` to search for events within the last 10 minutes). - ![events_query_list](/images/docs/events/events_query_list.png) + ![event-search-list](/images/docs/toolbox/event-query/event-search-list.png) 4. Click any one of the results from the list, and you can see raw information of it. It is convenient for developers in terms of debugging and analyzing. - ![events_query_detail](/images/docs/events/events_query_detail.png) + ![event-details](/images/docs/toolbox/event-query/event-details.png) {{< notice note >}} diff --git a/content/zh/docs/toolbox/events-query.md b/content/zh/docs/toolbox/events-query.md index d3fa5553e..d3fca2647 100644 --- a/content/zh/docs/toolbox/events-query.md +++ b/content/zh/docs/toolbox/events-query.md @@ -16,38 +16,27 @@ Kubernetes 事件系统用于深入了解集群内部发生的事件,KubeSpher ## 查询事件 -1. 所有用户都可以使用事件查询功能。使用任意帐户登录控制台,在右下角的**工具箱**图标上悬停,然后在弹出菜单中选择**事件查询**。 - - ![工具箱](/images/docs/zh-cn/toolbox/event-query/events-query-guide.png) +1. 所有用户都可以使用事件查询功能。使用任意帐户登录控制台,在右下角的 上悬停,然后在弹出菜单中选择**事件查询**。 2. 在弹出窗口中,您可以看到该帐户有权限查看的事件数量。 - ![事件查询主界面](/images/docs/zh-cn/toolbox/event-query/events-query-home.png) + ![event-search](/images/docs/zh-cn/toolbox/event-query/event-search.png) {{< notice note >}} -- 如果您启用了多集群功能,KubeSphere 支持对每个集群分别进行事件查询。您可以使用搜索栏旁边的下拉列表切换目标集群。 +- 如果您启用了[多集群功能](../../multicluster-management/),KubeSphere 支持对每个集群分别进行事件查询。您可以点击搜索栏左侧的 ,然后选择一个目标集群。 -- 搜索栏中支持以下字段: - - **企业空间** - - **项目** - - **资源类型** - - **资源名称** - - **原因** - - **消息** - - **类别** - - **时间范围** -- 您可以在搜索栏中选择**时间范围**,自定义查询时间范围。KubeSphere 默认存储最近七天的事件。 +- KubeSphere 默认存储最近七天的事件。 {{}} -3. 以查询项目 `test` 最近 1 小时内**消息**中包含 `container` 的事件作为示例,如下方截图所示。查询返回 84 行结果,并显示了相应的时间、项目和消息。 +3. 您可以点击搜索栏并输入搜索条件,可以按照消息、企业空间、项目、资源类型、资源名称、原因、类别或时间范围搜索事件(例如,输入`时间范围:最近 10 分钟`来搜索最近 10 分钟的事件)。 - ![事件查询结果列表](/images/docs/zh-cn/toolbox/event-query/events-query-list.PNG) + ![event-search-list](/images/docs/zh-cn/toolbox/event-query/event-search-list.png) 4. 点击列表中的任一查询结果,可以查看该结果的原始信息,便于开发者分析和排除故障。 - ![事件查询结果详情](/images/docs/zh-cn/toolbox/event-query/events-query-detail.PNG) + ![event-details](/images/docs/zh-cn/toolbox/event-query/event-details.png) {{< notice note >}} diff --git a/static/images/docs/events/events_query_detail.png b/static/images/docs/events/events_query_detail.png deleted file mode 100644 index 84c17877f..000000000 Binary files a/static/images/docs/events/events_query_detail.png and /dev/null differ diff --git a/static/images/docs/events/events_query_guide.png b/static/images/docs/events/events_query_guide.png deleted file mode 100644 index 42b343d7e..000000000 Binary files a/static/images/docs/events/events_query_guide.png and /dev/null differ diff --git a/static/images/docs/events/events_query_home.png b/static/images/docs/events/events_query_home.png deleted file mode 100644 index b0062cb72..000000000 Binary files a/static/images/docs/events/events_query_home.png and /dev/null differ diff --git a/static/images/docs/events/events_query_list.png b/static/images/docs/events/events_query_list.png deleted file mode 100644 index a05522bd0..000000000 Binary files a/static/images/docs/events/events_query_list.png and /dev/null differ diff --git a/static/images/docs/toolbox/event-query/drop-down-list.png b/static/images/docs/toolbox/event-query/drop-down-list.png new file mode 100644 index 000000000..80671dbd8 Binary files /dev/null and b/static/images/docs/toolbox/event-query/drop-down-list.png differ diff --git a/static/images/docs/toolbox/event-query/event-details.png b/static/images/docs/toolbox/event-query/event-details.png new file mode 100644 index 000000000..f177dabd2 Binary files /dev/null and b/static/images/docs/toolbox/event-query/event-details.png differ diff --git a/static/images/docs/toolbox/event-query/event-search-list.png b/static/images/docs/toolbox/event-query/event-search-list.png new file mode 100644 index 000000000..3b52fa032 Binary files /dev/null and b/static/images/docs/toolbox/event-query/event-search-list.png differ diff --git a/static/images/docs/toolbox/event-query/event-search.png b/static/images/docs/toolbox/event-query/event-search.png new file mode 100644 index 000000000..00bc7f8ff Binary files /dev/null and b/static/images/docs/toolbox/event-query/event-search.png differ diff --git a/static/images/docs/toolbox/event-query/toolbox.png b/static/images/docs/toolbox/event-query/toolbox.png new file mode 100644 index 000000000..57d5e41ed Binary files /dev/null and b/static/images/docs/toolbox/event-query/toolbox.png differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/drop-down-list.png b/static/images/docs/zh-cn/toolbox/event-query/drop-down-list.png new file mode 100644 index 000000000..80671dbd8 Binary files /dev/null and b/static/images/docs/zh-cn/toolbox/event-query/drop-down-list.png differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/event-details.png b/static/images/docs/zh-cn/toolbox/event-query/event-details.png new file mode 100644 index 000000000..84c8cb90d Binary files /dev/null and b/static/images/docs/zh-cn/toolbox/event-query/event-details.png differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/event-search-list.png b/static/images/docs/zh-cn/toolbox/event-query/event-search-list.png new file mode 100644 index 000000000..5cd9e4de3 Binary files /dev/null and b/static/images/docs/zh-cn/toolbox/event-query/event-search-list.png differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/event-search.png b/static/images/docs/zh-cn/toolbox/event-query/event-search.png new file mode 100644 index 000000000..1de1b5787 Binary files /dev/null and b/static/images/docs/zh-cn/toolbox/event-query/event-search.png differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/events-query-detail.PNG b/static/images/docs/zh-cn/toolbox/event-query/events-query-detail.PNG deleted file mode 100644 index 52f830f4a..000000000 Binary files a/static/images/docs/zh-cn/toolbox/event-query/events-query-detail.PNG and /dev/null differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/events-query-guide.png b/static/images/docs/zh-cn/toolbox/event-query/events-query-guide.png deleted file mode 100644 index 04c747530..000000000 Binary files a/static/images/docs/zh-cn/toolbox/event-query/events-query-guide.png and /dev/null differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/events-query-home.png b/static/images/docs/zh-cn/toolbox/event-query/events-query-home.png deleted file mode 100644 index 330aa09a6..000000000 Binary files a/static/images/docs/zh-cn/toolbox/event-query/events-query-home.png and /dev/null differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/events-query-list.PNG b/static/images/docs/zh-cn/toolbox/event-query/events-query-list.PNG deleted file mode 100644 index 57b8079ca..000000000 Binary files a/static/images/docs/zh-cn/toolbox/event-query/events-query-list.PNG and /dev/null differ diff --git a/static/images/docs/zh-cn/toolbox/event-query/toolbox.png b/static/images/docs/zh-cn/toolbox/event-query/toolbox.png new file mode 100644 index 000000000..57d5e41ed Binary files /dev/null and b/static/images/docs/zh-cn/toolbox/event-query/toolbox.png differ