filebeat 篇章——filebeat 目录结构和默认路径

filebeat 目录结构和默认路径

https://www.elastic.co/guide/en/beats/filebeat/8.7/directory-layout.html#directory-layout

Type
Description
Default Location
Config Option

home

filebeat 安装的主目录

 

path.home

bin

filebeat 的二进制文件目录

{path.home}/bin

 

config

filebeat 的配置文件目录

{path.home}

path.config

data

filebeat 持久化存储的目录

{path.home}/data

path.data

logs

filebeat 创建的日志文件目录

{path.home}/logs

path.logs

  Archive installation has a different layout. See zip, tar.gz, or tgz. You can change these settings by using CLI flags or setting path options in the configuration file.
  压缩包安装的布局与普通安装有所不同。请参阅 zip、tar.gz 或 tgz。您可以通过使用 CLI flags 或在 setting 文件中设置 "path" options 来更改这些设置。

  我们看看 filbeat 的默认路径有哪些(指 deb 和 rpm):

Type
Description
Location

home

Home of the Filebeat installation.

/usr/share/filebeat

bin

The location for the binary files.

/usr/share/filebeat/bin

config

The location for configuration files.

/etc/filebeat

data

The location for persistent data files.

/var/lib/filebeat

logs

The location for the logs created by Filebeat.

/var/log/filebeat

  再看看 docker 的默认路径:

Type
Description
Location

home

Home of the Filebeat installation.

/usr/share/filebeat

bin

The location for the binary files.

/usr/share/filebeat

config

The location for configuration files.

/usr/share/filebeat

data

The location for persistent data files.

/usr/share/filebeat/data

logs

The location for the logs created by Filebeat.

/usr/share/filebeat/logs

  最后看看 zip, tar.gz, 和 tgz 的默认路径:

Type
Description
Location

home

Home of the Filebeat installation.

{extract.path}

bin

The location for the binary files.

{extract.path}

config

The location for configuration files.

{extract.path}

data

The location for persistent data files.

{extract.path}/data

logs

The location for the logs created by Filebeat.

{extract.path}/logs

posted @ 2023-04-24 10:52  左扬  阅读(696)  评论(0编辑  收藏  举报
levels of contents