Create a Timeline or Timeline template
Create a new Timeline or Timeline template.
Body
Required
The required Timeline fields used to create a new Timeline, along with optional fields that will be created if not provided.
-
The status of the Timeline.
Values are
active
,draft
, orimmutable
. -
A unique identifier for the Timeline template.
-
Timeline template version number.
-
Hide timeline attributes Show timeline attributes object
-
The Timeline's columns
Hide columns attributes Show columns attributes object
-
The time the Timeline was created, using a 13-digit Epoch timestamp.
-
The user who created the Timeline.
-
Object containing query clauses
Hide dataProviders attributes Show dataProviders attributes object
-
Hide and attributes Show and attributes object
-
Hide queryMatch attributes Show queryMatch attributes object | null
-
The type of data provider.
Values are
default
ortemplate
.
-
-
ID of the Timeline's Data View
-
The Timeline's search period.
Hide dateRange attributes Show dateRange attributes object | null
-
The Timeline's description
-
EQL query that is used in the correlation tab
Hide eqlOptions attributes Show eqlOptions attributes object | null
-
Event types displayed in the Timeline
-
A list of row renderers that should not be used when in
Event renderers
modeValues are
alert
,alerts
,auditd
,auditd_file
,library
,netflow
,plain
,registry
,suricata
,system
,system_dns
,system_endgame_process
,system_file
,system_fim
,system_security_event
,system_socket
,threat_match
, orzeek
. -
Indicates when and who marked a Timeline as a favorite.
-
A list of filters that should be applied to the query
Hide filters attributes Show filters attributes object
-
A list of index names to use in the query (e.g. when the default data view has been modified)
-
Indicates whether the KQL bar filters the query results or searches for additional results, where:
filter
: filters query resultssearch
: displays additional search results
-
KQL bar query.
Hide kqlQuery attribute Show kqlQuery attribute object | null
-
The ID of the saved query that might be used in the Query tab
-
The ID of the saved search that is used in the ES|QL tab
-
The status of the Timeline.
Values are
active
,draft
, orimmutable
. -
A unique ID (UUID) for Timeline templates. For Timelines, the value is
null
. -
Timeline template version number. For Timelines, the value is
null
. -
The type of Timeline.
Values are
default
ortemplate
. -
The Timeline's title.
-
The last time the Timeline was updated, using a 13-digit Epoch timestamp
-
The user who last updated the Timeline
-
-
A unique identifier for the Timeline.
-
The type of Timeline.
Values are
default
ortemplate
.
Responses
-
Indicates the Timeline was successfully created.
Hide response attributes Show response attributes object
-
The Timeline's columns
Hide columns attributes Show columns attributes object
-
The time the Timeline was created, using a 13-digit Epoch timestamp.
-
The user who created the Timeline.
-
Object containing query clauses
Hide dataProviders attributes Show dataProviders attributes object
-
Hide and attributes Show and attributes object
-
Hide queryMatch attributes Show queryMatch attributes object | null
-
The type of data provider.
Values are
default
ortemplate
.
-
-
ID of the Timeline's Data View
-
The Timeline's search period.
Hide dateRange attributes Show dateRange attributes object | null
-
The Timeline's description
-
EQL query that is used in the correlation tab
Hide eqlOptions attributes Show eqlOptions attributes object | null
-
Event types displayed in the Timeline
-
A list of row renderers that should not be used when in
Event renderers
modeValues are
alert
,alerts
,auditd
,auditd_file
,library
,netflow
,plain
,registry
,suricata
,system
,system_dns
,system_endgame_process
,system_file
,system_fim
,system_security_event
,system_socket
,threat_match
, orzeek
. -
Indicates when and who marked a Timeline as a favorite.
-
A list of filters that should be applied to the query
Hide filters attributes Show filters attributes object
-
A list of index names to use in the query (e.g. when the default data view has been modified)
-
Indicates whether the KQL bar filters the query results or searches for additional results, where:
filter
: filters query resultssearch
: displays additional search results
-
KQL bar query.
Hide kqlQuery attribute Show kqlQuery attribute object | null
-
The ID of the saved query that might be used in the Query tab
-
The ID of the saved search that is used in the ES|QL tab
-
The status of the Timeline.
Values are
active
,draft
, orimmutable
. -
A unique ID (UUID) for Timeline templates. For Timelines, the value is
null
. -
Timeline template version number. For Timelines, the value is
null
. -
The type of Timeline.
Values are
default
ortemplate
. -
The Timeline's title.
-
The last time the Timeline was updated, using a 13-digit Epoch timestamp
-
The user who last updated the Timeline
-
The
savedObjectId
of the Timeline or Timeline template -
The version of the Timeline or Timeline template
-
A list of all the notes that are associated to this Timeline.
Hide eventIdToNoteIds attributes Show eventIdToNoteIds attributes object
-
The time the note was created, using a 13-digit Epoch timestamp.
-
The user who created the note.
-
The last time the note was updated, using a 13-digit Epoch timestamp
-
The user who last updated the note
-
The
_id
of the associated event for this note. -
The text of the note
-
The
savedObjectId
of the Timeline that this note is associated with -
The
savedObjectId
of the note -
The version of the note
-
-
A list of all the ids of notes that are associated to this Timeline.
-
A list of all the notes that are associated to this Timeline.
Hide notes attributes Show notes attributes object
-
The time the note was created, using a 13-digit Epoch timestamp.
-
The user who created the note.
-
The last time the note was updated, using a 13-digit Epoch timestamp
-
The user who last updated the note
-
The
_id
of the associated event for this note. -
The text of the note
-
The
savedObjectId
of the Timeline that this note is associated with -
The
savedObjectId
of the note -
The version of the note
-
-
A list of all the ids of pinned events that are associated to this Timeline.
-
A list of all the pinned events that are associated to this Timeline.
Hide pinnedEventsSaveObject attributes Show pinnedEventsSaveObject attributes object
-
The time the pinned event was created, using a 13-digit Epoch timestamp.
-
The user who created the pinned event.
-
The last time the pinned event was updated, using a 13-digit Epoch timestamp
-
The user who last updated the pinned event
-
The
_id
of the associated event for this pinned event. -
The
savedObjectId
of the timeline that this pinned event is associated with -
The
savedObjectId
of this pinned event -
The version of this pinned event
-
-
-
Indicates that there was an error in the Timeline creation.
curl \
--request POST 'https://<KIBANA_URL>/api/timeline' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"status":"active","templateTimelineId":"6ce1b592-84e3-4b4a-9552-f189d4b82075","templateTimelineVersion":12,"timeline":{"columns":[{"id":"@timestamp","columnHeaderType":"not-filtered"},{"id":"event.category","columnHeaderType":"not-filtered"}],"created":1587468588922,"createdBy":"casetester","dataProviders":[{"id":"id-d3a1d35a3e84a81b2f8f3859e064c224cdee1b4bcbf66f57d124dcc739c98e6b","name":"d3a1d35a3e84a81b2f8f3859e064c224cdee1b4bcbf66f57d124dcc739c98e6b","enabled":true,"excluded":false,"queryMatch":{"field":"_id,","value":"d3a1d35a3e84a81b2f8f3859e064c224cdee1b4bcbf66f57d124dcc739c98e6b,","operator":":"}}],"dataViewId":"security-solution-default","dateRange":{"end":1587456479201,"start":1587370079200},"description":"Investigating exposure of CVE XYZ","eqlOptions":{"size":100,"query":"sequence\\n[process where process.name == \"sudo\"]\\n[any where true]","timestampField":"@timestamp","eventCategoryField":"event.category"},"eventType":"all","excludedRowRendererIds":["alert"],"favorite":[{"userName":"elastic","favoriteDate":1741337636741}],"filters":[{"meta":{"key":"@timestamp","type":"exists","alias":"Custom filter name","index":".alerts-security.alerts-default,logs-*","value":"exists","negate":"false,","disabled":false},"query":"{\"exists\":{\"field\":\"@timestamp\"}}"}],"indexNames":[".logs*"],"kqlMode":"search","kqlQuery":{"kuery":{"kind":"kuery","expression":"_id : *"},"filterQuery":null,"serializedQuery":"{\"bool\":{\"should\":[{\"exists\":{\"field\":\"_id\"}}],\"minimum_should_match\":1}}"},"savedQueryId":"c7b16904-02d7-4f32-b8f2-cc20f9625d6e","savedSearchId":"6ce1b592-84e3-4b4a-9552-f189d4b82075","sort":{"columnId":"@timestamp","sortDirection":"desc"},"status":"active","templateTimelineId":"6ce1b592-84e3-4b4a-9552-f189d4b82075","templateTimelineVersion":12,"timelineType":"default","title":"CVE XYZ investigation","updated":1741344876825,"updatedBy":"casetester"},"timelineId":"6ce1b592-84e3-4b4a-9552-f189d4b82075","timelineType":"default","version":"string"}'