forked from Shuffle/openapi-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinsightidr_log_api.yaml
614 lines (598 loc) · 34.8 KB
/
insightidr_log_api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
basePath: /log_search
components:
securitySchemes:
ApiKeyAuth:
in: header
name: x-api-key
type: apiKey
host: eu.api.insight.rapid7.com
info:
contact:
email: [email protected]
name: '@frikkylikeme'
url: https://twitter.com/frikkylikeme
description: InsightIDR API LOG, manipulate logs and Query
title: InsightIDR LOG API
version: '1.0'
x-categories:
- SIEM
x-logo: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK4AAACuCAYAAACvDDbuAAAXJ0lEQVR4Xu2dd5xURbbHf7dz93SYGQYEEURBJPnBgLD6wQiYBZFdRUVAlCyLSBxUVARUwAFE95ERnnzA1bcsPlaMKKvPfagoLoiAYIIniBM6pxvqfaqHWcEldLi3u+7tuv/sjlSdW+ecb9etcOqUQAgh4A+3gM4sIHBwdeYx3tyUBTi4HARdWoCDq0u38UZzcDkDurQAB1eXbuON5uByBnRpAQ6uLt3GG83B5Qzo0gIcXF26jTeag8sZ0KUFOLi6dBtvNAeXM6BLC3Bwdek23mgOLmdAlxbg4OrSbbzRHFzOgC4twMHVpdt4ozm4nAFdWoCDq0u38UZzcDkDurQAB1eXbuON5uByBnRpAQ6uLt3GG83B5Qzo0gIcXF26jTeag8sZ0KUFOLi6dBtvNAeXM6BLC3Bwdek23mgOLmdAlxbg4OrSbbzRHFzOgC4twMHVpdt4ozm4nAFdWoCDq0u38UZzcDkDurRAwcBN7tsB5eeDEKwWXRou340WPGUQHE6YXB4IJT6Y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D1uhOWs9qyd+Q9w59IfsAlBNKBvaiddFN98woxEUnXMPRWyK494Bu3VLNJWfKrTxB8fgyUYE26rcq8HF0VIRJgEmHrfAs89z0G8xktM5fDaA3twSUKxG+2I7jkEUg/7GQrZO+ETpHhfWgxHN2u08ZlqXRS8xH9y0KVd8rotU1yapUAthJYmreCtf0VcHS/FZZW7SBYGcpwqYJlNQdX+uHrVO9Cr6mHwN4mw3E2VCSYKlqi0Vx6T5k24YskEoR/zjCIuz4+mpknNy/SIzVIBiDYbLCc1x3Wdl1gbXsxrK06wdS4me5WC9K1hqbg0qinmuEXgBATBFZyfp3CMkq0Gt5x/wlXzz+ka7+My4l7PkPt5GsgWLyZD5kUMTVWJaIMwVUGc7MLYD2/C6ztLkqlsjeVN4VgNms2xMlYWQ0raAYuzcYSfWtt/TiO1YnYCQzr7j0EggbXPTW8KvnlR4h/8TEEW+bJ++jn3tLyPJibtoDJ6U6tCggOl4Z4sCtaM3DZVZm3zAgW4OAawYtFqAMHtwidbgSVObhG8GIR6sDBLUKnG0FlDq4RvFiEOnBwi9DpRlCZg2sELxahDhzcInS6EVTm4BrBi0WoAwe3CJ1uBJU5uEbwYhHqwMEtQqcbQWUOrhG8WIQ6cHCL0OlGUJmDawQvFqEOHNwidLoRVObgGsGLRagDB7cInW4ElTm4RvBiEerAwS1CpxtBZQ6uEbxYhDpwcIvQ6UZQmYNrBC8WoQ4c3CJ0uhFU5uAawYtFqAMHtwidbgSVObhG8GIR6sDBLUKnG0FlDq4RvFiEOnBwi9DpRlCZg2sELxahDhzcInS6EVTm4BrBi0WoAwe3CJ1uBJU5uEbwYhHqwMEtQqcbQWUOrhG8WIQ6cHCL0OlGUJmDawQvFqEOHNwidLoRVObgGsGLRagDB7cInW4Elf8fWDe3ft39HcYAAAAASUVORK5CYII=
openapi: 3.0.0
paths:
/download/logs/{logIds}:
get:
description: "This endpoint allows you to download and stream log events to\
\ your machine for the given log IDs and query parameters over HTTPS.\n<br>\n\
**Authentication**\n - Read / Write\n\n \n<br>\n\n## How to stream logs \n\
To stream more than one log event, use a colon to seperate each logID. \n\n\
<br> \n\n`https://REGION.rest.logs.insight.rapid7.com/download/logs/aee00b66-a543-43dc-b093-53963c2e8f41:d8eacea6-3dbd-4163-8fc2-3ef5067bd7c9:1c1f2885-ed93-4650-9e14-d46af4bf0886`\n\
\n<br>\n\n## Log Limit\nYou can download a maximum of 10 logs, or 20 million\
\ logs events, as indicated by the query parameter.\n\n<br>\n\n* Maximum number\
\ of download requests - 150\n* Maxium download size - 75 GB\n* Time window\
\ - 15 minutes"
operationId: Download_Logs
parameters:
- description: 'Lower bound of the time range you want to query against.Format:
UNIX timestamp in milliseconds. This is optional if `time_stamp` is supplied.'
in: query
name: from
required: false
schema:
type: string
- description: 'Upper bound of the time range you want to query against.Format:
UNIX timestamp in milliseconds.'
in: query
name: to
required: false
schema:
type: string
- description: 'The relative time range in a readable format.Optional if `from`
is supplied. Example: `Last 4 Days`'
in: query
name: time_range
required: false
schema:
type: string
- description: The LEQL query to match desired log events. Do not use a calculation.
in: query
name: query
required: false
schema:
type: string
- description: Max number of log events to download; cannot exceed 20 million.
The default is 20 million
in: query
name: limit
required: false
schema:
type: string
- description: Generated by shuffler.io OpenAPI
in: path
name: logIds
required: true
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Download Logs
/log_search/query/{query_id}:
get:
description: "Depending on the size of the underlying dataset of the complexity\
\ of the query, a request may not yield a value straight away. In this case\
\ a well-formed query will return an `HTTP 202` response and an ID you can\
\ use to check its state.\n<br>\nUse this with:\n* [Get Query](https://insightidr.help.rapid7.com/reference#getquerylogs)\n\
* [Get Saved Query](https://insightidr.help.rapid7.com/reference#getsavedquery)\n\
\n<br>\n\n**Authentication**\n - Read Only\n\n<br>\n\nUse the `ID` returned\
\ to poll the query. In this example the ID is `deace1fd-e605-41cd-a45c-5bf1ff0c3402-1`.\
\ \nThe link array object will return the query URL that can be used. \n\n\
<br>\n\n```bash\ncurl https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\
\ -H 'x-api-key: 00112233-4455-6677-8899-aabbccddeeff '\n```\n\n<br>\n\nThere\
\ is no limit on how frequently you can poll a query, or how many times you\
\ may poll it. However, if you do not poll a query resource for 20 seconds,\
\ it will expire. Subsequent calls to that resource will return a 404.\n\n\
<br>\n\n## How to poll a query\n\n1. Run the initial GET Query which will\
\ return a callback URL. \n\n<br>\n\n```json\n{\n \"logs\": [\n \"f9c6e2c1-ac7a-4a29-8faa-a8d70f96df70\"\
\n ],\n \"id\": \"deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\",\n \"progress\"\
:0,\n \"query\": {\n \"statement\": \"where(foo) calculate(count:x)\"\
,\n \"during\": {\n \"to\": 100000,\n \"from\": 100\n }\n\
\ },\n \"links\": [{\n \"rel\": \"self\",\n \"href\": \"https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
\n }]\n}\n```\n\n<br>\n\n**Note**: If the initial GET Query is small, then\
\ the results are returned right away and there is no need to use the callback\
\ URL to poll.\n \n<br>\n\n2. Then use the callback URL to poll request and\
\ get log entries. \n\n<br>\n\n`\"href\": \"https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
`\n\n<br>\n\n```json\n{\n \"logs\": [\n \"b7b33bce-58f1-42db-a36a-f452aa240d73\"\
\n ],\n \"events\": [\n {\n \"labels\": [],\n \"timestamp\"\
: 1583009183456,\n \"sequence_number\": 3234730521598636000,\n \"\
log_id\": \"b7b33bce-58f1-42db-a36a-f452aa240d73\",\n \"message\": \"\
{\\\"http.addr\\\" : \\\"176.9.8.97\\\",\\\"http.timestamp\\\" : \\\"2020-02-29\
\ 20:53:34.530862\\\",\\\"http.method\\\" : \\\"GET\\\",\\\"http.path\\\"\
\ : \\\"/resources/contact-us.php\\\",\\\"http.status\\\" : \\\"500\\\",\\\
\"http.bytes\\\" : 4046,\\\"http.referer\\\" : \\\"www.google.ie\\\",\\\"\
http.agent\\\" : \\\"Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26\
\ (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25\\\",\\\"\
http.host\\\" : \\\"eu-prod-3\\\",\\\"http.responsetime\\\" : 11843}\",\n\
\ \"links\": [\n {\n \"rel\": \"Context\",\n \
\ \"href\": \"https://eu.api.insight.rapid7.com/log_search/query/context/3234730521598636032?per_page=50×tamp=1583009183456&log_keys=b7b33bce-58f1-42db-a36a-f452aa240d73&context_type=SURROUND\"\
\n }\n ]\n }\n ],\n \"leql\": {\n \"statement\": \"where(http.status)\"\
,\n \"during\": {\n \"from\": 1583009182433,\n \"to\": 1585601175000,\n\
\ \"time_range\": \"Last 30 Days\"\n }\n }\n}\n```"
operationId: Get_A_Long_Running_Query
parameters:
- description: Generated by shuffler.io OpenAPI
in: path
name: query_id
required: true
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Get A Long Running Query
/management/logs:
get:
description: "Request used to list all Logs for an account.\n\n<br>\n\n**Authentication**\n\
\ - Read Write\n - Read Only"
operationId: Get_All_Logs
parameters: []
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Get All Logs
/management/logs/{logId}:
get:
description: "Request used to get a specific Log from an account.\n\n<br>\n\n\
**Authentication**\n - Read Write\n - Read Only\n\n\n\n\n\n\n\n\n"
operationId: Get_a_Log
parameters:
- description: Generated by shuffler.io OpenAPI
in: path
name: logId
required: true
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Get a Log
/management/logsets:
get:
description: "Get all Log Sets from an account.\n\n<br>\n\n**Authentication**\n\
\ - Owner\n - Read Write\n - Read Only"
operationId: Get_All_Log_Sets
parameters: []
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Get All Log Sets
/management/logsets/{logsetid}:
get:
description: "Get a specific LogSet from an account. \n\n<br>\n\n**Authentication**\n\
\ - Owner\n - Read Write\n - Read Only"
operationId: Get_A_Log_Set
parameters:
- description: Generated by shuffler.io OpenAPI
in: path
name: logsetid
required: true
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Get A Log Set
/query/logs/{log_id}:
get:
description: "Query your Log entries using a LEQL query.\n\n<br>\n\n**Authentication**\n\
\ - Read Only\n\n \n<br>\n\nDepending on the size of the underlying dataset\
\ of the complexity of the query, a request may not yield a value straight\
\ away. In this case a well-formed query will return an `HTTP 202` response\
\ and an ID you can use to check its state.\n\n<br>\n\nUse the `ID` returned\
\ to poll the query. In this example the ID is `deace1fd-e605-41cd-a45c-5bf1ff0c3402-1`.\
\ \nThe link array object will return the query URL that can be used. \n\n\
<br>\n\n```bash\ncurl https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\
\ -H 'x-api-key: 00112233-4455-6677-8899-aabbccddeeff '\n```\n\n<br>\n\nThere\
\ is no limit on how frequently you can poll a query, or how many times you\
\ may poll it. However, if you do not poll a query resource for 20 seconds,\
\ it will expire. Subsequent calls to that resource will return a 404.\n\n\
<br>\n\n## How to poll a query\n1. Run the initial GET Query which will return\
\ a callback URL. \n\n<br>\n\n```json\n{\n \"logs\": [\n \"f9c6e2c1-ac7a-4a29-8faa-a8d70f96df70\"\
\n ],\n \"id\": \"deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\",\n \"progress\"\
:0,\n \"query\": {\n \"statement\": \"where(foo) calculate(count:x)\"\
,\n \"during\": {\n \"to\": 100000,\n \"from\": 100\n }\n\
\ },\n \"links\": [{\n \"rel\": \"self\",\n \"href\": \"https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
\n }]\n}\n```\n\n<br>\n\n**Note**: If the initial GET Query is small, then\
\ the results are returned right away and there is no need to use the callback\
\ URL to poll. \n\n<br>\n\n2. Then use the callback URL to poll request and\
\ get log entries. \n\n<br>\n\n`\"href\": \"https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
`\n\n<br>\n\n```json\n{\n \"logs\": [\n \"b7b33bce-58f1-42db-a36a-f452aa240d73\"\
\n ],\n \"events\": [\n {\n \"labels\": [],\n \"timestamp\"\
: 1583009183456,\n \"sequence_number\": 3234730521598636000,\n \"\
log_id\": \"b7b33bce-58f1-42db-a36a-f452aa240d73\",\n \"message\": \"\
{\\\"http.addr\\\" : \\\"176.9.8.97\\\",\\\"http.timestamp\\\" : \\\"2020-02-29\
\ 20:53:34.530862\\\",\\\"http.method\\\" : \\\"GET\\\",\\\"http.path\\\"\
\ : \\\"/resources/contact-us.php\\\",\\\"http.status\\\" : \\\"500\\\",\\\
\"http.bytes\\\" : 4046,\\\"http.referer\\\" : \\\"www.google.ie\\\",\\\"\
http.agent\\\" : \\\"Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26\
\ (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25\\\",\\\"\
http.host\\\" : \\\"eu-prod-3\\\",\\\"http.responsetime\\\" : 11843}\",\n\
\ \"links\": [\n {\n \"rel\": \"Context\",\n \
\ \"href\": \"https://eu.api.insight.rapid7.com/log_search/query/context/3234730521598636032?per_page=50×tamp=1583009183456&log_keys=b7b33bce-58f1-42db-a36a-f452aa240d73&context_type=SURROUND\"\
\n }\n ]\n }\n ],\n \"leql\": {\n \"statement\": \"where(http.status)\"\
,\n \"during\": {\n \"from\": 1583009182433,\n \"to\": 1585601175000,\n\
\ \"time_range\": \"Last 30 Days\"\n }\n }\n}\n```"
operationId: Get_A_Query
parameters:
- description: "A valid [LEQL query](https://docs.logentries.com/docs/search#section-leql)\
\ to run against the log. \nFormat: url-encoded string.\nExample: `query=where(foo=bar)`"
in: query
name: query
required: true
schema:
type: string
- description: "Lower bound of the time range you want to query against. \n\
Format: UNIX timestamp in milliseconds. \nExample:`1450557004000`"
in: query
name: from
required: true
schema:
type: string
- description: "Upper bound of the time range you want to query against. \n\
Format:UNIX timestamp in milliseconds. \nExample:`1460557604000`"
in: query
name: to
required: true
schema:
type: string
- description: 'Number of log entries to return per page. Default of 50.
Example: `per_page=50`'
in: query
name: per_page
required: false
schema:
type: string
- description: "The earlier sequence number of a log entry to start searching\
\ from. \nExample: `sequence_number=10`"
in: query
name: sequence_number
required: false
schema:
type: string
- description: Generated by shuffler.io OpenAPI
in: path
name: log_id
required: true
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Get A Query
/query/saved_queries:
get:
description: "Returns all saved queries. To return a specific save query use\
\ the `query_id` parameter.\n\n<br>\n\n**Authentication**\n* Owner\n* Read\
\ Write\n* Read Only\n\n<br>\n\nDepending on the size of the underlying dataset\
\ of the complexity of the query, a request may not yield a value straight\
\ away. In this case a well-formed query will return an `HTTP 202` response\
\ and an ID you can use to check its state.\n\n<br>\n\nUse the `ID` returned\
\ to poll the query. In this example the ID is `deace1fd-e605-41cd-a45c-5bf1ff0c3402-1`.\
\ \nThe link array object will return the query URL that can be used. \n\n\
<br>\n\n```bash\ncurl https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\
\ -H 'x-api-key: 00112233-4455-6677-8899-aabbccddeeff '\n```\n<br>\n\nThere\
\ is no limit on how frequently you can poll a query, or how many times you\
\ may poll it. However, if you do not poll a query resource for 20 seconds,\
\ it will expire. Subsequent calls to that resource will return a 404.\n\n\
<br>\n\n## How to poll a query\n\n<br>\n\n1. Run the initial GET Query which\
\ will return a callback URL.\n \n<br>\n\n```json\n{\n \"logs\": [\n \"\
f9c6e2c1-ac7a-4a29-8faa-a8d70f96df70\"\n ],\n \"id\": \"deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
,\n \"progress\":0,\n \"query\": {\n \"statement\": \"where(foo) calculate(count:x)\"\
,\n \"during\": {\n \"to\": 100000,\n \"from\": 100\n }\n\
\ },\n \"links\": [{\n \"rel\": \"self\",\n \"href\": \"https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
\n }]\n}\n```\n\n<br>\n\n**Note**: If the initial GET Query is small, then\
\ the results are returned right away and there is no need to use the callback\
\ URL to poll.\n \n<br>\n\n2. Then use the callback URL to poll request and\
\ get log entries. \n\n<br>\n\n`\"href\": \"https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
`\n\n<br>\n\n```json\n{\n \"logs\": [\n \"b7b33bce-58f1-42db-a36a-f452aa240d73\"\
\n ],\n \"events\": [\n {\n \"labels\": [],\n \"timestamp\"\
: 1583009183456,\n \"sequence_number\": 3234730521598636000,\n \"\
log_id\": \"b7b33bce-58f1-42db-a36a-f452aa240d73\",\n \"message\": \"\
{\\\"http.addr\\\" : \\\"176.9.8.97\\\",\\\"http.timestamp\\\" : \\\"2020-02-29\
\ 20:53:34.530862\\\",\\\"http.method\\\" : \\\"GET\\\",\\\"http.path\\\"\
\ : \\\"/resources/contact-us.php\\\",\\\"http.status\\\" : \\\"500\\\",\\\
\"http.bytes\\\" : 4046,\\\"http.referer\\\" : \\\"www.google.ie\\\",\\\"\
http.agent\\\" : \\\"Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26\
\ (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25\\\",\\\"\
http.host\\\" : \\\"eu-prod-3\\\",\\\"http.responsetime\\\" : 11843}\",\n\
\ \"links\": [\n {\n \"rel\": \"Context\",\n \
\ \"href\": \"https://eu.api.insight.rapid7.com/log_search/query/context/3234730521598636032?per_page=50×tamp=1583009183456&log_keys=b7b33bce-58f1-42db-a36a-f452aa240d73&context_type=SURROUND\"\
\n }\n ]\n }\n ],\n \"leql\": {\n \"statement\": \"where(http.status)\"\
,\n \"during\": {\n \"from\": 1583009182433,\n \"to\": 1585601175000,\n\
\ \"time_range\": \"Last 30 Days\"\n }\n }\n}\n```"
operationId: Get_All_Saved_Queries
parameters:
- description: 'The UUID to return a specific query.
Example: `de305d54-75b4-431b-adb2-eb6b9e546014`'
in: query
name: queryid
required: false
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Get All Saved Queries
post:
description: 'Request to create a new Saved Query.
<br>
**Authentication**
* Owner
* Read Write'
operationId: Create_a_Saved_Query
parameters:
- description: Header generated by shuffler.io OpenAPI
example: application/json
in: header
multiline: false
name: Content-Type
required: false
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Create a Saved Query
/query/saved_queries/{saved_query_id}:
delete:
description: Delete a Saved Query.
operationId: Delete_A_Saved_Query
parameters:
- description: Generated by shuffler.io OpenAPI
in: path
name: saved_query_id
required: true
schema:
type: string
- description: Header generated by shuffler.io OpenAPI
example: application/json
in: header
multiline: false
name: Content-Type
required: false
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Delete A Saved Query
patch:
description: Request used to update a given resource for a specified saved query.
operationId: Modify_a_Saved_Query
parameters:
- description: Generated by shuffler.io OpenAPI
in: path
name: saved_query_id
required: true
schema:
type: string
- description: Header generated by shuffler.io OpenAPI
example: application/json
in: header
multiline: false
name: Content-Type
required: false
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Modify a Saved Query
put:
description: 'Replace the attributes of a saved query.
<br>
Full object must be used when performing this request otherwise it will fail.'
operationId: Update_a_Saved_Query
parameters:
- description: Generated by shuffler.io OpenAPI
in: path
name: saved_query_id
required: true
schema:
type: string
- description: Header generated by shuffler.io OpenAPI
example: application/json
in: header
multiline: false
name: Content-Type
required: false
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Update a Saved Query
/query/saved_query/{saved_query_id}:
get:
description: "Request used to Query your Log entries using a Saved Query.\n\n\
<br>\n\nNote that if you are already using a from and to value in your Saved\
\ Query then they are not required for performing a GET request.\n\n<br>\n\
\n**Authentication**\n - Read Only\n\n \n<br>\n\nDepending on the size of\
\ the underlying dataset of the complexity of the query, a request may not\
\ yield a value straight away. In this case a well-formed query will return\
\ an `HTTP 202` response and an ID you can use to check its state.\n\n<br>\n\
\nUse the `ID` returned to poll the query. In this example the ID is `deace1fd-e605-41cd-a45c-5bf1ff0c3402-1`.\
\ \nThe link array object will return the query URL that can be used. \n\n\
<br>\n\n```bash\ncurl https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\
\ -H 'x-api-key: 00112233-4455-6677-8899-aabbccddeeff '\n```\n\n<br>\n\nThere\
\ is no limit on how frequently you can poll a query, or how many times you\
\ may poll it. However, if you do not poll a query resource for 20 seconds,\
\ it will expire. Subsequent calls to that resource will return a 404.\n\n\
<br>\n\n## How to poll a query\n\n1. Run the initial GET Query which will\
\ return a callback URL. \n\n<br>\n\n```json\n{\n \"logs\": [\n \"f9c6e2c1-ac7a-4a29-8faa-a8d70f96df70\"\
\n ],\n \"id\": \"deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\",\n \"progress\"\
:0,\n \"query\": {\n \"statement\": \"where(foo) calculate(count:x)\"\
,\n \"during\": {\n \"to\": 100000,\n \"from\": 100\n }\n\
\ },\n \"links\": [{\n \"rel\": \"self\",\n \"href\": \"https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
\n }]\n}\n```\n\n<br>\n\n**Note**: If the initial GET Query is small, then\
\ the results are returned right away and there is no need to use the callback\
\ URL to poll.\n \n<br>\n\n2. Then use the callback URL to poll request and\
\ get log entries. \n\n<br>\n\n`\"href\": \"https://us.rest.logs.insight.rapid7.com/query/deace1fd-e605-41cd-a45c-5bf1ff0c3402-1\"\
`\n\n<br>\n\n```json\n{\n \"logs\": [\n \"b7b33bce-58f1-42db-a36a-f452aa240d73\"\
\n ],\n \"events\": [\n {\n \"labels\": [],\n \"timestamp\"\
: 1583009183456,\n \"sequence_number\": 3234730521598636000,\n \"\
log_id\": \"b7b33bce-58f1-42db-a36a-f452aa240d73\",\n \"message\": \"\
{\\\"http.addr\\\" : \\\"176.9.8.97\\\",\\\"http.timestamp\\\" : \\\"2020-02-29\
\ 20:53:34.530862\\\",\\\"http.method\\\" : \\\"GET\\\",\\\"http.path\\\"\
\ : \\\"/resources/contact-us.php\\\",\\\"http.status\\\" : \\\"500\\\",\\\
\"http.bytes\\\" : 4046,\\\"http.referer\\\" : \\\"www.google.ie\\\",\\\"\
http.agent\\\" : \\\"Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26\
\ (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25\\\",\\\"\
http.host\\\" : \\\"eu-prod-3\\\",\\\"http.responsetime\\\" : 11843}\",\n\
\ \"links\": [\n {\n \"rel\": \"Context\",\n \
\ \"href\": \"https://eu.api.insight.rapid7.com/log_search/query/context/3234730521598636032?per_page=50×tamp=1583009183456&log_keys=b7b33bce-58f1-42db-a36a-f452aa240d73&context_type=SURROUND\"\
\n }\n ]\n }\n ],\n \"leql\": {\n \"statement\": \"where(http.status)\"\
,\n \"during\": {\n \"from\": 1583009182433,\n \"to\": 1585601175000,\n\
\ \"time_range\": \"Last 30 Days\"\n }\n }\n}\n```"
operationId: Get_A_Saved_Query
parameters:
- description: 'Lower bound of the time range you want to query against.
Format: UNIX timestamp in milliseconds
Example: `from=1450557604000`'
in: query
name: from
required: false
schema:
type: string
- description: 'Lower bound of the time range you want to query against.
Format: UNIX timestamp in milliseconds
Example: `to=1460557604000`'
in: query
name: to
required: false
schema:
type: string
- description: "Number of log entries to return per page. Default of 50.\nExample:\
\ `per_page=50`\t"
in: query
name: per_page
required: false
schema:
type: string
- description: "The earlier sequence number of a log entry to start searching\
\ from.\nExample:`sequence_number=10`\t"
in: query
name: sequence_number
required: false
schema:
type: string
- description: Generated by shuffler.io OpenAPI
in: path
name: saved_query_id
required: true
schema:
type: string
requestBody:
content: {}
responses:
default:
content:
text/plain:
schema:
example: ''
type: string
description: default
summary: Get A Saved Query
schemes:
- 'https:'
servers:
- url: https://eu.api.insight.rapid7.com/log_search
tags:
- name: Query
- name: Logs
- name: Logsets
- name: Saved Queries
- name: IDR