Exiting: 1 error: 1 error: missing required field accessing '0.perfmon.counters'

I trying to use metricbeat 6.0.0 (windows64)

C:\Program Files\metricbeat>metricbeat.exe test config
Config OK

C:\Program Files\metricbeat>metricbeat.exe test output
elasticsearch: http://elasticsearch.xxxxx.local:9200...
  parse url... ←[32mOK
←[0m  connection...
    parse host... ←[32mOK
←[0m    dns lookup... ←[32mOK
←[0m    addresses: 10.52.223.137
    dial up... ←[32mOK
←[0m  TLS... ←[33mWARN ←[0msecure connection disabled
  talk to server... ←[32mOK
←[0m  version: 6.0.0

C:\Program Files\metricbeat>

when I try to start metricbeat it fails to start:

C:\Program Files\metricbeat>metricbeat.exe -e
2017/11/29 20:31:48.739659 metrics.go:23: INFO Metrics logging every 30s
2017/11/29 20:31:48.739659 beat.go:426: INFO Home path: [C:\Program Files\metric
beat] Config path: [C:\Program Files\metricbeat] Data path: [C:\Program Files\me
tricbeat\data] Logs path: [C:\Program Files\metricbeat\logs]
2017/11/29 20:31:48.740659 beat.go:433: INFO Beat UUID: 98c37d7a-d974-4704-98f8-
bcf83bd2a136
2017/11/29 20:31:48.740659 beat.go:192: INFO Setup Beat: metricbeat; Version: 6.
0.0
2017/11/29 20:31:48.740659 client.go:123: INFO Elasticsearch url: http://elastic
search.xxxxxx.local:9200
2017/11/29 20:31:48.740659 module.go:80: INFO Beat name: wcmisd1044
2017/11/29 20:31:48.741659 beat.go:260: INFO metricbeat start running.
2017/11/29 20:31:48.750659 system_windows.go:35: INFO Metricbeat process and sys
tem info: {"OSVersion":{"Major":6,"Minor":1,"Build":7601},"Arch":"amd64","NumCPU
":8,"User":{"SID":"S-1-5-21-1476410021-4119156849-3415781353-6541","Account":"dc
horine","Domain":"UFTMASTERAD","Type":1},"ProcessPrivs":{"SeBackupPrivilege":{"e
nabled":false},"SeChangeNotifyPrivilege":{"enabled_by_default":true,"enabled":tr
ue},"SeCreateGlobalPrivilege":{"enabled_by_default":true,"enabled":true},"SeCrea
tePagefilePrivilege":{"enabled":false},"SeCreateSymbolicLinkPrivilege":{"enabled
":false},"SeDebugPrivilege":{"enabled":false},"SeImpersonatePrivilege":{"enabled
_by_default":true,"enabled":true},"SeIncreaseBasePriorityPrivilege":{"enabled":f
alse},"SeIncreaseQuotaPrivilege":{"enabled":false},"SeIncreaseWorkingSetPrivileg
e":{"enabled":false},"SeLoadDriverPrivilege":{"enabled":false},"SeMachineAccount
Privilege":{"enabled":false},"SeManageVolumePrivilege":{"enabled":false},"SeProf
ileSingleProcessPrivilege":{"enabled":false},"SeRemoteShutdownPrivilege":{"enabl
ed":false},"SeRestorePrivilege":{"enabled":false},"SeSecurityPrivilege":{"enable
d":false},"SeShutdownPrivilege":{"enabled":false},"SeSystemEnvironmentPrivilege"
:{"enabled":false},"SeSystemProfilePrivilege":{"enabled":false},"SeSystemtimePri
vilege":{"enabled":false},"SeTakeOwnershipPrivilege":{"enabled":false},"SeTimeZo
nePrivilege":{"enabled":false},"SeUndockPrivilege":{"enabled":false}}}
2017/11/29 20:31:48.753659 system_windows.go:67: INFO SeDebugPrivilege is now en
abled. SeDebugPrivilege=(Enabled)
2017/11/29 20:31:48.753659 cfgwarn.go:11: WARN BETA: The perfmon metricset is be
ta
2017/11/29 20:31:48.753659 metrics.go:51: INFO Total non-zero values: beat.mems
tats.gc_next=4194304 beat.memstats.memory_alloc=2516984 beat.memstats.memory_tot
al=4418136 libbeat.config.module.running=0 libbeat.output.type=elasticsearch lib
beat.pipeline.clients=2 libbeat.pipeline.events.active=0
2017/11/29 20:31:48.753659 metrics.go:52: INFO Uptime: 562ms
2017/11/29 20:31:48.753659 beat.go:268: INFO metricbeat stopped.
2017/11/29 20:31:48.753659 beat.go:625: CRIT Exiting: 1 error: 1 error: missing
required field accessing '0.perfmon.counters' (source:'C:\Program Files\metricbe
at\modules.d\windows.yml')
Exiting: 1 error: 1 error: missing required field accessing '0.perfmon.counters'
(source:'C:\Program Files\metricbeat\modules.d\windows.yml')

C:\Program Files\metricbeat>

this is happens after I rename windows.yml.disabled into windows.yml inside of module.d directory, if I rename it back to disable, metricbeat starts without any issues...

Please advise.

There are no performance counters configured in the default config file for the windows module. So if you enable the module you'll need to tell it what you want to monitor.

Perhaps the module should have some example already configured like is shown in the docs.

:+1: I would add these 2 counters from the docs.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.