Back to Logstash

Logstash Directory Layout [dir-layout]

docs/reference/dir-layout.md

9.4.03.7 KB
Original Source

Logstash Directory Layout [dir-layout]

This section describes the default directory structure that is created when you unpack the Logstash installation packages.

Directory Layout of .zip and .tar.gz Archives [zip-targz-layout]

The .zip and .tar.gz packages are entirely self-contained. All files and directories are, by default, contained within the home directory — the directory created when unpacking the archive.

This is very convenient because you don’t have to create any directories to start using Logstash, and uninstalling Logstash is as easy as removing the home directory. However, it is advisable to change the default locations of the config and the logs directories so that you do not delete important data later on.

TypeDescriptionDefault LocationSetting
homeHome directory of the Logstash installation.{extract.path}- Directory created by unpacking the archive
binBinary scripts, including logstash to start Logstash and logstash-plugin to install plugins{extract.path}/bin
settingsConfiguration files, including logstash.yml and jvm.options{extract.path}/configpath.settings
logsLog files{extract.path}/logspath.logs
pluginsLocal, non Ruby-Gem plugin files. Each plugin is contained in a subdirectory. Recommended for development only.{extract.path}/pluginspath.plugins
dataData files used by logstash and its plugins for any persistence needs.{extract.path}/datapath.data

Directory Layout of Debian and RPM Packages [deb-layout]

The Debian package and the RPM package each place config files, logs, and the settings files in the appropriate locations for the system:

TypeDescriptionDefault LocationSetting
homeHome directory of the Logstash installation./usr/share/logstash
binBinary scripts including logstash to start Logstash and logstash-plugin to install plugins/usr/share/logstash/bin
settingsConfiguration files, including logstash.yml and jvm.options/etc/logstashpath.settings
confLogstash pipeline configuration files/etc/logstash/conf.d/*.confSee /etc/logstash/pipelines.yml
logsLog files/var/log/logstashpath.logs
pluginsLocal, non Ruby-Gem plugin files. Each plugin is contained in a subdirectory. Recommended for development only./usr/share/logstash/pluginspath.plugins
dataData files used by logstash and its plugins for any persistence needs./var/lib/logstashpath.data

Directory Layout of Docker Images [docker-layout]

The Docker images are created from the .tar.gz packages, and follow a similar directory layout.

TypeDescriptionDefault LocationSetting
homeHome directory of the Logstash installation./usr/share/logstash
binBinary scripts, including logstash to start Logstash and logstash-plugin to install plugins/usr/share/logstash/bin
settingsConfiguration files, including logstash.yml and jvm.options/usr/share/logstash/configpath.settings
confLogstash pipeline configuration files/usr/share/logstash/pipelinepath.config
pluginsLocal, non Ruby-Gem plugin files. Each plugin is contained in a subdirectory. Recommended for development only./usr/share/logstash/pluginspath.plugins
dataData files used by logstash and its plugins for any persistence needs./usr/share/logstash/datapath.data

::::{note} Logstash Docker containers do not create log files by default. They log to standard output. ::::