auditevents

Download Spec

post /monitor-service/api/v1/auditevents/search

Search for audit events

keywords

string

Example
"privx,service"

user_id

string

Example
"21ca9e5d-617c-4c9b-8a1c-8a49d9998f93"

connection_id

string

Example
"21ca9e5d-617c-4c9b-8a1c-8a49d9998f93"

host_id

string

Example
"21ca9e5d-617c-4c9b-8a1c-8a49d9998f93"

source_id

string

Example
"21ca9e5d-617c-4c9b-8a1c-8a49d9998f93"

session_id

string

Example
"21ca9e5d-617c-4c9b-8a1c-8a49d9998f93"

access_group_id

string

Example
"21ca9e5d-617c-4c9b-8a1c-8a49d9998f93"

start_time

string

date-time

Example
"2017-01-01T15:05:05Z"

end_time

string

date-time

Example
"2017-01-01T15:05:05Z"

Request

{
  "keywords": "privx,service",
  "user_id": "21ca9e5d-617c-4c9b-8a1c-8a49d9998f93",
  "connection_id": "21ca9e5d-617c-4c9b-8a1c-8a49d9998f93",
  "host_id": "21ca9e5d-617c-4c9b-8a1c-8a49d9998f93",
  "source_id": "21ca9e5d-617c-4c9b-8a1c-8a49d9998f93",
  "session_id": "21ca9e5d-617c-4c9b-8a1c-8a49d9998f93",
  "access_group_id": "21ca9e5d-617c-4c9b-8a1c-8a49d9998f93",
  "start_time": "2017-01-01T15:05:05Z",
  "end_time": "2017-01-01T15:05:05Z"
}

Response

ExamplesSchema

Successful request, respond with a list of event details

{
  "count": 123,
  "items": [
    {
      "service_id": "21ca9e5d-617c-4c9b-8a1c-8a49d9998f93",
      "service_name": "MONITOR-SERVICE",
      "event_id": "123",
      "event_name": "Service-starting",
      "message": {},
      "created": "string"
    }
  ]
}

get /monitor-service/api/v1/auditevents

Get all audit events

offset

int

Offset from which to start fetching objects

Default
0

limit

int

Maximum number of objects to return

Default
50
Max
1000

sortkey

string

Sort by specific object property

Default
"created"
Enum
  • created

sortdir

string

Sort direction, asc or desc

Default
"ASC"
Enum
  • ASC
  • DESC

fuzzycount

boolean

If keyword is present the queries will return a fuzzy total count instead of exact total count

Response

ExamplesSchema

Successful request, respond with a list of event details

{
  "count": 123,
  "items": [
    {
      "service_id": "21ca9e5d-617c-4c9b-8a1c-8a49d9998f93",
      "service_name": "MONITOR-SERVICE",
      "event_id": "123",
      "event_name": "Service-starting",
      "message": {},
      "created": "string"
    }
  ]
}

get /monitor-service/api/v1/auditevents/codes

Get audit event codes.

Authorization

string

required

OAuth2 token

Default
"Bearer a-proper-token-goes-here"

Response

ExamplesSchema

Successful request, respond with event codes

{
  "key": 123,
  "value": {
    "event_id": "string",
    "event_name": "string",
    "event_desc": "string"
  }
}

Was this page helpful?