在 Windows 10 中哪里可以找到 Kibana 系统日志文件

Ign*_*ind 2 logging elasticsearch kibana kibana-7

我已经使用此处建议的 .zip 文件夹在 Windows 10 上安装了 kibana

我已更新kibana.yml为存储日志,如下所示。

在此输入图像描述

我也创建了日志文件夹。我也使用cmd重新启动了kibana。但日志文件中没有显示任何内容。

不知道我做错了什么。感谢潜在客户。

Ale*_*uma 5

我已经在 Windows 10(版本 10.0.17763 Build 17763)中测试了它和 Kibana 7.9.2,并且日志记录工作正常。

重现步骤:

  1. 从elastic.co网站下载kibana .zip包
  2. 将 zip 解压到您选择的文件夹中
  3. config\kibana.yml使用您喜欢的编辑器打开文件
  4. 取消注释以下行并设置日志文件的目标目录和文件名。
# Logs queries sent to Elasticsearch. Requires logging.verbose set to true.
elasticsearch.logQueries: true

# Enables you to specify a file where Kibana stores log output.
logging.dest: D:\kibana-7.9.2-windows-x86_64\logs\kibana.log

# Set the value of this setting to true to log all events, including system usage information
# and all requests.
logging.verbose: true
Run Code Online (Sandbox Code Playgroud)
  1. 启动powershellorcmd并导航到 kibana 目录
  2. 跑步PS D:\kibana-7.9.2-windows-x86_64> .\bin\kibana.bat
  3. 导航到日志文件目录并使用您喜欢的编辑器打开日志文件。
{"type":"log","@timestamp":"2020-10-02T19:39:41Z","tags":["debug","server"],"pid":35608,"message":"setting up server"}
{"type":"log","@timestamp":"2020-10-02T19:39:41Z","tags":["debug","plugins-service"],"pid":35608,"message":"Discovering plugins"}
{"type":"log","@timestamp":"2020-10-02T19:39:41Z","tags":["debug","plugins-discovery"],"pid":35608,"message":"Discovering plugins..."}
{"type":"log","@timestamp":"2020-10-02T19:39:41Z","tags":["debug","plugins-discovery"],"pid":35608,"message":"Scanning \"D:\\kibana-7.9.2-windows-x86_64\\src\\plugins\" for plugin sub-directories..."}
{"type":"log","@timestamp":"2020-10-02T19:39:41Z","tags":["debug","plugins-discovery"],"pid":35608,"message":"Scanning 
Run Code Online (Sandbox Code Playgroud)

PS:我已经用 verbose 进行了测试,但您可以选择其他日志级别(阅读文件中的说明kibana.yml