Hi Alexander,
Hope you are doing well today and thank you for using wazuh.
Yes , wazuh can be used to consolidate logs from multiple systems for this you can modify the destination index by tweaking the filebeat pipeline. Below is the example of creating a separate index pattern for syslog you can follow the same for rsyslog. Before following the steps make sure rsyslog alerts in /var/ossec/logs/alerts/alerts.log.
Step1: add the following configuration in pipleline.json
vim /usr/share/filebeat/module/wazuh/alerts/ingest/pipeline.json
{
"date_index_name": {
"if" : "if (ctx.rule.groups.contains('syslog')){return true;}",
"field": "timestamp",
"date_rounding": "d",
"index_name_prefix": "syslog-",
"index_name_format": "yyyy.MM.dd",
"ignore_failure": false
}
},
{
"date_index_name": {
"if" : "if (ctx.rule.groups.contains('syslog')){return false;}",
"field": "timestamp",
"date_rounding": "d",
"index_name_prefix": "{{fields.index_prefix}}",
"index_name_format": "yyyy.MM.dd",
"ignore_failure": false
}
},
Step2: After this, added the index name "sysloh-" in /etc/filebeat/wazuh-template.json
{
"order": 0,
"index_patterns": [
"wazuh-alerts-4.x-*",
"wazuh-archives-4.x-*",
"syslog-"
]
Basically, this will instruct filebeat to look for the "
rule.groups.contains " field and if it finds the word "
syslog" within it,
it will index the data to an index named " syslog-".
Step3: After modifying your filebeat pipeline you will want to apply the changes:
filebeat setup --pipelines --modules wazuh
Step4: Restart the wazuh-components using commands:
systemctl restart filebeat
systemctl restart wazuh-manager
systemctl restart wazuh-indexer
Step5: Create an Index pattern like below:
- In the dashboard, open the left bar and navigate to Stack management.

- Inside that section, select Index patterns and click on Create index pattern

- For the Index pattern name, use wazuh-archives*, click in Next step and for the timestamp field choose timestamp (make sure to choose timestamp and not @timestamp)
- Click on Create Index Pattern
Step6: Check the logs in syslog-* index in discover:
After that, the configuration is complete. You can see the data navigating to the
Discover section in the left panel and selecting the recently created index pattern

To know more about rsyslog configuration you can refer to
https://wazuh.com/blog/how-to-configure-rsyslog-client-to-send-events-to-wazuh/https://documentation.wazuh.com/current/cloud-service/your-environment/send-syslog-data.html#rsyslog-on-linuxHope this will be helpful. Please feel free to contact us for any information/issues.
Best Regards,
Stuti Gupta