wazuh-qa icon indicating copy to clipboard operation
wazuh-qa copied to clipboard

The workflow engine log format differs from the other modules' log format.

Open mhamra opened this issue 1 year ago • 0 comments

Target version Related issue Related PR/dev branch
4.9.0 4495-dtt1-release

The log format used by the modules differs. The workflow_engine log format is the following:

https://github.com/wazuh/wazuh-qa/blob/e61da0ccbceeb2983fcf62f037384cb3e2471403/deployability/modules/workflow_engine/logger/config.yaml#L5-L10

The other modules use this format:

https://github.com/wazuh/wazuh-qa/blob/e61da0ccbceeb2983fcf62f037384cb3e2471403/deployability/modules/generic/logger/config.yaml#L5-L10

The desired format must be the first; the modules called from the workflow must receive the process and thread name to generate the desired format.

I suggest improving the log file format by adding the task name of the workflow.

We also need to add to the console output which module is executing the task, this is reported in the log file but not in the console output

image

mhamra avatar Apr 23 '24 14:04 mhamra