Plugin SDK
Extend LogDoc's functionality by building custom plugins. The Plugin SDK provides a well-defined API for creating sources, filters, sinks, and UI extensions.
Plugin Types
LogDoc supports four types of plugins, each serving a specific purpose in the log processing pipeline:
SOURCE
Source Plugins
Ingest logs from custom protocols or proprietary systems
FILTER
Filter Plugins
Transform, enrich, or route log events with custom logic
Creating Your First Plugin
Use the LogDoc CLI to scaffold a new plugin project:
bash
# Create a new plugin project
logdoc plugin create my-custom-filter
# Build the plugin
cd my-custom-filter && logdoc plugin build
# Install to LogDoc
logdoc plugin install ./dist/my-custom-filter.jar