logstash相关文件的路径(rpm)
https://www.elastic.co/guide/en/logstash/7.6/dir-layout.html
The Debian package and the RPM package each place config files, logs, and the settings files in the appropriate locations for the system:
Type | Description | Default Location | Setting |
---|---|---|---|
home | Home directory of the Logstash installation. |
|
|
bin | Binary scripts including |
|
|
settings | Configuration files, including |
|
|
conf | Logstash pipeline configuration files |
|
|
logs | Log files |
|
|
plugins | Local, non Ruby-Gem plugin files. Each plugin is contained in a subdirectory. Recommended for development only. |
|
|
data | Data files used by logstash and its plugins for any persistence needs. |
|
|
logstash启动指令(rpm)
https://www.elastic.co/guide/en/logstash/7.6/running-logstash.html
Distributions like Debian Jessie, Ubuntu 15.10+, and many of the SUSE derivatives use systemd and the systemctl
command to start and stop services. Logstash places the systemd unit files in /etc/systemd/system
for both deb and rpm. After installing the package, you can start up Logstash with:
sudo systemctl start/stop/restart/status logstash.service
Elasticsearch启动指令(rpm)
systemctl start elasticsearch.service
Elasticsearch配置文件路径(rpm)
Elasticsearch has three configuration files:
elasticsearch.yml
for configuring Elasticsearchjvm.options
for configuring Elasticsearch JVM settingslog4j2.properties
for configuring Elasticsearch logging
These files are located in the config directory, whose default location depends on whether or not the installation is from an archive distribution (tar.gz
or zip
) or a package distribution (Debian or RPM packages).
the config directory location defaults to /etc/elasticsearch
.