kibana 创建Indices
时间: 2024-04-23 15:10:30 浏览: 63
要在Kibana中创建索引,您需要遵循以下步骤:
1. 打开Kibana仪表板并登录。
2. 单击左侧导航栏中的“Management”选项。
3. 在“Management”菜单下,单击“Index Patterns”选项。
4. 单击“Create index pattern”按钮。
5. 在“Index pattern”页面中,输入索引名称模式,并单击“Next step”按钮。
6. 选择您想要将哪些字段作为索引的一部分。
7. 确认您的设置并单击“Create index pattern”按钮。
完成上述步骤后,您的索引模式就已经创建好了。您可以在Kibana中使用这些索引来查看和分析数据。
相关问题
kibana怎么查看索引创建时间
根据提供的引用内容,没有直接提到如何在Kibana中查看索引的创建时间。但是,可以通过以下步骤在Kibana中查看索引的创建时间:
1. 打开Kibana控制台并选择“Dev Tools”选项卡。
2. 在控制台中,使用以下命令获取索引的元数据信息:
```
GET /_cat/indices/<index_name>?v
```
请将`<index_name>`替换为您要查看的索引的名称。
3. 在返回的结果中,您将看到一个名为`creation.date.string`的字段,它表示索引的创建时间。
请注意,这种方法仅适用于Elasticsearch中的索引,而不是MongoDB中的索引。如果您想了解如何在MongoDB中查看索引的创建时间,请提供更多关于您的环境和使用的工具的信息。
#### 引用[.reference_title]
- *1* *2* *3* [MongoDB 索引(一)](https://blog.csdn.net/qq_33642970/article/details/104219302)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
kibana api 添加角色
要使用 Kibana API 添加角色,您需要进行以下步骤:
1. 准备一个包含角色定义的 JSON 文件。例如:
```
{
"indices": [
{
"names": [ "index1", "index2" ],
"privileges": [ "read", "write", "create_index" ],
"allow_restricted_indices": false
}
],
"applications": [
{
"application": "kibana-.kibana",
"privileges": [ "dashboard_all", "visualization_all" ],
"resources": [ "space:my-space" ]
}
]
}
```
2. 通过 Kibana API 创建角色。例如:
```
POST /api/security/role/my-role
{
"elasticsearch": {
"cluster": [ "monitor" ],
"indices": [
{
"names": [ "index1", "index2" ],
"privileges": [ "read", "write", "create_index" ],
"allow_restricted_indices": false
}
]
},
"kibana": [
{
"base": [ "read" ],
"feature": {
"dashboard": [ "read", "create", "edit", "delete" ],
"visualization": [ "read", "create", "edit", "delete" ]
}
}
]
}
```
这将创建一个名为 `my-role` 的角色,该角色具有 Elasticsearch 集群的 `monitor` 权限,并允许读取、写入和创建 `index1` 和 `index2` 索引,以及在 Kibana 中读取和编辑 `dashboard` 和 `visualization`。
请注意,您需要具有适当的权限才能使用 Kibana API 创建角色。
阅读全文
相关推荐
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20250102104920.png)
![-](https://img-home.csdnimg.cn/images/20241231045021.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)