There are 2 issues I'm encountering using filebeat on my Mac. Older versions of filebeat, elastic, and Mac OS worked, but I've decom'd those servers so can't do any direct comparisons.
filebeat version 6.5.0 (amd64), libbeat 6.5.0 [ff5b9b3db49856a25b5eda133b6997f2157a4910 built 2018-11-09 17:55:54 +0000 UTC]
Issue 1: System module doesn't send anything
Enabling the default system.yml
- module: system
# Syslog
syslog:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:
# Convert the timestamp to UTC. Requires Elasticsearch >= 6.1.
#var.convert_timezone: false
# Authorization logs
auth:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:
# Convert the timestamp to UTC. Requires Elasticsearch >= 6.1.
#var.convert_timezone: false
And a filebeat.yml that has been modified as follows (excerpts):
filebeat.inputs:
- type: log
enabled: false
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: true
reload.period: 60s
filebeat.modules:
No log messages are ever sent. Tailing system.log file on that machine shows messages correctly appearing in it.
When running filebeat from the console (sudo ./filebeat -e -v) there are lines that show it has found the log, but then nothing.
2018-11-24T15:44:47.085-0800 INFO log/harvester.go:254 Harvester started for file: /var/log/system.log
Issue 2: Using Input Type Log system.log doesn't get sent as parsed syslog entries
With the default filebeat.yml that includes
filebeat.inputs:
type: log enabled: true
paths: - /var/log/*.log
I get tons of messages in elastic, as I'd expect.
But, the messages are not parsed they just show up with prospector.type: log, input.type: log, message: .
The old system.syslog.pid, .message, .program, .hostnames don't ever get added.
Where have I taken a wrong turn?