Searching the Datalake
The Datalake contains all the data for every report created for an environment and all the historical data from when the reports are run. This can be a lot of data so narrowing down the information for review is critical to making sense of the information.
The first thing to start with for viewing report data is to narrow down the search by the report needed. There are two ways to access the Datalake and the first is from within the CSPM page itself.
Select a Report from the Report List and click on it’s name to access the details page.
Then expand down to the control level of a section to view links for Remediation and Advanced Query.
Click on Advanced Query.
This opens ChaosSearch in a new window.
Click on the Single Sign On button.
Click Next again on the next page to sign in to ChaosSearch.
Once the page loads the following will show:
Note that there are two filters already being applied based on which control was open when Advanced Query was selected. The ruleId and ReportId.
To see the complete report, click on the X next to the rule.Id and now the filter is only using the ReportId to get data.
Keeping the rule.Id can also be useful for comparing changes over time (using a wider date range) for that rule.
Changing the date range allows for viewing a single or multiple runs of the report depending on the goal.
The second way to access ChaosSearch is via the Log Source page in AMP.
Select a Report from the Report List and click on it’s name to access the details.
Copy its unique report Id by navigating into the report’s detail page.
Navigate to Security -> Log Search and SSO into Chaos Search.
Create a filter by doing the following:
Click on Add filter.
In Field select event.ReportId
Select is for Operator.
Paste the report Id from the report details page into the Value field.
Click Save.
Now set the date range to encompass the report date or dates to show and click Refresh.
The schema for this document is based on Elastic Common Schema, please refer to the below links for the details and explanation of the fields:
cloud schema - https://www.elastic.co/guide/en/ecs/current/ecs-cloud.html
rule schema - https://www.elastic.co/guide/en/ecs/current/ecs-rule.html
Custom Fields
Reqt_Lvl1 - Top level requirement
Section_Lvl1 - Top level section name
Reqt_Lvl2 - Second level requirement
Section_Lvl2 - Second level section name
Reqt_Lvl3 - Third level requirement
Section_Lvl3 - Third level section name
Reqt_Lvl4 - Fourth level requirement
Section_Lvl4 - Fourth level section name
Policy - the mandate selected at the time of report creation
event schema - https://www.elastic.co/guide/en/ecs/current/ecs-rule.html
Custom Fields
Report Id - the unique Guid of the report generated
Report Title - the title used when creating the report
To add additional filters, click on the Add Filter Button.
Other helpful fields to search the datalake
cloud.provider
event.ReportId
rule.Policy
Viewing Datalake Aggregations
Please refer to https://armor-jira.atlassian.net/wiki/spaces/AKB/pages/907968868/Cloud+Security+Posture+Management#Dashboarding-and-Reporting for custom aggregations, visualizations and custom reports.