Skip to content

Conversation

@LucioDonda
Copy link
Member

@LucioDonda LucioDonda commented Nov 20, 2025

WIP

Description

Closes #33117

Proposed Changes

Results and Evidence

  • Test with 3 options options
Details

╰─# engine-ns create testNS 
# Using "wazuh-wild-index"
(venv) ╭─root@3bfac2abd2c6 /workspaces/wazuh-5.x-v1 
╰─# engine-cm -n testNS upsert output < /workspaces/wazuh-5.x-v1/z_engine_installed/indexerTest.yml
Error upserting resource: Failed to upsert resource of type 'output' in namespace 'testNS': Asset validation failed in namespace 'testNS': Stage 'outputs' failed to build output 'wazuh-indexer': Invalid index name 'wazuh-wild-index'. If not using 'auto' index name must be one of the valid indexes.
# Using "wazuh-events-v5-security"
(venv) ╭─root@3bfac2abd2c6 /workspaces/wazuh-5.x-v1 
╰─# engine-cm -n testNS upsert output < /workspaces/wazuh-5.x-v1/z_engine_installed/indexerTest.yml
(venv) ╭─root@3bfac2abd2c6 /workspaces/wazuh-5.x-v1 
╰─# engine-cm -n testNS list output                                                                
[{'uuid': '2d537de1-dcdf-4205-ac17-38d4f5d04ee6', 'name': 'output/indexer-test/0', 'hash': '253bf868edbd82ae7d2e51d1c5ac93b1'}]
(venv) ╭─root@3bfac2abd2c6 /workspaces/wazuh-5.x-v1 
╰─# engine-cm -n testNS delete 2d537de1-dcdf-4205-ac17-38d4f5d04ee6
# Using Auto
(venv) ╭─root@3bfac2abd2c6 /workspaces/wazuh-5.x-v1 
╰─# engine-cm -n testNS upsert output < /workspaces/wazuh-5.x-v1/z_engine_installed/indexerTest.yml
(venv) ╭─root@3bfac2abd2c6 /workspaces/wazuh-5.x-v1 

Manual tests with their corresponding evidence

  • Compilation without warnings on every supported platform
    • Linux
    • Windows
    • MAC OS X
  • Log syntax and correct language review
  • Memory tests for Linux

    • Coverity
    • Valgrind (memcheck and descriptor leaks check)
    • AddressSanitizer
  • Memory tests for Windows

    • Coverity
    • UMDH
  • Memory tests for macOS

    • Leaks
    • AddressSanitizer
  • Decoder/Rule tests (Wazuh v4.x)

    • Added unit testing files ".ini"
    • runtests.py executed without errors
  • Engine (Wazuh v5.x and above)

    • Test run in parallel
    • ASAN for test (utest/ctest)
    • TSAN for test and wazuh-engine.
  • Wazuh server API/Framework

    • Run API Integration Tests

Artifacts Affected

Configuration Changes

Tests Introduced

Review Checklist

  • Code changes reviewed
  • Relevant evidence provided
  • Tests cover the new functionality
  • Configuration changes documented
  • Developer documentation reflects the changes
  • Meets requirements and/or definition of done
  • No unresolved dependencies with other issues
  • ...

@LucioDonda LucioDonda force-pushed the enhancement/33117-add-auto-index-mode branch from a49819f to 10065bb Compare November 27, 2025 15:59
@LucioDonda LucioDonda changed the base branch from enhancement/32980-engine-cm-refactor to enhancement/32992-implement-crud-module-s1 November 27, 2025 16:00
@LucioDonda LucioDonda force-pushed the enhancement/33117-add-auto-index-mode branch from 10065bb to c5449bf Compare November 27, 2025 16:04
Base automatically changed from enhancement/32992-implement-crud-module-s1 to enhancement/32980-engine-cm-refactor November 28, 2025 12:58
@LucioDonda LucioDonda self-assigned this Nov 28, 2025
@LucioDonda LucioDonda linked an issue Nov 28, 2025 that may be closed by this pull request
5 tasks
@LucioDonda LucioDonda force-pushed the enhancement/33117-add-auto-index-mode branch from c5449bf to e014c3a Compare November 28, 2025 16:21
@LucioDonda LucioDonda force-pushed the enhancement/33117-add-auto-index-mode branch from e014c3a to a1b80e7 Compare December 2, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add auto index mode to wazuh-indexer output for dynamic event routing

3 participants