We should investigate the ERROR we see regarding json.
We can but i don't have a lot of power on this. Maybe I can temporary remove filebeat inputs of log types to see if the problem is linked
Also could you share Metricbeat's configuration?
metricbeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
setup.kibana:
host: "http://SKIB01.groups.local:5601"
username: "######"
password: "######"
output.logstash:
hosts: ["slog02.groups.local:5046"]
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
logging.level: info
What kind of metrics are you trying to collect? With what modules? (If no Modules, then try to enable system module)
The system's module is the only enabled module with the default configuration :
- module: system
period: 10s
metricsets:
- cpu
- memory
- network
- process
- process_summary
- socket_summary
process.include_top_n:
by_cpu: 5 # include top 5 processes by CPU
by_memory: 5 # include top 5 processes by memory
- module: system
period: 1m
metricsets:
- filesystem
- fsstat
processors:
- drop_event.when.regexp:
system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)'
- module: system
period: 15m
metricsets:
- uptime
Last but not least, I would suggest you enable console output
and verify that events are being created by Metricbeat.
I setup the console output for Metricbeat and filebeat. I removed output.logstash from the original configuration file . You can find the results below :
Filebeat :
2020-02-03T14:20:17.808+0100 INFO instance/beat.go:606 Home path: [C:\filebeat-7.2.0] Config path: [C:\filebeat-7.2.0] Data path: [C:\filebeat-7.2.0\data] Logs path: [C:\filebeat-7.2.0\logs]
2020-02-03T14:20:17.817+0100 INFO instance/beat.go:614 Beat ID: 0ff5d9db-48be-4a8c-88de-91572785c119
2020-02-03T14:20:17.824+0100 INFO [beat] instance/beat.go:902 Beat info {"system_info": {"beat": {"path": {"config": "C:\\filebeat-7.2.0", "data": "C:\\filebeat-7.2.0\\data", "home": "C:\\filebeat-7.2.0", "logs": "C:\\filebeat-7.2.0\\logs"}, "type": "filebeat", "uuid": "0ff5d9db-48be-4a8c-88de-91572785c119"}}}
2020-02-03T14:20:17.824+0100 INFO [beat] instance/beat.go:911 Build info {"system_info": {"build": {"commit": "9ba65d864ca37cd32c25b980dbb4020975288fc0", "libbeat": "7.2.0", "time": "2019-06-20T15:05:29.000Z", "version": "7.2.0"}}}
2020-02-03T14:20:17.824+0100 INFO [beat] instance/beat.go:914 Go runtime info {"system_info": {"go": {"os":"windows","arch":"amd64","max_procs":4,"version":"go1.12.4"}}}
2020-02-03T14:20:17.828+0100 INFO [beat] instance/beat.go:918 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2020-01-20T23:50:42.04+01:00","name":"SGSOQ01","ip":["192.136.19.133/24","::1/128","127.0.0.1/8"],"kernel_version":"10.0.14393.3442 (rs1_release.191219-1727)","mac":["00:50:56:aa:50:cd"],"os":{"family":"windows","platform":"windows","name":"Windows Server 2016 Standard","version":"10.0","major":10,"minor":0,"patch":0,"build":"14393.3443"},"timezone":"CET","timezone_offset_sec":3600,"id":"b64f60a7-5d8f-4832-94d1-0c636151a7e5"}}}
2020-02-03T14:20:17.831+0100 INFO [beat] instance/beat.go:947 Process info {"system_info": {"process": {"cwd": "C:\\filebeat-7.2.0", "exe": "C:\\filebeat-7.2.0\\filebeat.exe", "name": "filebeat.exe", "pid": 11136, "ppid": 9504, "start_time": "2020-02-03T14:20:17.759+0100"}}}
2020-02-03T14:20:17.831+0100 INFO instance/beat.go:292 Setup Beat: filebeat; Version: 7.2.0
2020-02-03T14:20:17.832+0100 INFO [publisher] pipeline/module.go:97 Beat name: SGSOQ01
2020-02-03T14:20:17.834+0100 INFO instance/beat.go:421 filebeat start running.
2020-02-03T14:20:17.834+0100 INFO [monitoring] log/log.go:118 Starting metrics logging every 30s
2020-02-03T14:20:17.844+0100 INFO registrar/registrar.go:145 Loading registrar data from C:\filebeat-7.2.0\data\registry\filebeat\data.json
2020-02-03T14:20:17.844+0100 INFO registrar/registrar.go:152 States Loaded from registrar: 7
2020-02-03T14:20:17.844+0100 WARN beater/filebeat.go:358 Filebeat is unable to load the Ingest Node pipelines for the configured modules because the Elasticsearch output is not configured/enabled. If you have already loaded the Ingest Node pipelines or are using Logstash pipelines, you can ignore this warning.
2020-02-03T14:20:17.844+0100 INFO crawler/crawler.go:72 Loading Inputs: 1
2020-02-03T14:20:17.844+0100 INFO log/input.go:148 Configured paths: [D:\Applications\GSO\auth-server\auth-server.out.log]
2020-02-03T14:20:17.844+0100 INFO input/input.go:114 Starting input of type: log; ID: 7594395317448897889
2020-02-03T14:20:17.845+0100 INFO crawler/crawler.go:106 Loading and starting Inputs completed. Enabled inputs: 1
2020-02-03T14:20:17.845+0100 INFO cfgfile/reload.go:172 Config reloader started
2020-02-03T14:20:17.845+0100 INFO cfgfile/reload.go:227 Loading of config files completed.
2020-02-03T14:20:20.827+0100 INFO add_cloud_metadata/add_cloud_metadata.go:347 add_cloud_metadata: hosting provider type not detected.
2020-02-03T14:20:47.838+0100 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":78,"time":{"ms":78}},"total":{"ticks":124,"time":{"ms":124},"value":124},"user":{"ticks":46,"time":{"ms":46}}},"handles":{"open":175},"info":{"ephemeral_id":"214e4a02-30ef-41d7-afe8-79ddb239d88e","uptime":{"ms":30049}},"memstats":{"gc_next":4194304,"memory_alloc":2445576,"memory_total":6280304,"rss":23449600},"runtime":{"goroutines":21}},"filebeat":{"events":{"added":1,"done":1},"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0},"reloads":1},"output":{"type":"console"},"pipeline":{"clients":1,"events":{"active":0,"filtered":1,"total":1}}},"registrar":{"states":{"current":7,"update":1},"writes":{"success":1,"total":1}},"system":{"cpu":{"cores":4}}}}}
2020-02-03T14:21:17.839+0100 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":78},"total":{"ticks":124,"value":124},"user":{"ticks":46}},"handles":{"open":177},"info":{"ephemeral_id":"214e4a02-30ef-41d7-afe8-79ddb239d88e","uptime":{"ms":60049}},"memstats":{"gc_next":4194304,"memory_alloc":2510568,"memory_total":6345296,"rss":16384},"runtime":{"goroutines":21}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":7}}}}}
2020-02-03T14:21:37.855+0100 INFO log/harvester.go:253 Harvester started for file: D:\Applications\GSO\auth-server\auth-server.out.log
Metricbeat :
2020-02-03T14:18:17.841+0100 INFO instance/beat.go:606 Home path: [C:\metricbeat-7.2.0] Config path: [C:\metricbeat-7.2.0] Data path: [C:\metricbeat-7.2.0\data] Logs path: [C:\metricbeat-7.2.0\logs]
2020-02-03T14:18:17.852+0100 INFO instance/beat.go:614 Beat ID: df327b1b-5d9d-4a10-9dd6-c5996e24d01a
2020-02-03T14:18:17.859+0100 INFO [beat] instance/beat.go:902 Beat info {"system_info": {"beat": {"path": {"config": "C:\\metricbeat-7.2.0", "data": "C:\\metricbeat-7.2.0\\data", "home": "C:\\metricbeat-7.2.0", "logs": "C:\\metricbeat-7.2.0\\logs"}, "type": "metricbeat", "uuid": "df327b1b-5d9d-4a10-9dd6-c5996e24d01a"}}}
2020-02-03T14:18:17.859+0100 INFO [beat] instance/beat.go:911 Build info {"system_info": {"build": {"commit": "9ba65d864ca37cd32c25b980dbb4020975288fc0", "libbeat": "7.2.0", "time": "2019-06-20T15:07:31.000Z", "version": "7.2.0"}}}
2020-02-03T14:18:17.859+0100 INFO [beat] instance/beat.go:914 Go runtime info {"system_info": {"go": {"os":"windows","arch":"amd64","max_procs":4,"version":"go1.12.4"}}}
2020-02-03T14:18:17.863+0100 INFO [beat] instance/beat.go:918 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2020-01-20T23:50:42.03+01:00","name":"SGSOQ01","ip":["192.136.19.133/24","::1/128","127.0.0.1/8"],"kernel_version":"10.0.14393.3442 (rs1_release.191219-1727)","mac":["00:50:56:aa:50:cd"],"os":{"family":"windows","platform":"windows","name":"Windows Server 2016 Standard","version":"10.0","major":10,"minor":0,"patch":0,"build":"14393.3443"},"timezone":"CET","timezone_offset_sec":3600,"id":"b64f60a7-5d8f-4832-94d1-0c636151a7e5"}}}
2020-02-03T14:18:17.865+0100 INFO [beat] instance/beat.go:947 Process info {"system_info": {"process": {"cwd": "C:\\metricbeat-7.2.0", "exe": "C:\\metricbeat-7.2.0\\metricbeat.exe", "name": "metricbeat.exe", "pid": 4760, "ppid": 6648, "start_time": "2020-02-03T14:18:16.991+0100"}}}
2020-02-03T14:18:17.865+0100 INFO instance/beat.go:292 Setup Beat: metricbeat; Version: 7.2.0
2020-02-03T14:18:17.866+0100 INFO [publisher] pipeline/module.go:97 Beat name: SGSOQ01
2020-02-03T14:18:17.866+0100 INFO instance/beat.go:421 metricbeat start running.
2020-02-03T14:18:17.866+0100 INFO [monitoring] log/log.go:118 Starting metrics logging every 30s
2020-02-03T14:18:17.869+0100 INFO helper/privileges_windows.go:79 Metricbeat process and system info: {"OSVersion":{"Major":6,"Minor":2,"Build":9200},"Arch":"amd64","NumCPU":4,"User":{"SID":"S-1-5-21-169686320-2045781430-181542594-31085","Account":"lamquing_adm","Domain":"INTERDOM","Type":1},"ProcessPrivs":{"SeBackupPrivilege":{"enabled":false},"SeChangeNotifyPrivilege":{"enabled_by_default":true,"enabled":true},"SeCreateGlobalPrivilege":{"enabled_by_default":true,"enabled":true},"SeCreatePagefilePrivilege":{"enabled":false},"SeCreateSymbolicLinkPrivilege":{"enabled":false},"SeDebugPrivilege":{"enabled":true},"SeDelegateSessionUserImpersonatePrivilege":{"enabled":false},"SeImpersonatePrivilege":{"enabled_by_default":true,"enabled":true},"SeIncreaseBasePriorityPrivilege":{"enabled":false},"SeIncreaseQuotaPrivilege":{"enabled":false},"SeIncreaseWorkingSetPrivilege":{"enabled":false},"SeLoadDriverPrivilege":{"enabled":false},"SeManageVolumePrivilege":{"enabled":false},"SeProfileSingleProcessPrivilege":{"enabled":false},"SeRemoteShutdownPrivilege":{"enabled":false},"SeRestorePrivilege":{"enabled":false},"SeSecurityPrivilege":{"enabled":false},"SeShutdownPrivilege":{"enabled":false},"SeSystemEnvironmentPrivilege":{"enabled":false},"SeSystemProfilePrivilege":{"enabled":false},"SeSystemtimePrivilege":{"enabled":false},"SeTakeOwnershipPrivilege":{"enabled":false},"SeTimeZonePrivilege":{"enabled":false},"SeUndockPrivilege":{"enabled":false}}}
2020-02-03T14:18:17.869+0100 INFO helper/privileges_windows.go:87 SeDebugPrivilege is enabled. SeDebugPrivilege=(Enabled)
2020-02-03T14:18:17.872+0100 INFO cfgfile/reload.go:172 Config reloader started
2020-02-03T14:18:17.874+0100 INFO cfgfile/reload.go:227 Loading of config files completed.
2020-02-03T14:18:20.873+0100 INFO add_cloud_metadata/add_cloud_metadata.go:347 add_cloud_metadata: hosting provider type not detected.
2020-02-03T14:18:47.868+0100 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":109,"time":{"ms":109}},"total":{"ticks":296,"time":{"ms":296},"value":0},"user":{"ticks":187,"time":{"ms":187}}},"handles":{"open":201},"info":{"ephemeral_id":"87e80cc2-d7a0-4094-a684-6e1392aece00","uptime":{"ms":30853}},"memstats":{"gc_next":10286368,"memory_alloc":8293544,"memory_total":18581880,"rss":37154816},"runtime":{"goroutines":36}},"libbeat":{"config":{"module":{"running":0},"reloads":1},"output":{"events":{"acked":52,"batches":5,"total":52},"type":"console","write":{"bytes":87072}},"pipeline":{"clients":3,"events":{"active":0,"published":52,"total":52},"queue":{"acked":52}}},"metricbeat":{"system":{"cpu":{"events":3,"success":3},"filesystem":{"events":2,"success":2},"fsstat":{"events":1,"success":1},"memory":{"events":3,"success":3},"network":{"events":6,"success":6},"process":{"events":30,"success":30},"process_summary":{"events":3,"success":3},"socket_summary":{"events":3,"success":3},"uptime":{"events":1,"success":1}}},"system":{"cpu":{"cores":4}}}}}