Welcome to the EventLogCentral API

Detailed API Documentation

Integrate EventLogCentral into your applications with ease. Explore endpoints, authentication, and examples.

Authentication

Secure Access to the API

To use EventLogCentral's API, you'll need an access_token. Generate this from your dashboard under the 'API Keys' section. Ensure the token is active and associated with the correct project environment.

API Endpoint

Core Logging Endpoint

Use the following endpoint to log events:

POST https://api.eventlogcentral.com/api/logEvent

The request body should include the following fields:

  • access_token (required): Your API key for authentication.
  • type (required): The type of the event, such as INFO, WARNING, ERROR, etc.
  • title (optional): A short title describing the event.
  • description (optional): A detailed description of the event.
  • author (optional): The identifier for the individual or system that triggered the event.
  • category (optional): A custom category to group related events.
  • notes (optional): Any additional notes or comments regarding the event.
  • data (optional): A JSON object containing structured data relevant to the event (e.g., {"key": "value"}).

Supported Event Types

Log Events Your Way

EventLogCentral supports the following event types:

  • WARNING: Potential issues requiring attention.
  • INFO: General informational messages.
  • ERROR: Problems that allow the system to operate.
  • SUCCESS: Successful operations or actions.
  • DEBUG: Diagnostic information for debugging.
  • CRITICAL: Severe issues needing immediate attention.
  • NOTICE: Notable events for review.
  • AUDIT: Security or compliance actions.
  • TRACE: Detailed sequence of debugging events.
  • DEPRECATED: Logs for deprecated features.
  • FATAL: Events causing system termination.
  • CUSTOM: User-defined event types.

Sample Code

Quick Start Examples

curl -X POST https://api.eventlogcentral.com/api/logEvent -H "Content-Type: application/json" -d '{

"access_token": "your_access_token",

"type": "INFO",

"title": "User Login",

"description": "User logged in successfully.",

"author": "john_doe",

"category": "Authentication"

}'

Need More Help?

Reach Out to Support