Skip to content

Wazuh-logtest: Implement logtest as a thread of analysisd #5337

@Lopuiz

Description

@Lopuiz
Wazuh version Component Install type Install method Platform
4.1.0 Analysisd Manager Packages/Sources Linux

Hello team,

ossec-logtest is a useful tool for testing and verification of rules and decoders. Users can test their custom ruleset before adding it in a production environment.

Although it is a good tool, there are some issues in Logtest:

  1. UI can't use it. The users must access the server where the wazuh-manager is installed and execute the binary in the console.
  2. Can't test rules and decoders for eventchannel events, syscheck events, the events collected with different logcollector formats (mysql, postgresql, command, full_command), etc.

This development aims to deprecate the ossec-logtest in favor of wazuh-logtest.

This new tool will be an Analysisd thread which listens in AF_UNIX socket. Multiples clients can be connected. The server processes their requests and responds. The communication messages will be in JSON format.

Additionally, wazuh-logtest must allow testing more events than ossec-logtest.

Best regards,
Core team.


Working branch
feature/5337-logtest-enhancement

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions