我使用的是用yum部署的logstash,并用initctl start logstash启动服务,
希望在配置ES集群的时候 使用环境变量引入参数,于是在
/etc/default/logstash 文件中新增:
ES_PATH="['191.168.1.201:9200', '191.168.1.202:9200', '191.168.1.23:9200', '191.168.1.26:9200', '191.168.1.27:9200']"
但是启动的时候总是报语法错误:
[2018-07-02T10:16:36,503][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"Java::JavaNet::URISyntaxException", :message=>"Illegal character in scheme name at index 0: ['191.168.1.201:9200', '191.168.1.202:9200', '191.168.1.23:9200', '191.168.1.26:9200', '191.168.1.27:9200']", :backtrace=>["java.net.URI$Parser.fail(java/net/URI.java:2848)", "java.net.URI$Parser.checkChars(java/net/URI.java:3021)", "java.net.URI$Parser.checkChar(java/net/URI.java:3031)", "java.net.URI$Parser.parse(java/net/URI.java:3047)", "java.net.URI.<init>(java/net/URI.java:588)",
是哪里配置的不对了吗?
希望在配置ES集群的时候 使用环境变量引入参数,于是在
/etc/default/logstash 文件中新增:
ES_PATH="['191.168.1.201:9200', '191.168.1.202:9200', '191.168.1.23:9200', '191.168.1.26:9200', '191.168.1.27:9200']"
但是启动的时候总是报语法错误:
[2018-07-02T10:16:36,503][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"Java::JavaNet::URISyntaxException", :message=>"Illegal character in scheme name at index 0: ['191.168.1.201:9200', '191.168.1.202:9200', '191.168.1.23:9200', '191.168.1.26:9200', '191.168.1.27:9200']", :backtrace=>["java.net.URI$Parser.fail(java/net/URI.java:2848)", "java.net.URI$Parser.checkChars(java/net/URI.java:3021)", "java.net.URI$Parser.checkChar(java/net/URI.java:3031)", "java.net.URI$Parser.parse(java/net/URI.java:3047)", "java.net.URI.<init>(java/net/URI.java:588)",
是哪里配置的不对了吗?
0 个回复