System module is enabled, but syslogs are logging with 7hrs delay. Adjusted var.convert_timezone: true in /etc/filebeat/modules.d/system.yml, still no luck. Can someone take a look into it.
/etc/filebeat/modules.d/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: true
# 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: true
Filebeat_log:
|2018-09-21T09:43:51.260-0700|INFO|[monitoring]|log/log.go:124|Non-zero metrics in the last 30s|{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":1200,"time":{"ms":1204}},"total":{"ticks":10000,"time":{"ms":10012},"value":10000},"user":{"ticks":8800,"time":{"ms":8808}}},"info":{"ephemeral_id":"edceef24-4069-4d3a-a648-f7947d9927bf","uptime":{"ms":30009}},"memstats":{"gc_next":11220912,"memory_alloc":5683112,"memory_total":830369184,"rss":58142720}},"filebeat":{"events":{"added":147363,"done":147363},"harvester":{"open_files":18,"running":18,"started":18}},"libbeat":{"config":{"module":{"running":7,"starts":7},"reloads":1},"output":{"events":{"acked":146558,"batches":2936,"total":146558},"read":{"bytes":2045860},"type":"elasticsearch","write":{"bytes":87199374}},"pipeline":{"clients":17,"events":{"active":0,"filtered":805,"published":146558,"retry":50,"total":147363},"queue":{"acked":146558}}},"registrar":{"states":{"current":17,"update":147363},"writes":{"success":2923,"total":2923}},"system":{"cpu":{"cores":2},"load":{"1":0.69,"15":0.18,"5":0.3,"norm":{"1":0.345,"15":0.09,"5":0.15}}}}}}|
|---|---|---|---|---|---|
|2018-09-21T09:44:21.259-0700|INFO|[monitoring]|log/log.go:124|Non-zero metrics in the last 30s|{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":1210,"time":{"ms":8}},"total":{"ticks":10030,"time":{"ms":24},"value":10030},"user":{"ticks":8820,"time":{"ms":16}}},"info":{"ephemeral_id":"edceef24-4069-4d3a-a648-f7947d9927bf","uptime":{"ms":60009}},"memstats":{"gc_next":11220912,"memory_alloc":7146264,"memory_total":831832336}},"filebeat":{"events":{"added":4,"done":4},"harvester":{"open_files":18,"running":18}},"libbeat":{"config":{"module":{"running":7}},"output":{"events":{"acked":4,"batches":4,"total":4},"read":{"bytes":1374},"write":{"bytes":4653}},"pipeline":{"clients":17,"events":{"active":0,"published":4,"total":4},"queue":{"acked":4}}},"registrar":{"states":{"current":17,"update":4},"writes":{"success":4,"total":4}},"system":{"load":{"1":0.42,"15":0.17,"5":0.27,"norm":{"1":0.21,"15":0.085,"5":0.135}}}}}}|
|2018-09-21T09:44:51.259-0700|INFO|[monitoring]|log/log.go:124|Non-zero metrics in the last 30s|{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":1210},"total":{"ticks":10060,"time":{"ms":28},"value":10060},"user":{"ticks":8850,"time":{"ms":28}}},"info":{"ephemeral_id":"edceef24-4069-4d3a-a648-f7947d9927bf","uptime":{"ms":90009}},"memstats":{"gc_next":11220912,"memory_alloc":9304584,"memory_total":833990656}},"filebeat":{"events":{"added":11,"done":11},"harvester":{"open_files":18,"running":18}},"libbeat":{"config":{"module":{"running":7}},"output":{"events":{"acked":11,"batches":7,"total":11},"read":{"bytes":2454},"write":{"bytes":10085}},"pipeline":{"clients":17,"events":{"active":0,"published":11,"total":11},"queue":{"acked":11}}},"registrar":{"states":{"current":17,"update":11},"writes":{"success":7,"total":7}},"system":{"load":{"1":0.25,"15":0.17,"5":0.24,"norm":{"1":0.125,"15":0.085,"5":0.12}}}}}}|
|2018-09-21T09:45:21.259-0700|INFO|[monitoring]|log/log.go:124|Non-zero metrics in the last 30s|{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":1210,"time":{"ms":4}},"total":{"ticks":10090,"time":{"ms":32},"value":10090},"user":{"ticks":8880,"time":{"ms":28}}},"info":{"ephemeral_id":"edceef24-4069-4d3a-a648-f7947d9927bf","uptime":{"ms":120008}},"memstats":{"gc_next":11219376,"memory_alloc":6261536,"memory_total":835962168}},"filebeat":{"events":{"added":12,"done":12},"harvester":{"open_files":18,"running":18}},"libbeat":{"config":{"module":{"running":7}},"output":{"events":{"acked":12,"batches":6,"total":12},"read":{"bytes":2125},"write":{"bytes":9585}},"pipeline":{"clients":17,"events":{"active":0,"published":12,"total":12},"queue":{"acked":12}}},"registrar":{"states":{"current":17,"update":12},"writes":{"success":6,"total":6}},"system":{"load":{"1":0.15,"15":0.16,"5":0.22,"norm":{"1":0.075,"15":0.08,"5":0.11}}}}}}|
I see auth logs are coming as expected with proper timestamp.