Hello,
I am working in Windows with Filebeat --> Logstash --> Elasticsearch --> kibana
I am seeing below error while start Filebeat : filebeat.exe -c filebeat.yml -d *
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x526e0a]
goroutine 16 [running]:
github.com/elastic/beats/filebeat/harvester.(*Harvester).Harvest.func1(0x12b48400)
/go/src/github.com/elastic/beats/filebeat/harvester/log.go:91 +0x2a
github.com/elastic/beats/filebeat/harvester.(*Harvester).Harvest(0x12b48400)
/go/src/github.com/elastic/beats/filebeat/harvester/log.go:110 +0x2b8
created by github.com/elastic/beats/filebeat/harvester.(*Harvester).Start
/go/src/github.com/elastic/beats/filebeat/harvester/harvester.go:80 +0x32
Configurations: filebeat.yml
filebeat:
prospectors:
-
paths:
- D:\basefarm\logs\myserver.log
encoding: utf-8
input_type: log
document_type: testApp
multiline:
pattern: ^%{TIMESTAMP_ISO8601}
negate: true
match: after
max_lines: 500
timeout: 5s
tail_files: false
registry_file: "C:/ProgramData/filebeat/registry"
output:
logstash:
hosts: ["localhost:5044"]
worker: 2
index: filebeat
shipper:
logging:
to_files: true
files:
path: D:/elk/beats/filebeat-1.1.0/log
name: filebeat.log
selectors: ["*"]
level: debug
Logstash config file
input{
beats{
port => 5044
}
}
output {
elasticsearch {
hosts => "localhost:9200"
manage_template => true
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
I am able to push topbeat data with same configuration but filebeat have issue to run.... Please help me, I want push the log data from different machines to logstash through filebeat