def overview():
search = Service.search()<EOL>search = search.filter("<STR_LIT>", state='<STR_LIT>')<EOL>search.aggs.bucket('<STR_LIT>', '<STR_LIT>', field='<STR_LIT:port>', order={'<STR_LIT>': '<STR_LIT>'}, size=<NUM_LIT:100>).metric('<STR_LIT>', '<STR_LIT>', field='<STR_LIT:address>')<EOL>response = search.execute()<EOL>print_line("<STR_LIT>")<EOL>print_line("<STR_LIT>")<EOL>for entry in response.aggregations.port_count.buckets:<EOL><INDENT>print_line("<STR_LIT>".format(entry.key, entry.unique_count.value))<EOL><DEDENT>
Function to create an overview of the services.
Will print a list of ports found an the number of times the port was seen.