You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
JSON mapping includes a "hostname" field, but I am unclear as to what this is used for.
I could map the syslog hostname to this field:
{"software":"rsyslog",...,"hostname":"hostname"}
This would be a useful thing to record somewhere, since if a syslog message is relayed through intermediate servers, the host where the message originated does not necessarily match the syslog-source-ip (which is the last relay)
However, in src/processors/engine.c I see the hostname used to construct a URL, whose purpose I don't know:
So maybe "hostname" is intended for something else (e.g. hostname of the sagan server? hostname of some third-party checking service?)
I also observe that the pipe input format does not define a hostname field. The first field is enforced to be an IP address in src/input-pipe.c so you can't put the hostname from the syslog message here.
Describe the solution you'd like
Document purpose of "hostname". If it's meant to be used for the syslog hostname then also add it to the "syslog-ng" entry in json-input.map
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
JSON mapping includes a "hostname" field, but I am unclear as to what this is used for.
I could map the syslog hostname to this field:
This would be a useful thing to record somewhere, since if a syslog message is relayed through intermediate servers, the host where the message originated does not necessarily match the syslog-source-ip (which is the last relay)
However, in src/processors/engine.c I see the hostname used to construct a URL, whose purpose I don't know:
So maybe "hostname" is intended for something else (e.g. hostname of the sagan server? hostname of some third-party checking service?)
I also observe that the pipe input format does not define a hostname field. The first field is enforced to be an IP address in src/input-pipe.c so you can't put the hostname from the syslog message here.
Describe the solution you'd like
Document purpose of "hostname". If it's meant to be used for the syslog hostname then also add it to the "syslog-ng" entry in json-input.map
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: