Closed rnishtala-sumo closed 1 year ago
Hello there, one of our customers want the syslog exporter/forwarder for otel and contributing this to upstream seemed like the way to go. Please let me know any initial thoughts/suggestions and interest in being a sponsor.
Thank you for your interest. Please bring this to the next SIG meeting for discussion and to find a sponsor. Feel free to engage on the CNCF slack as well. Please see this document to participate in the SIG meeting: https://docs.google.com/document/d/1r2JC5MB7GupCE7N32EwGEXs9V_YIsPgoFiLP4VWVMkE/edit
This is an interesting proposal and would likely be a valuable addition to the collector. However, I have a few questions:
rfc3164
and rfc5424
?Will this support the same protocols as the syslog receiver, namely rfc3164 and rfc5424?
Yes, this is the intended outcome.
What is the mapping from OTel's log data model to syslog? I expect this would vary by rfc protocol. Are you willing to ensure compatibility with the syslog receiver?
Yes, we want to ensure compatibility with the Syslog receiver. The assumption is that data ingested with the Syslog receiver can be exported by the Syslog exporter and that the exporter's output is equal to the receiver's input (assuming both use the same syslog protocol, for example both use rfc3164
). I suppose this covers what you describe as "using the collector as syslog forwarder", right? I agree that this requires that both Syslog receiver and exporter evolve in sync.
@rnishtala-sumo please keep me honest here.
I suppose this covers what you describe as "using the collector as syslog forwarder", right?
👍 You said it much better than I did.
I'm willing to sponsor this based on @astencel-sumo's responses.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Closed by #19647
How can I forward kubernetes pod logs to syslog exporter? The k8s log is not syslog format.
I tried the following pipeline, it didn't work. I didn't find any syslog processor or formatter too.
exporters:
syslog:
endpoint: 23.21.46.218
network: udp
port: 5140
protocol: rfc5424
retry_on_failure:
enabled: true
initial_interval: 10s
max_elapsed_time: 150s
max_interval: 40s
sending_queue:
enabled: true
num_consumers: 20
queue_size: 10000
timeout: 1s
receivers:
filelog:
exclude: []
include:
- /var/log/pods/*/*/*.log
include_file_name: false
include_file_path: true
service:
extensions: {}
pipelines:
logs:
exporters:
- syslog
receivers:
- filelog
Any suggestion?
Please open a new issue and describe what didn't work. Please attach logs.
The purpose and use-cases of the new component
In order to send messages from a device to a remote syslog server, one needs a syslog agent. Most Linux operating systems ship with a syslog agent and if one is not available, one can be easily installed. The two most common syslog agents used on Linux systems today are rsyslog and syslog-ng
The syslog protocol is the standard for remote message logging. Syslog agents are flexible enough to handle more than just logs messages, for example monitoring configuration files, JSON files, and SNMP traps.
OpenTelemetry seems to already have a syslog receiver, a syslog exporter/forwarder would be useful to send messages to a third party syslog server.
Example configuration for the component
Telemetry data types supported
Is this a vendor-specific component?
Sponsor (optional)
No response
Additional context
No response