how to capture the status of the process when it is interrupted? I only have the status when it is running and sometimes I get a process status that has stopped.
Auditbeat 7.1.0 (Windows Server 2008 R2)
Elasticsearch 7.0.0 (Ubuntu Server 18.04 LTS)
Hi @holiveira - by "interrupted" do you mean stopped? The Auditbeat system/process dataset reports stopped processes (likely what you are seeing as a stopped process status - it's an event with event.action: process_stopped).
Can you post an example of a process start that does not have a corresponding process stop but you think it should? And provide your configuration as well?
- module: system
datasets:
- process # Started and stopped processes
state.period: 5s
processors:
- drop_event:
when:
not:
regexp:
process.name: "notepad.*"
I am monitoring only one process, in this case notepad.exe, in my understanding, when opening the notepad, should receive a process_started and in the course of time while the running process is receiving existing_process and when to stop the process receive the process_stopped.
What I've noticed is that existing_process occurs perfectly, but the process_started and process_stopped events do not occur.
I made a simulation, follows logs:
Auditbeat:
In this example, my logstash processed 3 documents:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.