I am trying out semantic logger with elasticsearch and kibana. Followed the guides, but I am getting an error saying I can't write to appender due to URI which is wrong, but I am not sure how to fix it.
2017-02-14 10:53:42.266409 E [11094:SemanticLogger::AppenderThread] SemanticLogger -- Appender thread: Failed to log to appender: #<SemanticLogger::Appender::Elasticsearch:0x007fb61dcc10e8 @index="semantic_logger", @type="log", @url="http://localhost:9200/", @ssl_options=nil, @username=nil, @password=nil, @compress=false, @open_timeout=2.0, @read_timeout=1.0, @continue_timeout=1.0, @header={"Accept"=>"application/json", "Content-Type"=>"application/json", "Connection"=>"keep-alive", "Keep-Alive"=>"300"}, @server="localhost", @port=9200, @path="/", @http=#<Net::HTTP localhost:9200 open=true>, @formatter=#<SemanticLogger::Formatters::Json:0x007fb61dcfe1f0 @precision=6, @time_format=:iso_8601, @log_host=true, @log_application=true>, @application=nil, @host=nil, @filter=nil, @name="SemanticLogger::Appender::Elasticsearch", @level_index=nil, @level=nil> -- Exception: URI::InvalidURIError: bad URI(is not URI?): http://localhost:9200semantic_logger-2017.02.14/log
Using semantic_logger 3.4.1
Using rails_semantic_logger 3.4.1
I am using Rails and my semantic_logger.rb inside initializers folder looks like:
Seems like the slash is missing in the URI, but I've added it in the config, but still, didn't help.
EDIT 2: ok, apparently it has been fixed in the release candidate.