-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
The configured sink failed its connectivity check (Kafka broker/topic or HTTP endpoint unreachable; file sink directory not writable).
Fix: Ensure the destination is up and reachable, then restart. For HTTP http-noauth, something must be listening on the configured URL.
Examples:
- Watermark or file sink inside a watched directory
- Missing
sink.kafkawhentype: kafka - Invalid regex in
transform.patternorparser.start_pattern
Fix: Read the error message, correct YAML, restart.
The startup error mentions watermark file ... is corrupt or unreadable and suggests recovery steps.
Fix: Restart once with --reset-watermarks, or set watch.state.reset_on_corrupt: true in config. The corrupt file is archived as {path}.corrupt.{timestamp} and tailing starts from the beginning (re-ships already-processed lines). Alternatively, rename or delete the watermark file manually.
| Check | Action |
|---|---|
| Watch path | Confirm log files exist under watch.sources / watch.paths
|
| Patterns | Filenames must match globs (*.log, etc.) |
| Watermark ahead of content | You may have already tailed past those lines — see Watermarks and Restarts |
| Transform mismatch | Lines may be wrapped as _raw with _error — consume sink output and inspect |
on_error: skip |
Unparseable lines are dropped silently (debug log only) |
Enable metrics and check:
-
log_forwarder_files_watched> 0 -
log_forwarder_lines_readincreasing -
log_forwarder_lines_publishedvslog_forwarder_lines_skipped
Usually caused by:
- Deleting watermarks and re-reading from the beginning
- Running two processes with the same watermark file
- Log rotation with unexpected inode behavior (rare)
Fix: One watermark file per process; avoid resetting watermarks unless you intend to re-ship.
You need the multiline parser. Use an example-spring-boot-*.yaml config, not a single-line setup.
Expected if nothing listens on http_noauth.url. Start your ingest service first, or use file/Kafka sink for local testing.
Non-2xx responses are retried then fail. Check ingest service logs. The built-in http-noauth sink does not send auth headers.
Startup only checks connectivity once. Later broker outages show as:
publish failed, retrying
Monitor log_forwarder_kafka_publish_failures and broker health.
When logrotate creates a new file at the same path:
- New inode → forwarder tails the new file from the beginning
- Old file’s watermark does not apply to the new inode
This is usually what you want for rotated logs.
- Run with
logging.level: debug(if supported in your build) for more detail - Check forwarder stderr /
logging.file - Inspect watermark file and one sample source log line
- Open an issue on GitHub with config (redacted secrets), forwarder version, and symptom
User guide
- Home
- Installation and First Run
- How It Works
- Filtering Vendor Noise
- Log Forwarder ATC
- Configuration Guide
- Configuration-Reference
- Config-Catalog
- Choosing a Sink
- Spring Boot Logs
- Watermarks and Restarts
- Built-in-Components
- Custom-Extensions
- Monitoring
- Testing
- Docker
- Deployment
- Example Configs
- Troubleshooting
Contributors