Hi, new-ish user here... I am able to get Filebeat 1.2.1 (same effect on 1.1.1) running on a Windows 2003 server from the console, no problem. It reads the logs, writes to its own log files, and places the registry file in the correct location.
However, when I run the service (installed via the powershell script) it APPEARS that the service starts and is processing data (i.e. I set it to debug mode and the CPU starts warming up a bit), and there is the typical network traffic. However, the mybeat.log file is NOT created, and there is no registry file created, as well.
As stated, the console version works fine, configs are fairly simple, but the service appears to start and run without logging or a registry file. I have set these to "normal" locations.
Thanks in advance!!!
Logfile attached:
#############
filebeat:
prospectors:
-
paths:
- C:\pb\apache-tomcat-7.0.22\logs\xbec_events.log*
- C:\pb\filebeat/logs\mybeat.log*
- C:\pb\apache-tomcat-7.0.22\logs\xbec_transactions.log*.log
- C:\pb\apache-tomcat-7.0.22\logs\catalina.log*
input_type: log
scan_frequency: 5s
harvester_buffer_size: 1024
spool_size: 1024
registry_file: "C:/pb/filebeat/registry/registry.file"
output:
logstash:
hosts: ["server0:9990", "server1:9990"]
worker: 1
loadbalance: true
### Console output
# console:
# Pretty print json event
#pretty: false
logging:
to_files: true
files:
path: "c:/pb/filebeat/logs"
name: mybeat.log
rotateeverybytes: 10485760 # = 10MB
level: info
###################