Hi everyone,
i was having trouble with file locks with filebeat 1.0.0-beta4. Thus, i updated to 1.0.1 but now my Logstash server does not receive any logs anymore...
My setting:
I am running ELK on a debian server and filebeats on a bunch of windows boxes (windows server 2012 R2)
Before the update my filebeats config looked like this:
filebeat:
# List of prospectors to fetch data.
prospectors:
-
paths:
- d:\ivu\fleet.data.adc\log\console.log
fields:
log_type: ADC console
ignore_older: 1h
force_close_files: true
spool_size: 1024
idle_timeout: 5s
registry_file: "C:/ProgramData/filebeat/registry"
output:
logstash:
enabled: true
hosts: ["IVU-MONITOR:5000"]
tls:
disabled: true
shipper:
name: "IVU-FLEET"
After the update to 1.0.1 i realized that the config file syntax slightly changed - thus, i changed my config to:
############################# Filebeat ######################################
filebeat:
# List of prospectors to fetch data.
prospectors:
-
paths:
- d:\ivu\fleet.data.adc\log\console.log
fields:
log_type: ADC console
ignore_older: 1h
force_close_files: true
spool_size: 1024
idle_timeout: 5s
registry_file: "C:/ProgramData/filebeat/registry"
output:
logstash:
hosts: ["IVU-MONITOR:5000"]
shipper:
name: "IVU-FLEET"
(sorry for those long snippets, i just wanna make sure my problems are not caused by any typos in my config)
If i start filebeats in command line (filebeat.exe -c filebeat.yml -e -v) the output looks fine to me:
2016/02/02 17:12:40.655667 geolite.go:24: INFO GeoIP disabled: No paths were set under output.geoip.paths
2016/02/02 17:12:40.664696 outputs.go:111: INFO Activated logstash as output plugin.
2016/02/02 17:12:40.665697 publish.go:249: INFO Publisher name: IVU-FLEET
2016/02/02 17:12:40.670678 beat.go:107: INFO Init Beat: filebeat; Version: 1.0.1
2016/02/02 17:12:40.674681 beat.go:133: INFO filebeat sucessfully setup. Start running.
2016/02/02 17:12:40.674681 registrar.go:66: INFO Registry file set to: C:\ProgramData\filebeat\registry
2016/02/02 17:12:40.676682 registrar.go:76: INFO Loading registrar data from C:\ProgramData\filebeat\registry
2016/02/02 17:12:40.678685 spooler.go:77: INFO Starting spooler: spool_size: 1024; idle_timeout: 5s
2016/02/02 17:12:40.681686 log.go:62: INFO Harvester started for file: d:\ivu\fleet\server\bon5\jboss-4.2.3.GA\server\bon5-server\log\import_version_20160129_135758_2.log
2016/02/02 17:12:40.682687 log.go:62: INFO Harvester started for file: d:\ivu\fleet\server\bon5\jboss-4.2.3.GA\server\bon5-server\log\import_version_20160201_153252_2.log
2016/02/02 17:12:40.682687 log.go:62: INFO Harvester started for file: d:\ivu\fleet\server\bon5\jboss-4.2.3.GA\server\bon5-server\log\import_version_20160129_140258_3.log
2016/02/02 17:12:40.682687 log.go:62: INFO Harvester started for file: d:\ivu\fleet\server\bon5\jboss-4.2.3.GA\server\bon5-server\log\import_version_20160201_153752_3.log
2016/02/02 17:12:40.687690 log.go:62: INFO Harvester started for file: d:\ivu\fleet\server\bon2-STO\wrapperbon.log
2016/02/02 17:12:40.688691 log.go:62: INFO Harvester started for file: d:\ivu\fleet\server\bon2-IVU\wrapperbon.log
2016/02/02 17:12:40.691693 crawler.go:78: INFO All prospectors initialised with 7 states to persist
2016/02/02 17:12:40.692694 registrar.go:83: INFO Starting Registrar
2016/02/02 17:12:40.692694 filebeat.go:122: INFO Start sending events to output
2016/02/02 17:12:40.691693 log.go:62: INFO Harvester started for file: d:\ivu\fleet\server\bon5\jboss-4.2.3.GA\server\bon5-server\log\server.log
2016/02/02 17:12:42.382666 filebeat.go:134: INFO Events sent: 1024
2016/02/02 17:12:42.393641 registrar.go:157: INFO Registry file updated. 7 states written.
2016/02/02 17:12:48.316098 filebeat.go:134: INFO Events sent: 85
2016/02/02 17:12:48.326080 registrar.go:157: INFO Registry file updated. 7 states written.
2016/02/02 17:12:53.919972 filebeat.go:134: INFO Events sent: 203
2016/02/02 17:12:53.929934 registrar.go:157: INFO Registry file updated. 7 states written.
2016/02/02 17:12:58.244103 filebeat.go:134: INFO Events sent: 14
2016/02/02 17:12:58.252138 registrar.go:157: INFO Registry file updated. 7 states written.
However, no data arrives at my logstash server
Any ideas?
Thanks a lot in advance!
Cheers,
Max