首页 > 解决方案 > 如何在 filebeat.yml 输入路径中指定 windows 临时文件夹 (%temp%)

问题描述

如何在 filebeat.yml 输入路径中指定 windows 临时文件夹 (%temp%),因为我的所有日​​志都写入 appdata 临时文件夹。

  paths:
    - %temp%\logs\*.log

标签: elasticsearchfilebeat

解决方案


环境变量(https://www.elastic.co/guide/en/beats/filebeat/current/using-environ-vars.html)可以在 filebeat 中使用。

路径: - ${temp}\logs*.log


推荐阅读