Source Configuration
Sources are configured in thesources section of your configuration file:
Common Source Parameters
All sources support these base configuration options:The type of the source component. Determines which source implementation to use.
Proxy configuration for sources that make HTTP requests.
File Source
Read events from files using glob patterns:Array of file path glob patterns to read from. Supports standard glob syntax.
Array of file path glob patterns to exclude from reading.
Ignore files that haven’t been modified within this many seconds.
Where to start reading from:
beginning or end of files.Stdin Source
Read events from standard input:Maximum byte size of a single event. Events exceeding this will be truncated.
Demo Logs Source
Generate demo log events for testing:Format of generated logs:
syslog, json, apache_common, or apache_error.Number of seconds between generating events.
Number of events to generate before stopping. Omit for infinite generation.
HTTP Source
Receive events via HTTP:The socket address to listen on for connections.
Expected encoding of received data:
json, text, or ndjson.HTTP path to accept events on.
Syslog Source
Receive syslog messages over TCP or UDP:Transport protocol:
tcp, udp, or unix.The socket address or Unix socket path to listen on.
Socket Source
Receive events over TCP, UDP, or Unix sockets:Transport protocol:
tcp, udp, or unix.The socket address or Unix socket path to listen on.
Prometheus Scrape Source
Scrape Prometheus metrics from endpoints:Array of HTTP endpoints to scrape metrics from.
Interval in seconds between scrapes.
Multiple Sources Example
Combine multiple sources in a single configuration:Source Acknowledgements
Sources can optionally wait for acknowledgements from sinks before marking data as successfully processed:Next Steps
- Transforms - Process data from sources
- Sinks - Send processed data to destinations
- Testing - Test your source configurations