I run metricbeat with admin privilage, after a few hours metric beat turn off with code exception.
Please help figrue out the problem, thanks a lot. For the limit I can not post all debug log
2020-07-04T18:31:48.591+0800 DEBUG [processes] process/process.go:475 Skip process pid=720: error getting process state for pid=720: getProcCredName failed: OpenProcess failed for pid=720: Access is denied.
Exception 0xc0000005 0x0 0xc000c10000 0x7ffa05c8389a
PC=0x7ffa05c8389a
signal arrived during external code execution
syscall.Syscall(0x7ffa0638cd30, 0x2, 0xc000c0ff80, 0xc0007a8f74, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/syscall_windows.go:184 +0xea
syscall.CommandLineToArgv(0xc000c0ff80, 0xc0007a8f74, 0x80, 0x0, 0x0)
/usr/local/go/src/syscall/zsyscall_windows.go:930 +0x80
github.com/elastic/beats/vendor/github.com/elastic/gosigar/sys/windows.ByteSliceToStringSlice(0xc000c0ff80, 0x80, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/elastic/gosigar/sys/windows/syscall_windows.go:525 +0x75
github.com/elastic/beats/vendor/github.com/elastic/gosigar.(*ProcArgs).Get(0xc0007a9240, 0x1d4, 0x0, 0x0)
/go/src/github.com/elastic/beats/vendor/github.com/elastic/gosigar/sigar_windows.go:376 +0x1f1
github.com/elastic/beats/libbeat/metric/system/process.(*Process).getDetails(0xc00006ef00, 0xc0007a93b0, 0xb, 0xc00077ad01)
/go/src/github.com/elastic/beats/libbeat/metric/system/process/process.go:138 +0x63c
github.com/elastic/beats/libbeat/metric/system/process.(*Stats).getSingleProcess(0xc000a08120, 0x1d4, 0xc000bc4060, 0xc00006edc0)
/go/src/github.com/elastic/beats/libbeat/metric/system/process/process.go:484 +0x240
github.com/elastic/beats/libbeat/metric/system/process.(*Stats).Get(0xc000a08120, 0xc00078ede0, 0x0, 0xc00099bb60, 0x0, 0x0)
/go/src/github.com/elastic/beats/libbeat/metric/system/process/process.go:425 +0x113
github.com/elastic/beats/metricbeat/module/system/process.(*MetricSet).Fetch(0xc00099c0f0, 0xa695f80, 0xc000912f00)
/go/src/github.com/elastic/beats/metricbeat/module/system/process/process.go:102 +0x51
github.com/elastic/beats/metricbeat/mb/module.(*metricSetWrapper).fetch(0xc0001d06e0, 0x254d1a0, 0xc000912f00)
/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:238 +0x2b7
github.com/elastic/beats/metricbeat/mb/module.(*metricSetWrapper).startPeriodicFetching(0xc0001d06e0, 0x254d1a0, 0xc000912f00)
/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:219 +0x121
github.com/elastic/beats/metricbeat/mb/module.(*metricSetWrapper).run(0xc0001d06e0, 0xc0001760c0, 0xc000183c80)
/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:196 +0x676
github.com/elastic/beats/metricbeat/mb/module.(*Wrapper).Start.func1(0xc0003fff20, 0xc0001760c0, 0xc000183c80, 0xc0001d06e0)
/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:137 +0x27e
created by github.com/elastic/beats/metricbeat/mb/module.(*Wrapper).Start
/go/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:125 +0x147