Hi,
I am using latest execbeat with ELK GA 5.0.0. I would like to know if certain process is running in my PC, say, Filebeat. Running the command ps -ef|grep filebeat
returns the output;
mypc 688 1 0 Jan16 ? 00:21:17 ./filebeat -c beata.yml
mypc 696 1 0 Jan16 ? 00:31:45 ./filebeat -c beatb.yml
I have configured execbeat like this;
execbeat:
execs:
-
cron: "@every 5s"
command: ps -ef|grep
args: filebeat
document_type: execbeat
output.console:
enabled: true
pretty: true
but, when I execute it, i am getting the output like;
{
"@timestamp": "2017-02-15T10:50:24.000Z",
"beat": {
"hostname": "mypc",
"name": "mypc",
"version": "2.1.1"
},
"exec": {
"command": "ps -ef|grep",
"stdout": ""
},
"type": "execbeat"
}
Why is this happening and how can I fix this?
Thank you.