Hi everyone, I tried to load the JSON file in elastic search through Logstash in windows10.
I show you my "MATTEOLOGSTASHCONF.conf" file:
input {
file {
start_position => "beginning"
path => "C:/Users/matte/Desktop/Magistrale/"2 ANNO"/TESI/query_2.json"
sincedb_path => "/dev/null"
}
}
output {
elasticsearch {
hosts => "localhost:9200"
index => "Mqattep"
document_type => "doc_tty"
}
stdout{}
}
Following, this is my command line in cmd:
logstash -f C:/Users/matte/Desktop/TESI/logstash-7.11.1/config/MATTEOLOGSTASHCONF.conf
And this is what the program returns:
Using JAVA_HOME defined java: C:\Program Files\Java\jdk-12.0.1
WARNING, using JAVA_HOME while Logstash distribution comes with a bundled JDK
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to C:/Users/matte/Desktop/TESI/logstash-7.11.1/logs which is now configured via log4j2.properties
[2021-03-01T09:50:50,261][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.11.1", "jruby.version"=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc Java HotSpot(TM) 64-Bit Server VM 12.0.1+12 on 12.0.1+12 +indy +jit [mswin32-x86_64]"}
[2021-03-01T09:50:50,544][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2021-03-01T09:50:51,159][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2021-03-01T09:50:51,667][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2021-03-01T09:50:56,380][INFO ][logstash.runner ] Logstash shut down.
[2021-03-01T09:50:56,418][FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.13.0.jar:?]
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.13.0.jar:?]
at C_3a_.Users.matte.Desktop.TESI.logstash_minus_7_dot_11_dot_1.lib.bootstrap.environment.(C:\Users\matte\Desktop\TESI\logstash-7.11.1\lib\bootstrap\environment.rb:89) ~[?:?]
What are my errors?
Also, I tried to write the pipelines.yml:
pipeline.id: test
pipeline.workers: 1
pipeline.batch.size: 500
queue.type: persisted
queue.max_bytes: 1gb # Default = 1024mb
queue.drain: true
pipeline.output.workers: 1
path.config: "C:/Users/matte/Desktop/TESI/logstash-7.11.1/config/MATTEOLOGSTASHCONF.conf"
I run the command line both with pipelines.yml file and without it.