Hi,
we have a shared servers, which means one server has multiple instances of our application installed, while each installation is used for a different stage. Means we are providing dev and qa environment on the same server.
Installation of the instances is separated by cloned and renamed path structure:
e:\dev...
e:\qa...
Additionally the processes are running by different users per stage and process.
We have a field "stage" which contains the information, if the event is for qa or dev. We have filter in our dashboard to switch between the stages, so we can reuse the dashboard for each stage.
Now, when logging process information using metricbeat, I need to check the full path or the username to determine the stage.
I did not find the exported full path, so I am going for the system.process.username field.
Because we are using javaServiceWrapper with relative path settings, I have not the absolute path in the cmdline field.
Now the questions:
- How can I do a regex on a field in metricbeat and add a common field based on a conditional?
- is there a way to get the full path of the process? This would be more generic.
Thanks, Andreas