Create a filter that selects the hosts from the report results
Create an alert with your conditions
Use the Compose section to set a report filter that selects the hosts you want from the scan.
Select the Delta scan report alert option
Assign the alert to a scan task
That should do it. As long as the hosts are in the scan task that you attach the alert to, the filter will allow only those hosts to be delivered in the report. If you need help with creating a filter for the scan results, see the documentation for Greenbone’s filters
It’s about getting the reports over GMP via Python. I would like to create individually filtered reports. To do this, I need the host list from a report which I can use the filter to create the individual reports with the desired partial host list using a script.
I understand. However, this doesn’t tell me the report format you are using.
You can create separate report results filters and then set the report results filter when you download the report via python-gvm. That way you don’t have to parse and filter the report.
Otherwise, if you are interested in manually filtering a complete report results or or or manually filtering an already filtered report results via Python - it the method depends on which report format you are downloading via python-gvm / GMP
Sorry, I’m lost in your process here. If you want help with a another issues, can you please create a separate thread for it and titled appropriately. Thanks~
Filtering by specific host IPs from the first post is still unsolved.
According to the filter keywords list, I can only find host (for one IP), not hosts (for a list of IPs) as option.
For example, the search is not limited to the Hosts column, it is no clean separation. regexp (127\.0\.0\.10|127\.0\.0\.16)
I typically don’t create scan tasks with large numbers of hosts, so I don’t have to navigate this problem. I usually create one target host per scan task. Sounds like this approach would avoid the complexity of having to extract what you want from the task.
Since you are using Python-gvm, you can fetch each IP’s report from a list and assemble your own report, or CSV, etc.