DELETE Logset
DELETE Log Set
Request used to delete a specific Log Set from an account.
URL
https://REGION.rest.logs.insight.rapid7.com/management/logsets
REGION is the data center for your account - e.g. "us" or "eu"
Method
DELETE
Authentication
Owner, Read Write or Read Only key is required.
URL Params
logsetid
Data Params
None
Success Response
Code 204Content: None
Sample Call
python
1import requests2import json345API_KEY = '00112233-4455-6677-8899-aabbccddeeff'67def handle_response(resp):8response = resp9if response.status_code == 200:10print json.dumps(resp.json(), indent=4)11else:12print response.status_code1314def make_request(provided_url=None):15headers = {'x-api-key': API_KEY}16url = "https://us.rest.logs.insight.rapid7.com/management/logsets/1e0f10a6-4d69-4fbe-b074-d83ecc1244d3"17req = requests.delete(url, headers=headers)18return req192021def delete_logset():22req = make_request()23handle_response(req)2425def start():26delete_logset()272829if __name__ == '__main__':30start()
Notes
This API call deletes the grouping provided by the Log Set. It does not delete the logs that are grouped within that Log Set.
Did this page help you?