Hello,
I am trying to use the script processor in metricbeat. I have the following system.yml:
- module: system
period: 10s
metricsets:
- cpu
- memory
- process
processes: ['^metricbeat.exe$']
processors:
- script:
when:
and:
- has_fields: ['system.process.memory.rss.pct']
- range:
system.process.memory.rss.pct.gte: 0.0032
lang: javascript
id: my_filter
source: >
function process(event) {
event.Put("performance_issue", "1");
}
When I run metricbeat, I get the following error printed:
Exiting: 1 error: the processor script doesn't exist
Any pointers as to what I may have done wrong here? I would appreciate if someone is able to give me a working sample of script processor that I can start with.