Skip to content

Instantly share code, notes, and snippets.

@KushalP
Created January 24, 2014 16:58
Show Gist options
  • Save KushalP/8601408 to your computer and use it in GitHub Desktop.
Save KushalP/8601408 to your computer and use it in GitHub Desktop.
Stacktrace when trying to run https://github.com/mozilla-services/heka/compare/dev...features;issue_372 are building using `hekad -config=config.toml`
[hekad]
decoder_poolsize = 5
max_message_loops = 8
max_process_inject = 10
max_timer_inject = 20
maxprocs = 4
plugin_chansize = 10
poolsize = 200
[somehekalogstreamstuff]
oldest_duration = "2s"
type = "LogstreamerInput"
log_directory = "/tmp/logs/"
#file_match = '/*.log'
file_match = '/(?P<Year>\d+)/(?P<Month>\d+)/(?P<NginxType>\w+)\.log.*(\.(?P<Seq>\d+))?'
priority = ["Year", "Month", "^Seq"]
#priority = ["Year", "Month", "Day", "^Seq"]
differentiator = ["nginx-", "NginxType", "-", "Month"]
[Output]
type = "LogOutput"
message_matcher = "TRUE"
payload_only = false
2014/01/24 16:15:07 Loading: [somehekalogstreamstuff]
panic: runtime error: assignment to entry in nil map
goroutine 1 [running]:
github.com/mozilla-services/heka/plugins/logstreamer.(*LogstreamerInput).Init(0xc2001058f0, 0x720640, 0xc2000fb700, 0x0, 0x0, ...)
/home/tom/vagrant/logstash/heka_issue_372/build/heka/src/github.com/mozilla-services/heka/plugins/logstreamer/logstreamer_input.go:142 +0x685
github.com/mozilla-services/heka/pipeline.(*PipelineConfig).loadSection(0xc200154100, 0xc20012b816, 0x16, 0x72c2a0, 0xc20013b4c0, ...)
/home/tom/vagrant/logstash/heka_issue_372/build/heka/src/github.com/mozilla-services/heka/pipeline/config.go:540 +0x6c3
github.com/mozilla-services/heka/pipeline.(*PipelineConfig).LoadFromConfigFile(0xc200154100, 0x7ffffdd2c0d9, 0x29, 0x0, 0x0, ...)
/home/tom/vagrant/logstash/heka_issue_372/build/heka/src/github.com/mozilla-services/heka/pipeline/config.go:658 +0x5e7
main.main()
/home/tom/vagrant/logstash/heka_issue_372/build/heka/src/github.com/mozilla-services/heka/cmd/hekad/main.go:150 +0x942
goroutine 2 [syscall]:
goroutine 4 [syscall]:
os/signal.loop()
/usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1c
created by os/signal.init·1
/usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment