-
Notifications
You must be signed in to change notification settings - Fork 553
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
Feature request: Include tags when sending JSON logs #7356
Comments
This was discussed I believe couple of times, the issue here is that Talos doesn't know it's So if implemented, this would look more like "attach the hostname to the logs when known" or something like that. |
Probably, we need to add custom key/value to json. destinations:
- endpoint: tcp://1.2.3.4:12345 # Where to send logs. Supported protocols are "tcp" and "udp".
format: json_lines
tags:
custom_name: custom_value |
You absolutely do not right.
|
So what we need to implement is #7356 (comment) |
In this case, tags should support dynamic variables. For example IP can be received from DHCP and support of environment variable can be not enough. IP tag should reflect current IP status. |
IP is not defined for Talos in a stable way - it might change, while log identifier should be static. |
Would system UUID make a good identifier for this purpose (node disambiguation)? Users can check with: |
not really, we have seen many systems that just have this as all zeroes |
plus Talos supports overriding UUID, it might not be available, etc. Log sending should be robust, so we should keep it absolutely simple. |
Fixes siderolabs#7356 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Feature Request
Description
Add a
talos-node
orhostname
field to the service and kernel logs when sending them over TCP or UDP using json_lines.The Talos docs describe how to send logs e.g. to Loki using Fluent-bit. When logs from many nodes are sent to a centralised endpoint, there's no way to tell which node kernel and service logs came from. Adding a field with the node's name would solve this.
The text was updated successfully, but these errors were encountered: