I've installed Logstash on Amazon Linux 64 bit server. I've installed java version "1.8.0_191" on the same server and followed following steps:
Download and install the public signing key:
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Add the following in your
/etc/yum.repos.d/
directory in a file with a.repo
suffix, for examplelogstash.repo
[logstash-6.x] name=Elastic repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
And your repository is ready for use. You can install it with:
sudo yum install logstash
But after that when ever I tried to start logstash or see what commands available using --help option, Im getting following error until I specify path.settings parameter:
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Can anyone help me with the installation steps such that I don't need to specify path.settings parameter always? Also, I'm trying to install logstash 6.2 on a different server than Elasticsearch 6.2. But It is always installing 6.4 instead of 6.2.