在哪里可以找到windows 10中的kibana系统日志文件

rks48beu  于 2021-06-10  发布在  ElasticSearch
关注(0)|答案(1)|浏览(568)

我已经使用这里建议的.zip文件夹在Windows10上安装了kibana
我已经更新了 kibana.yml 存储日志如下。

我也创建了日志文件夹。我用cmd重新启动了kibana。但日志文件中没有显示任何内容。
不知道我做错了什么。我们很感激你的线索。

p5fdfcr1

p5fdfcr11#

我已经在Windows10(版本10.0.17763内部版本17763)中测试了它和Kibana7.9.2,日志记录工作正常。
复制步骤:
从elastic.co网站下载kibana.zip包
将压缩包解压到您选择的文件夹中
打开 config\kibana.yml 用你最喜欢的编辑器归档
取消对以下行的注解,并为日志文件设置目标目录和文件名。


# 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

启动 powershell 或者 cmd 导航到kibana目录
PS D:\kibana-7.9.2-windows-x86_64> .\bin\kibana.bat 导航到日志文件目录并用您喜爱的编辑器打开日志文件。

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

ps:我已经用verbose进行了测试,但是你可以选择其他日志级别(请阅读 kibana.yml 文件)

相关问题