GET Logset
GET Log Set
Request used to get a specific Log Set from an account
URL
https://REGION.rest.logs.insight.rapid7.com/management/logsets/:logsetid
REGION is the data center for your account - e.g. "us" or "eu"
Method
GET
Authentication
Owner, Read Write or Read Only key is required.
URL Params
logsetid
Data Params
None
Success Response
Code 200Content:
json
1{2"logset": {3"user_data": {},4"logs_info": [5{6"id": "847dd050-df29-4c5c-ac34-a2049d4cd57e",7"links": [8{9"href": "https://us.rest.logs.insight.rapid7.com/management/logs/847dd050-df29-4c5c-ac34-a2049d4cd57e",10"rel": "Self"11}12],13"name": "Lambda Log"14},15{16"id": "b144fd14-c106-4c77-a6ae-db4942c7444c",17"links": [18{19"href": "https://us.rest.logs.insight.rapid7.com/management/logs/b144fd14-c106-4c77-a6ae-db4942c7444c",20"rel": "Self"21}22],23"name": "Lambda Log Debug"24}25],26"description": null,27"id": "11a6f6dc-58b5-4097-b211-fd37c19037b0",28"name": "MyLogSet"29}30}
Sample Call
python
1import requests2import json3import time456API_KEY = '00112233-4455-6677-8899-aabbccddeeff'78def handle_response(resp):9response = resp10time.sleep(1)11if response.status_code == 200:12print json.dumps(resp.json(), indent=4)13else:14print response.status_code1516def make_request(provided_url=None):17headers = {'x-api-key': API_KEY}1819url = "https://us.rest.logs.insight.rapid7.com/management/logsets/11a6f6dc-58b5-4097-b211-fd37c19037b0"20req = requests.get(url, headers=headers)21return req222324def get_logset():25req = make_request()26handle_response(req)2728def start():29get_logset()303132if __name__ == '__main__':33start()
Notes
Did this page help you?