Hi everybody,
I'm trying to run LS in two user sessions of the same server.
No problem to run the first LS instance in the first session.
No problem to run the first AND second LS instances in the first session.
But impossible to run the first LS instance in the first session AND the second instance LS in the second session.
We do not use the same Config file or the same logs or data directory for each instance.
What's wrong?
Here is how i try to launch my second LS instance in the second user session :
bin\logstash.bat --path.config C:/logstash-6.2.1/CheckJobs/CheckJobs.conf --path.logs C:/CheckJobs/logs --path.data C:/CheckJobs/data --pipeline.id two --node.name TEST002
And here is the result shown in the Cmd.exe terminal :
C:\logstash-6.2.1>bin\logstash.bat --path.config C:/logstash-6.2.1/CheckJobs/CheckJobs.conf --path.logs C:/CheckJobs/logs --path.data C:/CheckJobs/data --pipeline.id two --node.name TEST002
Sending Logstash's logs to C:/CheckJobs/logs which is now configured via log4j2.properties
[2018-03-16T14:31:13,679][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/logstash-6.2.1/modules/fb_apache/configuration"}
[2018-03-16T14:31:13,710][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/logstash-6.2.1/modules/netflow/configuration"}
[2018-03-16T14:31:16,382][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"arcsight", :directory=>"C:/logstash-6.2.1/vendor/bundle/jruby/2.3.0/gems/x-pack-6.2.1-java/modules/arcsight/configuration"}
[2018-03-16T14:31:16,882][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-03-16T14:31:18,742][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.2.1"}
[2018-03-16T14:31:19,476][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9601}
[2018-03-16T14:31:23,085][WARN ][logstash.outputs.elasticsearch] You are using a deprecated config setting "document_type" set in elasticsearch. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. Document types are being deprecated in Elasticsearch 6.0, and removed entirely in 7.0. You should avoid this feature If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=>"document_type", :plugin=><LogStash::Outputs::ElasticSearch hosts=>[https://AGORA-KCE01.agora.france:9200/], bulk_path=>"/_xpack/monitoring/_bulk?system_id=logstash&system_api_version=2&interval=1s", manage_template=>false, document_type=>"%{[@metadata][document_type]}", sniffing=>false, user=>"logstash_system", password=>, ssl=>true, cacert=>"C:\logstash-6.2.1\config\certs\agora_ca.crt", id=>"6e5eb7cc0c5e9bbbf44268947f9b2ee2e7d58934971ccbbcca789b71d3feaf5e", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_b32aec4a-586e-44c7-a51f-7cef80189c80", enable_metric=>true, charset=>"UTF-8">, workers=>1, template_name=>"logstash", template_overwrite=>false, doc_as_upsert=>false, script_type=>"inline", script_lang=>"painless", script_var_name=>"event", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1, action=>"index", ssl_certificate_verification=>true, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false>}
[2018-03-16T14:31:23,288][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>".monitoring-logstash", "pipeline.workers"=>1, "pipeline.batch.size"=>2, "pipeline.batch.delay"=>50}
[2018-03-16T14:31:24,273][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://logstash_system:xxxxxx@AGORA-KCE01.agora.france:9200/]}}
[2018-03-16T14:31:24,335][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://logstash_system:xxxxxx@AGORA-KCE01.agora.france:9200/, :path=>"/"}
[2018-03-16T14:31:24,992][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"https://logstash_system:xxxxxx@AGORA-KCE01.agora.france:9200/"}
[2018-03-16T14:31:25,179][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>nil}
[2018-03-16T14:31:25,195][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the type
event field won't be used to determine the document _type {:es_version=>6}
[2018-03-16T14:31:25,257][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["https://AGORA-KCE01.agora.france:9200/"]}
[2018-03-16T14:31:25,492][INFO ][logstash.licensechecker.licensereader] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://logstash_system:xxxxxx@AGORA-KCE01.agora.france:9200/]}}
[2018-03-16T14:31:25,492][INFO ][logstash.licensechecker.licensereader] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://logstash_system:xxxxxx@AGORA-KCE01.agora.france:9200/, :path=>"/"}
[2018-03-16T14:31:25,554][WARN ][logstash.licensechecker.licensereader] Restored connection to ES instance {:url=>"https://logstash_system:xxxxxx@AGORA-KCE01.agora.france:9200/"}
[2018-03-16T14:31:25,570][INFO ][logstash.licensechecker.licensereader] ES Output version determined {:es_version=>nil}
[2018-03-16T14:31:25,570][WARN ][logstash.licensechecker.licensereader] Detected a 6.x and above cluster: the type
event field won't be used to determine the document _type {:es_version=>6}
[2018-03-16T14:31:25,867][INFO ][logstash.pipeline ] Pipeline started succesfully {:pipeline_id=>".monitoring-logstash", :thread=>"#<Thread:0x217dbb87 run>"}
[2018-03-16T14:31:26,070][INFO ][logstash.agent ] Pipelines running {:count=>1, :pipelines=>[".monitoring-logstash"]}
[2018-03-16T14:31:26,101][INFO ][logstash.inputs.metrics ] Monitoring License OK
[2018-03-16T14:31:28,295][INFO ][logstash.pipeline ] Pipeline has terminated {:pipeline_id=>".monitoring-logstash", :thread=>"#<Thread:0x217dbb87 run>"}
Could you help me?
Best regards,
Loïc --