support-logging API documentation version 1.1.x
http://localhost:48061/api
Welcome
Welcome to the EdgeX Foundry Logging Microservice API Documentation.
/v1/logs
Create a new LogEntry
post /v1/logs
Create a new LogEntry
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "LogEntry Schema",
"type": "object",
"properties": {
"originService": {
"type": "string"
},
"message": {
"type": "string"
},
"logLevel": {
"enum": ["TRACE","DEBUG","INFO","WARN","ERROR"]
},
"created": {
"description": "The creation timestamp",
"type": "integer",
"minimum": 0
}
},
"required": ["originService","message","logLevel"]
}
Example:
{
"logLevel": "WARN",
"originService": "service1",
"message": "Hello, Logging Service!"
}
get /v1/logs/{limit}
URI Parameters
- limit: required (number)
the maximum number of records to fetch
Example:
10
HTTP status code 200
list a collection of LogEntry - limited in size by the limit parameter
Body
Type: application/json
Schema:
array
Example:
[
{
"logLevel": "WARN",
"originService": "service1",
"message": "Hello, Logging Service!",
"created": 1469175494527
},
{
"logLevel": "INFO",
"originService": "service2",
"message": "Hello, Logging Service!",
"created": 1469175494528
}
]
HTTP status code 413
if the number of events exceeds the current max limit
HTTP status code 500
for unknown or unanticipated issues.
get /v1/logs/{start}/{end}/{limit}
URI Parameters
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
- limit: required (number)
the maximimum number of records to fetch
Example:
10
HTTP status code 200
list a collection of LogEntry created between the specified start and end dates - limited in size by the limit parameter
Body
Type: application/json
Schema:
array
Example:
[
{
"logLevel": "WARN",
"originService": "service1",
"message": "Hello, Logging Service!",
"created": 1469175494527
},
{
"logLevel": "INFO",
"originService": "service2",
"message": "Hello, Logging Service!",
"created": 1469175494528
}
]
HTTP status code 413
if the number of events exceeds the current max limit
HTTP status code 500
for unknown or unanticipated issues.
get /v1/logs/originServices/{originServices}/{start}/{end}/{limit}
URI Parameters
- originServices: required (string)
accepting multiple originServices separated by comma
Example:
service1,service2,service3
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
- limit: required (number)
the maximum number of records to fetch
Example:
10
HTTP status code 200
list a collection of LogEntry matching any of the specified originServices and being created between the specified start and end dates - limited in size by the limit parameter
Body
Type: application/json
Schema:
array
Example:
[
{
"logLevel": "WARN",
"originService": "service1",
"message": "Hello, Logging Service!",
"created": 1469175494527
},
{
"logLevel": "INFO",
"originService": "service2",
"message": "Hello, Logging Service!",
"created": 1469175494528
}
]
HTTP status code 413
if the number of events exceeds the current max limit
HTTP status code 500
for unknown or unanticipated issues.
get /v1/logs/keywords/{keywords}/{start}/{end}/{limit}
URI Parameters
- keywords: required (string)
accepting multiple keywords separated by comma
Example:
keyword1,keyword2,keyword3
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
- limit: required (number)
the maximum number of records to fetch
Example:
10
HTTP status code 200
list a collection of LogEntry whose message containing any of the specified keywords and being created between the specified start and end dates - limited in size by the limit parameter
Body
Type: application/json
Schema:
array
Example:
[
{
"logLevel": "WARN",
"originService": "service1",
"message": "Hello, Logging Service!",
"created": 1469175494527
},
{
"logLevel": "INFO",
"originService": "service2",
"message": "Hello, Logging Service!",
"created": 1469175494528
}
]
HTTP status code 413
if the number of events exceeds the current max limit
HTTP status code 500
for unknown or unanticipated issues.
get /v1/logs/logLevels/{logLevels}/{start}/{end}/{limit}
URI Parameters
- logLevels: required (string)
accepting multiple logLevels separated by comma
Example:
ERROR,WARN,INFO,DEBUG,TRACE
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
- limit: required (number)
the maximum number of records to fetch
Example:
10
HTTP status code 200
list a collection of LogEntry matching any of the specified logLevels and being created between the specified start and end dates - limited in size by the limit parameter
Body
Type: application/json
Schema:
array
Example:
[
{
"logLevel": "WARN",
"originService": "service1",
"message": "Hello, Logging Service!",
"created": 1469175494527
},
{
"logLevel": "INFO",
"originService": "service2",
"message": "Hello, Logging Service!",
"created": 1469175494528
}
]
HTTP status code 413
if the number of events exceeds the current max limit
HTTP status code 500
for unknown or unanticipated issues.
get /v1/logs/logLevels/{logLevels}/originServices/{originServices}/{start}/{end}/{limit}
URI Parameters
- logLevels: required (string)
accepting multiple logLevels separated by comma
Example:
ERROR,WARN,INFO,DEBUG,TRACE
- originServices: required (string)
accepting multiple originServices separated by comma
Example:
service1,service2,service3
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
- limit: required (number)
the maximum number of records to fetch
Example:
10
HTTP status code 200
list a collection of LogEntry matching any of the specified logLevels, originServices, and also being created between the specified start and end dates - limited in size by the limit parameter
Body
Type: application/json
Schema:
array
Example:
[
{
"logLevel": "WARN",
"originService": "service1",
"message": "Hello, Logging Service!",
"created": 1469175494527
},
{
"logLevel": "INFO",
"originService": "service2",
"message": "Hello, Logging Service!",
"created": 1469175494528
}
]
HTTP status code 413
if the number of events exceeds the current max limit
HTTP status code 500
for unknown or unanticipated issues.
delete /v1/logs/{start}/{end}
delete /v1/logs/originServices/{originServices}/{start}/{end}
URI Parameters
- originServices: required (string)
accepting multiple originServices separated by comma
Example:
service1,service2,service3
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
delete /v1/logs/keywords/{keywords}/{start}/{end}
URI Parameters
- keywords: required (string)
accepting multiple keywords separated by comma
Example:
keyword1,keyword2,keyword3
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
delete /v1/logs/logLevels/{logLevels}/{start}/{end}
URI Parameters
- logLevels: required (string)
accepting multiple logLevels separated by comma
Example:
ERROR,WARN,INFO,DEBUG,TRACE
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
delete /v1/logs/logLevels/{logLevels}/originServices/{originServices}/{start}/{end}
URI Parameters
- logLevels: required (string)
accepting multiple logLevels separated by comma
Example:
ERROR,WARN,INFO,DEBUG,TRACE
- originServices: required (string)
accepting multiple originServices separated by comma
Example:
service1,service2,service3
- start: required (number)
start date in long form
Example:
1469175494521
- end: required (number)
end date in long form
Example:
1469175499899
delete /v1/logs/removeold/age/{age}
Ping Resource
example - http://localhost:48061/api/v1/ping
Config Resource
Example - http://localhost:48061/api/v1/config
Fetch the current state of the service's configuration.
Edgex API Version
Example - http://localhost:48061/api/version