wazuh / wazuh-indexer-plugins

GNU Affero General Public License v3.0
1 stars 3 forks source link

Index pattern wazuh-states-vulnerabilities does not ends with `*` #114

Closed QU3B1M closed 1 month ago

QU3B1M commented 1 month ago

Describe the bug

The index pattern wazuh-states-vulnerabilities is not correctly named, it must end with *. Bug found during the validations tests for wazuh/wazuh-indexer#478

To Reproduce Steps to reproduce the behavior:

  1. Check the index-patterns on the templates endpoint
    curl -s -k -u usr:pwd https://<indexer_ip>:9200/_cat/templates?v
    name                           index_patterns                      order version composed_of
    index-template-alerts          [wazuh-alerts-5.x-*]                0             
    index-template-vulnerabilities [wazuh-states-vulnerabilities]      0             
    index-template-system          [wazuh-states-inventory-system*]    0             
    index-template-packages        [wazuh-states-inventory-packages*]  0             
    index-template-agent           [.agents*]                          0             
    index-template-fim             [wazuh-states-fim*]                 0             
    index-template-processes       [wazuh-states-inventory-processes*] 0

Expected behavior

It must be named just as the rest of index-patterns