[[setup-logstash]] == Setting Up and Running Logstash Before reading this section, see <> for basic installation instructions to get you started. This section includes additional information on how to set up and run Logstash, including: * <> * <> * <> * <> * <> * <> * <> * <> * <> * <> * <> * <> [[dir-layout]] === Logstash Directory Layout This section describes the default directory structure that is created when you unpack the Logstash installation packages. [[zip-targz-layout]] ==== Directory Layout of `.zip` and `.tar.gz` Archives 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. [cols="> for more info. [[settings-files]] ==== Settings Files The settings files are already defined in the Logstash installation. Logstash includes the following settings files: *`logstash.yml`*:: Contains Logstash configuration flags. You can set flags in this file instead of passing the flags at the command line. Any flags that you set at the command line override the corresponding settings in the `logstash.yml` file. See <> for more info. *`pipelines.yml`*:: Contains the framework and instructions for running multiple pipelines in a single Logstash instance. See <> for more info. *`jvm.options`*:: Contains JVM configuration flags. Use this file to set initial and maximum values for total heap space. You can also use this file to set the locale for Logstash. Specify each flag on a separate line. All other settings in this file are considered expert settings. *`log4j2.properties`*:: Contains default settings for `log4j 2` library. See <> for more info.