API Guide

GET /syslogs/messages/latest
Retrieves syslog messages between the start and end timestamp.
API
GET /syslogs/messages/latest
Description This API retrieves the latest N syslog messages for a switch identified by OID.
Parameters
Table 75. API parameters
Filter name Description
oid
string
(query)
If present, the Object ID acts as a filter.
max-messages
integer
(query)
Maximum number of messages to retrieve. The
default is 100.
filter
string
(query)
Matching phrase, accepts wildcards (*).
Responses 200 — Success or error response
{
"data": [
{
"oid": "2:51350862726037506",
"values": [
{
"timestamp": 1567190955347,
"message": "<37>1 2019-08-31T02:46:11.712195+00:00 sc2-t2-z9100-s1
audit 2967 - - Node.1-Unit.1:PRI [audit],
Dell EMC (OS10) USER_AUTH pid=2967 uid=0 auid=4294967295 ses=4294967295
msg='op=PAM:authentication
acct=\"admin\" exe=\"/usr/bin/python2.7\" hostname=? addr=? terminal=?
res=success' \n\n"
}
]
}
]
}
401 — You are not authorized to perform this operation
{
"new_object_id": "string",
"id": "string",
"message": "string",
"messageParams": [
"string"
],
"messages": [
{
"id": "string",
"message": "string",
"field_name": "string",
"messageParams": [
"string"
]
}
Syslogs
159