Hi,
I have a windows app with logs like this:
***
[2024-04-12 05:00:24.260]: -------------------------------------------------------
[2024-04-12 05:00:24.261]: BACKUP - Replication - v8.5.0 Job Name: Backup 'COMPANY_MSSQL-ARS'
[2024-04-12 05:00:24.262]: Selected Node: COMPANY_MSSQL-ARS
[2024-04-12 05:00:24.262]: Selected Options: Update notes with the latest backup results. | Enable Active Block Mapping™ (ABM). | Enable Change Block Tracking (CBT). SpaceSavingTech: Incremental
[2024-04-12 05:00:24.263]: -------------------------------------------------------
[2024-04-12 05:00:24.264]: SystemTime-4/12/2024 5:00:24 AM
[2024-04-12 05:00:24.264]: The job has started.
[2024-04-12 05:00:24.382]: Retrieving inventory node for the job...
[2024-04-12 05:00:24.444]: The job has been saved.
[2024-04-12 05:00:24.447]: Backup task 06fd26d4-5aab-478e-af42-6762b94d8ebb for virtual machine COMPANY_MSSQL-ARS-564d1ac1-a4fd-987e-94a7-5a74267eb268 was created.
[2024-04-12 05:00:24.448]: Backup task 06fd26d4-5aab-478e-af42-6762b94d8ebb for virtual machine COMPANY_MSSQL-ARS-564d1ac1-a4fd-987e-94a7-5a74267eb268 was queued.
[2024-04-12 05:00:24.449]: Completed retrieving virtual machines and creating their tasks.
[2024-04-12 05:00:24.449]: Total tasks created: 1
[2024-04-12 05:00:24.453]: The job has been saved.
[2024-04-12 05:02:48.838]: The job Backup 'COMPANY_MSSQL-ARS' has completed with a status of Success
[2024-04-12 05:02:48.839]: All tasks have completed for the job.
[2024-04-12 05:02:48.842]: The job has been saved.
{{WHITE SPACE}}
***
The file has: 18 Lines (the latest one a empty).
So, in my agent config file i set:
<localfile>
<location>C:\Program Files\XXXX\XYZ\Logs\User\Jobs\Backup\backup*.log</location>
<log_format>multi-line:18</log_format>
</localfile>
However, i'm not getting the logs or alerts within Wazuh. i also enabled the logall and the archives file is not getting entries there....
The agent logs:
***
024/04/16 05:21:27 wazuh-agent: INFO: (6008): File integrity monitoring scan started.
2024/04/16 05:21:38 wazuh-agent: INFO: (6009): File integrity monitoring scan ended.
2024/04/16 05:22:49 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/16 05:22:56 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2024/04/16 06:00:48 wazuh-agent: INFO: (1957): New file that matches the 'C:\Program Files\
XXXX\XYZ \Logs\User\Jobs\Backup\backup*.log' pattern: 'C:\Program Files\
XXXX\XYZ \Logs\User\Jobs\Backup\Backup 'COMPANY_FS_USUARIOS'_20240416T060010_fc1e44a8-c9db-440f-b2ea-e55f2d18f44e.log'.
2024/04/16 06:00:48 wazuh-agent: INFO: (1957): New file that matches the 'C:\Program Files\
XXXX\XYZ \Logs\User\Jobs\Backup\backup*.log' pattern: 'C:\Program Files\
XXXX\XYZ
\Logs\User\Jobs\Backup\Backup 'COMPANY_NGINX'_20240416T060010_157ef5fd-472f-40e2-ac12-a36ef1593bb4.log'.
2024/04/16 06:22:56 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/16 06:23:03 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2024/04/16 07:23:04 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/16 07:23:11 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2024/04/16 08:23:12 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/16 08:23:19 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2024/04/16 09:23:20 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/16 09:23:27 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2024/04/16 10:23:28 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/16 10:23:36 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2024/04/16 11:23:37 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/16 11:23:44 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2024/04/16 12:23:45 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/16 12:23:52 wazuh-modulesd:syscollector: INFO: Evaluation finished.
***
Any idea?
Thanks in advance.
Michael.