elktail: Elktail doesn't work with elasticsearch 5

./elktail -ssh elasticsearch.host
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x40aa7b]

goroutine 1 [running]:
panic(0x932600, 0xc82000e120)
	/usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
main.NewSSHTunnelFromHostStrings(0xc8200bdbc0, 0x1a, 0xa5aac7, 0xe, 0x1)
	/Users/knesek/git/go-workspace/src/github.io/knes1/elktail/sshtunnel.go:109 +0xa9b
main.main.func1(0xc820077680)
	/Users/knesek/git/go-workspace/src/github.io/knes1/elktail/elktail.go:378 +0x958
github.com/codegangsta/cli.(*App).Run(0xc820077560, 0xc82000a270, 0x3, 0x3, 0x0, 0x0)
	/Users/knesek/git/go-workspace/src/github.com/codegangsta/cli/app.go:180 +0x104c
main.main()
	/Users/knesek/git/go-workspace/src/github.io/knes1/elktail/elktail.go:424 +0x16f

Downloaded binary from releases, -ssh doesn’t work.

Running on Ubuntu 16.04

Attempting to run elktalk on the ES node itself gives an error about not being able to connect either, but a curl works.

ERROR: Could not connect Elasticsearch client to http://127.0.0.1:9200: no Elasticsearch node available.
# curl 127.0.0.1:9200
{
  "name" : "suq-elastic2",
  "cluster_name" : "suq-es-1",
  "cluster_uuid" : "XXXXXXXX",
  "version" : {
    "number" : "5.0.0",
    "build_hash" : "253032b",
    "build_date" : "2016-10-26T05:11:34.737Z",
    "build_snapshot" : false,
    "lucene_version" : "6.2.0"
  },
  "tagline" : "You Know, for Search"
}

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 3
  • Comments: 23 (10 by maintainers)

Most upvoted comments

For now, there’s a fork which works with version 5: https://github.com/mnbbrown/elktail I started work to create one version of elktail that would work with all versions of elastic, however it’s proving to be challenging. Now I’m changing the decision and there will be most likely 2 versions elktail soon. One for elastic versions <=2 and one for elastic versions >2.