Hello, I'm having several issues trying to execute it as a service. Using the unzipped files everything is OK but when I copy the configuration file into the conf.d/ directory I get always the same error:
[2017-01-07T02:26:22,267][INFO ][logstash.runner ] Created final config by merging config string and config path {:path=>"/etc/logstash/conf.d"}
[2017-01-07T02:26:22,279][FATAL][logstash.runner ] The given configuration is invalid. Reason: Expected one of #, input, filter, output at line 1, column 1 (byte 1) after
There are no other files in the conf.d folder. The java version is Oracle Java 1.8 downloaded using apt-get.
I'm quite confused because the stand-alone jar explicitly indicates that the configuration file is OK and runs without problems. I suspect that it could be related with file permissions...
The problem persists, even in different systems... I'm doing some tests using my Mac and I'm also having issues but this time between Filebeats and Logstash....
Is it possible that the problems are related with java-8? I'm not using the openjdk...
nope there is no problem with jdk1.8, its is probably something you are doing or assuming is happening. There is probably a hidden file or your looking in the wrong location for the config file
you could try running a strace on logstash to see what files it is opening
strace -e open -ff /opt/logstash/bin/logstash -f /etc/logstash/conf.d
Has anything been changed in the directory structure for logstash from the time when /etc/sysconfig had logstash file?
I'm unable to locate /etc/sysconfig/logstash. I do see elasticsearch in the directory but not logstash.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.