Hello ! Thanks for use Wazuh !
The way to perform a custom request it's using Kibana Discover section. I attached here some instructions to perform a custom query.
1. Go to Kibana->Discover section
2. Select inside the left panel
Available fields the fields you want to export, e.g.
agent.id,
agent.ip and
agent.name3.. Press the
Save option at the top right corner and set a name to the search.
4. Click the
Reporting option and select
View reports.
5. Create a new report definition, set the name, report source
saved search and select your previously saved search. Then specify the time range.
6. You will obtain a CSV with all data inside Elasticsearch into a CSV. You can now analyze as you wish.I hope it helps you, don't hesitate to ask us if you have any doubt.
I'm investigating if it's possible to add the attacker IP and the attacked port.
I will be back ASAP.
Hope this info could be helpful
Regards