Hello,
I am using metricbeat 7.6.2 on Windows 2012. I have the following system.yml:
- module: system
period: 10s
metricsets:
- cpu
- memory
- process
processes: ['^metricbeat.exe$']
processors:
- add_fields:
when:
and:
- has_fields: ['system.process.cpu.total.norm.pct']
- range:
system.process.cpu.total.norm.pct.gte: 0.0
target: performance_issue
fields:
id: 'cpu'
threshold: '0.0'
val: system.process.cpu.total.norm.pct
I would like to get the value of the key system.process.cpu.total.norm.pct in the "val" key in the created JSON element show as below:
"performance_issue" : {
"val" : "system.process.cpu.total.norm.pct",
"threshold" : "0.0",
"id" : "cpu"
}
How would I change the system.yml file so that I can achieve this?