Hi Emrah,
To export a report based on existing CIS events generated by Wazuh SCA(Security Configuration Assessment), you can utilize the reporting feature within Wazuh dashboard. When using this feature, you will have to create a report definition which is basically the settings desired for your report. Here, you would specify your report source, a time range and report trigger be it on demand or scheduled. For the report source, there are 4 available sources to choose from namely, Dashboard, Visualization, Saved search and Notebook. A good suggestion will be to create a desired search filter specific to your needs, save this search and then use this as the source when created your report definition.
- For this use case i have created a sample query in the Discover section that filters for all existing agents and all sca scan results, the query being "
agent.name: * AND data.sca.check.result: *"(you can play around this and create your own query that satisfies your needs). After you have your query, save this[img1].
- Next you can click on the menu item in the top left corner and navigate to "Reporting" under Opensearch plugins.[img2].
- Create a new report definition and select "Saved search" as your report definition"[img3].
- Now you can save the report definition and generate the specified format.[img4]
In addition, there is currently no existing script of CIS reports.
Regards,