You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugins/security_solution/server/lib/timeline/routes/README.md
+298-1Lines changed: 298 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -323,4 +323,301 @@ kbn-version: 8.0.0
323
323
"timelineId":"f5a4bd10-83cd-11ea-bf78-0547a65f1281", // This is a must as well
324
324
"version":"Wzg2LDFd"// Please provide the existing timeline version
325
325
}
326
-
```
326
+
```
327
+
328
+
## Export timeline api
329
+
330
+
#### POST /api/timeline/_export
331
+
332
+
##### Authorization
333
+
334
+
Type: Basic Auth
335
+
336
+
username: Your Kibana username
337
+
338
+
password: Your Kibana password
339
+
340
+
341
+
342
+
343
+
##### Request header
344
+
345
+
```
346
+
347
+
Content-Type: application/json
348
+
349
+
kbn-version: 8.0.0
350
+
351
+
```
352
+
353
+
##### Request param
354
+
355
+
```
356
+
file_name: ${filename}.ndjson
357
+
```
358
+
359
+
##### Request body
360
+
```json
361
+
{
362
+
ids: [
363
+
${timelineId}
364
+
]
365
+
}
366
+
```
367
+
368
+
## Import timeline api
369
+
370
+
#### POST /api/timeline/_import
371
+
372
+
##### Authorization
373
+
374
+
Type: Basic Auth
375
+
376
+
username: Your Kibana username
377
+
378
+
password: Your Kibana password
379
+
380
+
381
+
382
+
383
+
##### Request header
384
+
385
+
```
386
+
387
+
Content-Type: application/json
388
+
389
+
kbn-version: 8.0.0
390
+
391
+
```
392
+
393
+
##### Request body
394
+
395
+
```
396
+
{
397
+
file: sample.ndjson
398
+
}
399
+
```
400
+
401
+
402
+
(each json in the file should match this format)
403
+
example:
404
+
```
405
+
{"savedObjectId":"a3002fd0-781b-11ea-85e4-df9002f1452c","version":"WzIzLDFd","columns":[{"columnHeaderType":"not-filtered","id":"@timestamp"},{"columnHeaderType":"not-filtered","id":"message"},{"columnHeaderType":"not-filtered","id":"event.category"},{"columnHeaderType":"not-filtered","id":"event.action"},{"columnHeaderType":"not-filtered","id":"host.name"},{"columnHeaderType":"not-filtered","id":"source.ip"},{"columnHeaderType":"not-filtered","id":"destination.ip"},{"columnHeaderType":"not-filtered","id":"user.name"}],"dataProviders":[],"description":"tes description","eventType":"all","filters":[{"meta":{"field":null,"negate":false,"alias":null,"disabled":false,"params":"{\"query\":\"MacBook-Pro-de-Gloria.local\"}","type":"phrase","key":"host.name"},"query":"{\"match_phrase\":{\"host.name\":\"MacBook-Pro-de-Gloria.local\"}}","missing":null,"exists":null,"match_all":null,"range":null,"script":null}],"kqlMode":"filter","kqlQuery":{"filterQuery":{"serializedQuery":"{\"bool\":{\"should\":[{\"exists\":{\"field\":\"host.name\"}}],\"minimum_should_match\":1}}","kuery":{"expression":"host.name: *","kind":"kuery"}}},"title":"Test","dateRange":{"start":1585227005527,"end":1585313405527},"savedQueryId":null,"sort":{"columnId":"@timestamp","sortDirection":"desc"},"created":1586187068132,"createdBy":"angela","updated":1586187068132,"updatedBy":"angela","eventNotes":[],"globalNotes":[{"noteId":"a3b4d9d0-781b-11ea-85e4-df9002f1452c","version":"WzI1LDFd","note":"this is a note","timelineId":"a3002fd0-781b-11ea-85e4-df9002f1452c","created":1586187069313,"createdBy":"angela","updated":1586187069313,"updatedBy":"angela"}],"pinnedEventIds":[]}
'Invalid value "undefined" supplied to "file_name",Invalid value "undefined" supplied to "exclude_export_details",Invalid value "undefined" supplied to "exclude_export_details"'
101
+
'Invalid value "undefined" supplied to "file_name"'
0 commit comments