[SIEM] Update readme for timeline apis#67038
Conversation
|
Pinging @elastic/siem (Team:SIEM) |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
x-pack/plugins/security_solution/server/lib/timeline/routes/README.md
Outdated
Show resolved
Hide resolved
|
|
||
| ##### Request body | ||
| a .ndjson file | ||
| (each json in the file should match this [format](https://github.com/elastic/kibana/blob/master/x-pack/plugins/siem/public/graphql/types.ts#L118-L146)) |
There was a problem hiding this comment.
right, we've change the name of the plugin!!
There was a problem hiding this comment.
I'll remove there link here as we are not going to use graphql, might not be a good idea to refer to that.
x-pack/plugins/security_solution/server/lib/timeline/routes/README.md
Outdated
Show resolved
Hide resolved
|
|
||
| ```json | ||
| { | ||
| "timelineType": "default" or "template" |
There was a problem hiding this comment.
if i dont pass a body the error I get is:
"[request body]: Invalid value \"null\" supplied to \"\""
I wish it told me the key timelineType
There was a problem hiding this comment.
Thanks for pointing that out!
I have a PR up for fixing that: #65448
I'll make sure this won't happen after the fix.
stephmilovic
left a comment
There was a problem hiding this comment.
Thanks for the update and making the requested changes. LGTM, nice work!
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
* update doc * update unit test * remove redundant params * fix types * update readme * update readme Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* update doc * update unit test * remove redundant params * fix types * update readme * update readme Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* master: (59 commits) [Lens] Fix broken test (elastic#70117) [SIEM] Import timeline fix (elastic#65448) [SECURITY SOLUTION][INGEST] UX update for ingest manager edit/create datasource for endpoint (elastic#70079) [Telemetry] Collector Schema (elastic#64942) [Endpoint] Add Endpoint empty states for onboarding (elastic#69626) Hide unused resolver buttons (elastic#70112) [Security] `Investigate in Resolver` Timeline Integration (elastic#70111) [Discover] Improve styling of graphs in sidebar (elastic#69440) [Metrics UI] Fix EuiTheme type issue (elastic#69735) skip failing suite (elastic#70104) (elastic#70103) [ENDPOINT] Hide the Timeline Flyout while on the Management Pages (elastic#69998) [SIEM][CASE] Persist callout when dismissed (elastic#68372) [SIEM][Exceptions] - Cleaned up and updated exception list item comment structure (elastic#69532) [Maps] remove indexing state from redux (elastic#69765) Add API integration test for deleting data streams. (elastic#70020) renames SIEM to Security Solution (elastic#70070) Adding saved_objects_page in OSS (elastic#69900) [Lens] Use accordion menus in field list for available and empty fields (elastic#68871) Dynamic uiActions & license support (elastic#68507) [SIEM] Update readme for timeline apis (elastic#67038) ...
…bana into alerting/consumer-based-rbac * 'alerting/consumer-based-rbac' of github.com:gmmorris/kibana: (25 commits) [Lens] Fix broken test (elastic#70117) [SIEM] Import timeline fix (elastic#65448) [SECURITY SOLUTION][INGEST] UX update for ingest manager edit/create datasource for endpoint (elastic#70079) [Telemetry] Collector Schema (elastic#64942) [Endpoint] Add Endpoint empty states for onboarding (elastic#69626) Hide unused resolver buttons (elastic#70112) [Security] `Investigate in Resolver` Timeline Integration (elastic#70111) [Discover] Improve styling of graphs in sidebar (elastic#69440) [Metrics UI] Fix EuiTheme type issue (elastic#69735) skip failing suite (elastic#70104) (elastic#70103) [ENDPOINT] Hide the Timeline Flyout while on the Management Pages (elastic#69998) [SIEM][CASE] Persist callout when dismissed (elastic#68372) [SIEM][Exceptions] - Cleaned up and updated exception list item comment structure (elastic#69532) [Maps] remove indexing state from redux (elastic#69765) Add API integration test for deleting data streams. (elastic#70020) renames SIEM to Security Solution (elastic#70070) Adding saved_objects_page in OSS (elastic#69900) [Lens] Use accordion menus in field list for available and empty fields (elastic#68871) Dynamic uiActions & license support (elastic#68507) [SIEM] Update readme for timeline apis (elastic#67038) ...
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
Summary
Update readme for timeline's api and remove redundant query params
Export timeline api
POST /api/timeline/_export
Authorization
Type: Basic Auth
username: Your Kibana username
password: Your Kibana password
Request header
Request param
file_name ${filename}.ndjson
Request body
{ ids: [ ${timelineId} ] }Import timeline api
POST /api/timeline/_import
Authorization
Type: Basic Auth
username: Your Kibana username
password: Your Kibana password
Request header
Request body
a .ndjson file
(each json in the file should match this format)
example:
Response
Get draft timeline api
GET /api/timeline/_draft
Authorization
Type: Basic Auth
username: Your Kibana username
password: Your Kibana password
Request header
Request param
timelineType
defaultortemplateResponse
{ "data": { "persistTimeline": { "timeline": { "savedObjectId": "ababbd90-99de-11ea-8446-1d7fd9f03ebf", "version": "WzM2MiwzXQ==", "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": "", "eventType": "all", "filters": [], "kqlMode": "filter", "timelineType": "default", "kqlQuery": { "filterQuery": null }, "title": "", "sort": { "columnId": "@timestamp", "sortDirection": "desc" }, "status": "draft", "created": 1589899222908, "createdBy": "casetester", "updated": 1589899222908, "updatedBy": "casetester", "templateTimelineId": null, "templateTimelineVersion": null, "favorite": [], "eventIdToNoteIds": [], "noteIds": [], "notes": [], "pinnedEventIds": [], "pinnedEventsSaveObject": [] } } } }Clean draft timeline api
POST /api/timeline/_draft
Authorization
Type: Basic Auth
username: Your Kibana username
password: Your Kibana password
Request header
Request body
{ "timelineType": "default" or "template" }Response
{ "data": { "persistTimeline": { "timeline": { "savedObjectId": "ababbd90-99de-11ea-8446-1d7fd9f03ebf", "version": "WzQyMywzXQ==", "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": "", "eventType": "all", "filters": [], "kqlMode": "filter", "timelineType": "default", "kqlQuery": { "filterQuery": null }, "title": "", "sort": { "columnId": "@timestamp", "sortDirection": "desc" }, "status": "draft", "created": 1589903306582, "createdBy": "casetester", "updated": 1589903306582, "updatedBy": "casetester", "templateTimelineId": null, "templateTimelineVersion": null, "favorite": [], "eventIdToNoteIds": [], "noteIds": [], "notes": [], "pinnedEventIds": [], "pinnedEventsSaveObject": [] } } } }Checklist
Delete any items that are not applicable to this PR.
[ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[ ] Unit or functional tests were updated or added to match the most common scenarios[ ] This was checked for keyboard-only and screenreader accessibility[ ] This renders correctly on smaller devices using a responsive layout. (You can test this in your browser[ ] This was checked for cross-browser compatibility, including a check against IE11For maintainers
[ ] This was checked for breaking API changes and was labeled appropriately