I'm following the Getting Started with Logstash tutorial (https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html) and am having trouble running Filebeat.
My filebeat.yml file looks like this:
filebeat.prospectors:
- type: log
paths:
- "/Users/myusername/Documents/Elastic/logstash-6.5.4/logstash-tutorial.log"
output:
logstash:
hosts: ["localhost:5044"]
I get an error when I run the following command:
sudo ./filebeat -e -c filebeat.yml -d "publish"
The error looks like this:
1970/01/01 00:00:00.000000 geolite.go:24: INFO GeoIP disabled: No paths were set under output.geoip.paths
fatal error: unexpected signal during runtime execution
[signal 0xa code=0x2 addr=0xf7c4f1c57c pc=0x93dd0]
goroutine 1 [running]:
runtime.throw(0x5d2100, 0x2a)
/usr/local/go/src/runtime/panic.go:527 +0x90 fp=0xc8200b2b58 sp=0xc8200b2b40
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a fp=0xc8200b2ba8 sp=0xc8200b2b58
sync.(*Pool).Get(0x850da0, 0x0, 0x0)
/usr/local/go/src/sync/pool.go:101 +0x40 fp=0xc8200b2bf8 sp=0xc8200b2ba8
fmt.newPrinter(0xc8200b2d30)
/usr/local/go/src/fmt/print.go:133 +0x27 fp=0xc8200b2c38 sp=0xc8200b2bf8
fmt.Sprintf(0xc8200b2d30, 0x1b, 0xc8200b2fe0, 0x1, 0x1, 0x0, 0x0)
/usr/local/go/src/fmt/print.go:202 +0x2b fp=0xc8200b2c88 sp=0xc8200b2c38
github.com/elastic/beats/libbeat/logp.send(0x4, 0x6, 0x531788, 0x5, 0x585f10, 0x16, 0xc8200b2fe0, 0x1, 0x1)
/go/src/github.com/elastic/beats/libbeat/logp/log.go:59 +0x164 fp=0xc8200b2d80 sp=0xc8200b2c88
github.com/elastic/beats/libbeat/logp.msg(0x6, 0x531788, 0x5, 0x585f10, 0x16, 0xc8200b2fe0, 0x1, 0x1)
/go/src/github.com/elastic/beats/libbeat/logp/log.go:84 +0x82 fp=0xc8200b2dd0 sp=0xc8200b2d80
github.com/elastic/beats/libbeat/logp.Info(0x585f10, 0x16, 0xc8200b2fe0, 0x1, 0x1)
/go/src/github.com/elastic/beats/libbeat/logp/log.go:89 +0x67 fp=0xc8200b2e18 sp=0xc8200b2dd0
github.com/elastic/beats/libbeat/outputs/logstash.(*logstash).init(0xc820108840, 0x0, 0x0, 0x0, 0x0, 0xc820117240, 0x1, 0x1, 0x0, 0x0, ...)
/go/src/github.com/elastic/beats/libbeat/outputs/logstash/logstash.go:106 +0x372 fp=0xc8200b3028 sp=0xc8200b2e18
github.com/elastic/beats/libbeat/outputs/logstash.logstashOutputPlugin.NewOutput(0xc820120a00, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/elastic/beats/libbeat/outputs/logstash/logstash.go:29 +0xa9 fp=0xc8200b3198 sp=0xc8200b3028
github.com/elastic/beats/libbeat/outputs/logstash.(*logstashOutputPlugin).NewOutput(0x876dc0, 0xc820120a00, 0x0, 0x0, 0x0, 0x0, 0x0)
<autogenerated>:27 +0xb9 fp=0xc8200b31d0 sp=0xc8200b3198
github.com/elastic/beats/libbeat/outputs.InitOutputs(0x5452c0, 0x8, 0xc82010c630, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/elastic/beats/libbeat/outputs/outputs.go:111 +0x288 fp=0xc8200b34a0 sp=0xc8200b31d0
github.com/elastic/beats/libbeat/publisher.(*PublisherType).init(0xc820134100, 0x5452c0, 0x8, 0xc82010c630, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/elastic/beats/libbeat/publisher/publish.go:221 +0x287 fp=0xc8200b3bf0 sp=0xc8200b34a0
github.com/elastic/beats/libbeat/publisher.New(0x5452c0, 0x8, 0xc82010c630, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/elastic/beats/libbeat/publisher/publish.go:185 +0x9a fp=0xc8200b3c88 sp=0xc8200b3bf0
github.com/elastic/beats/libbeat/beat.(*Beat).LoadConfig(0xc82011c960)
/go/src/github.com/elastic/beats/libbeat/beat/beat.go:137 +0x333 fp=0xc8200b3de0 sp=0xc8200b3c88
github.com/elastic/beats/libbeat/beat.Run(0x5452c0, 0x8, 0x530308, 0x5, 0xc60580, 0xc820108500, 0xc820116a20)
/go/src/github.com/elastic/beats/libbeat/beat/beat.go:75 +0x13d fp=0xc8200b3ee8 sp=0xc8200b3de0
main.main()
/go/src/github.com/elastic/beats/filebeat/main.go:21 +0x9d fp=0xc8200b3f40 sp=0xc8200b3ee8
runtime.main()
/usr/local/go/src/runtime/proc.go:111 +0x2b0 fp=0xc8200b3f90 sp=0xc8200b3f40
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc8200b3f98 sp=0xc8200b3f90
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x37