Aadityas-MacBook:documents aadi2391$ logstash -f /Users/aadi2391/Desktop/Documents/logstash-7.2.0/config/logstash-Boston_Crimes.conf -t
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to /usr/local/Cellar/logstash-full/7.3.0/libexec/logs which is now configured via log4j2.properties
[2019-08-04T15:00:48,548][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-08-04T15:00:49,305][FATAL][logstash.runner ] The given configuration is invalid. Reason: Expected one of #, input, filter, output at line 18, column 11 (byte 541) after
[2019-08-04T15:00:49,322][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
what is the error now? syntax error has been eliminated but i cant understand this
Sending Logstash logs to /usr/local/Cellar/logstash-full/7.3.0/libexec/logs which is now configured via log4j2.properties
[2019-08-04T15:33:17,231][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-08-04T15:33:18,434][FATAL][logstash.runner ] The given configuration is invalid. Reason: Expected one of #, => at line 32, column 12 (byte 971) after output {
elasticsearch {
Hosts => ["localhost:9200"]
index => "Boston_crimes"
document_type => "records"
user => "elastic"
password => "changeme"
stdout
[2019-08-04T15:33:18,451][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
Aadityas-MacBook:documents aadi2391$ logstash -f /Users/aadi2391/Desktop/Documents/logstash-7.2.0/config/logstash-Boston_Crimes.conf -t
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to /usr/local/Cellar/logstash-full/7.3.0/libexec/logs which is now configured via log4j2.properties
[2019-08-04T15:56:53,175][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-08-04T15:56:55,910][INFO ][org.reflections.Reflections] Reflections took 73 ms to scan 1 urls, producing 19 keys and 39 values
[2019-08-04T15:56:56,823][ERROR][logstash.filters.csv ] Unknown setting 'seperator' for csv
[2019-08-04T15:56:56,844][FATAL][logstash.runner ] The given configuration is invalid. Reason: Something is wrong with your configuration.
[2019-08-04T15:56:56,860][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
I added all those things what was needed but still this small error persist. Below is the conf file for ur kind reference:
Aadityas-MacBook:documents aadi2391$ logstash -f /Users/aadi2391/Desktop/Documents/logstash-7.2.0/config/logstash-Boston_Crimes.conf -t
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to /usr/local/Cellar/logstash-full/7.3.0/libexec/logs which is now configured via log4j2.properties
[2019-08-04T19:39:24,275][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-08-04T19:39:28,112][INFO ][org.reflections.Reflections] Reflections took 215 ms to scan 1 urls, producing 19 keys and 39 values
[2019-08-04T19:39:29,077][ERROR][logstash.outputs.elasticsearch] Unknown setting 'Hosts' for elasticsearch
[2019-08-04T19:39:29,094][FATAL][logstash.runner ] The given configuration is invalid. Reason: Something is wrong with your configuration.
[2019-08-04T19:39:29,112][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.
Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.
Add --path.data to the command line used to start each instance and point the two instances at two different directories.
Alternatively, copy the contents of /etc/logstash to another directory, edit path.data in logstash.yml and then use --path.settings on the command line to point one instance at it.
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.