-
Notifications
You must be signed in to change notification settings - Fork 715
feat: remove syslog #8227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: remove syslog #8227
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greptile Summary
This PR implements the complete removal of the syslog feature from OpenObserve v0.16.0, following its deprecation in v0.15.0. The changes systematically eliminate all syslog-related functionality across the entire codebase, including:
Backend Infrastructure Removal:
- Eliminates syslog HTTP handlers (
src/handler/http/request/syslog/mod.rs) - Removes TCP/UDP syslog server implementation (
src/handler/tcp_udp/mod.rs,src/job/syslog_server.rs) - Deletes syslog database services and route management (
src/service/db/syslog.rs,src/service/syslogs_route.rs) - Removes syslog-related configuration options and global state variables
- Eliminates syslog TLS configuration functions from the TLS service layer
API and Routing Changes:
- Removes 5 syslog API endpoints from OpenAPI specification and HTTP routing
- Eliminates syslog route management operations (create, update, list, delete, toggle)
- Removes syslog server state management endpoints
Frontend and Localization Cleanup:
- Removes syslog service client (
web/src/services/syslog.ts) - Eliminates syslog UI translations across 12 language files (English, Spanish, French, German, Italian, Portuguese, Dutch, Turkish, Chinese, Japanese, Korean, Hindi)
- Updates test specifications to remove syslog component mocks
Configuration and Migration Updates:
- Removes TCP configuration struct and validation functions
- Eliminates
/syslogprefix from database migration utilities - Updates status endpoint to remove
syslog_enabledconfiguration field
Dependency Management:
- Removes
ipnetworkandsyslog_loosedependencies from Cargo.toml - Clears CycloneDX SBOM files that contained syslog component metadata
The architectural rationale is to simplify OpenObserve by removing specialized syslog ingestion capabilities and directing users to external tools like Vector.dev and syslog-ng for syslog collection, which can then forward logs to OpenObserve via standard HTTP APIs.
Confidence score: 3/5
- This PR requires careful review due to the extensive scope of changes across 35+ files and potential for breaking existing deployments
- Score reflects concerns about incomplete cleanup, particularly the removal of
websocket.rswhich appears unrelated to syslog functionality - Multiple critical system components are being removed simultaneously, increasing the risk of runtime errors or missing dependencies
40 files reviewed, no comments
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
close #8186
PR Type
Enhancement, Documentation
Description
Remove syslog feature across codebase
Clean config and routing references
Update metadata prefixes and SBOM files
Refresh i18n and OpenAPI assets
Diagram Walkthrough
File Walkthrough
13 files
Remove syslog config import from job moduleStop glob importing config; drop syslog usageDrop `/syslog` from metadata item prefixesRemove syslog-related configuration optionsPurge syslog feature flag and defaultsClean references tied to syslog ingestionDelete syslog router endpointsDetach syslog handler wiringRemove syslog-specific log ingestion pathsClean DB interactions for syslog keysAdjust request handling without syslogUnexport syslog servicesRemove syslog metadata definitions2 files
Update tests to exclude syslog pathsUpdate UI tests to remove syslog routes20 files
Remove syslog routes from OpenAPIUpdate config component index (remove syslog)Update WAL component index referencesRefresh SBOM root; remove syslog entriesUpdate infra component index, no syslogUpdate proto index; purge syslog mentionsAdjust ingester index excluding syslogAdd/refresh flight component indexRemove syslog strings from Hindi localeRemove syslog strings from French localeRemove syslog strings from Turkish localeRemove syslog strings from German localeRemove syslog strings from Korean localeRemove syslog strings from Italian localeRemove syslog strings from Dutch localeRemove syslog strings from Spanish localeRemove syslog strings from Portuguese localeRemove syslog strings from Chinese localeRemove syslog strings from Japanese localeRemove syslog strings from English locale1 files
Update dependencies/features after syslog removal10 files