GET Events +path
Queries Operations for Logs for events.
Specifies constraints on the events to retrieve. See the specifying constraints section of /events for details.
The maximum number of events to retrieve.
The time to wait for a response. If the complete result is not
available within that time, partial result is returned and the
complete
flag is set to true
.
The format of query results in the reponse.
If provided, fields defined in the given content-pack are returned in the response, in addition to static fields. Specify this parameter more than once to extract fields from several content packs. If this parameter is not specified, then only static fields are returned in the response payload
The event timestamp sort direction.
{
"complete": true,
"duration": 12,
"events": [
{
"text": "[2017-06-09 12:21:02.076-0700] [vpxa] ...",
"timestamp": 1496996462076,
"timestampString": "2017-06-09 12:21:02.076 GMT+04:00",
"fields": [
{
"name": "source",
"content": "10.0.0.123"
},
{
"name": "event_type",
"content": "v4_4eca2033"
},
{
"name": "appname",
"startPosition": 32,
"length": 4
}
]
},
{
"text": "[2017-06-09 12:20:56.176-0700] [hostd] ...",
"timestamp": 1496996456176,
"timestampString": "2017-06-09 12:20:56.176 GMT+04:00",
"fields": [
{
"name": "source",
"content": "10.0.0.234"
},
{
"name": "event_type",
"content": "v4_a7ce5b6a"
},
{
"name": "appname",
"startPosition": 32,
"length": 5
}
]
}
]
}
curl -H 'Authorization: <value>' https://{api_host}/api/v2/events/{+path}