elasticsearch - 如何在 filebeat.yml 输入路径中指定 windows 临时文件夹 (%temp%)
问题描述
如何在 filebeat.yml 输入路径中指定 windows 临时文件夹 (%temp%),因为我的所有日志都写入 appdata 临时文件夹。
paths:
- %temp%\logs\*.log
解决方案
环境变量(https://www.elastic.co/guide/en/beats/filebeat/current/using-environ-vars.html)可以在 filebeat 中使用。
路径: - ${temp}\logs*.log
推荐阅读
- java - 在刷新浏览器时使用cookies(java + react)转到最后完成的步骤
- javascript - 如何使用 jQuery 每个函数检查 NaN 的数组值?
- .net - 即使已经存在相同的版本,也要创建新的 Nuget 包
- java - BJP4 练习 3.20:输入生日
- python - 我的代码能解决问题吗?我是python的初学者
- postgis - st_contains postgis vie postgres 中的问题
- azure-devops - AzureDevOps ServiceNow - 更新更改请求时出现错误“对文件 'change_request' 的操作已被业务规则中止”
- javascript - 'ds' 未定义 no-undef
- elasticsearch - kibana 6.6.1 中的 x-pack 警报插件
- azure - Azure Devops 部署 asp.net 网站(不是 webapp)