User Tools

Site Tools


api:tools:syslog

API : Tools: Syslog

Introduction

This API allows remote hosts to log data to the central syslog when needed for debugging purposes.

Ratelimits apply.

Request

URL https://api.telecomx.dk/tools/syslog
Method GET or POST
Access level PERSONAL, VIEWER, MANAGER, OWNER, RESELLER, RESELLER_ADMIN, ADMIN
query or body host String Name of host reporting the data, defaults to the hosts IP address.
app String Name of application, defaults to TCX-syslog.
severity String INFO, WARNING, ERROR, DEBUG, defaults to INFO.
message String The log message to store.

Query example

{
  host: 'test.domain.com',
  app: 'testapp',
  severity: 'DEBUG',
  message: 'testing if we got a connection'
}

Response

Any request with receive an 200 OK response with an empty body.

Errors

Error code Message Description
403 access_denied Access denied
500 internal_error <Unspecified>
api/tools/syslog.txt · Last modified: 2025/10/28 11:29 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki