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
Currently in the Generator Input if you use lines, and pass in a preformatted line, complete with a host field, the generator input will overwrite the line's value for host with the host of the system it's running on.
Where $myhostname is the hostname of the machine running logstash.
We use the generator input to test our logstash configs against actual data pulled out from our kafka topics. We do this instead of reading from the topics to prevent issues with the occasional badly formed log entry, and to allow us to test the values of fields because we know what the output should look like.
In most cases we can just ignore the hostname, as it's not one of the fields we use for anything, but I've been working with some inputs from a syslog server lately, and that host field is frequently the only way we have to identify which server it came from (since Citrix doesn't follow RFC 3164 very well).
Would it be possible at least on the lines input type to check if there is a host field already set and not clobber it?
The text was updated successfully, but these errors were encountered:
Currently in the Generator Input if you use lines, and pass in a preformatted line, complete with a host field, the generator input will overwrite the line's value for host with the host of the system it's running on.
Example:
Expected output would include:
Actual output would be:
Where $myhostname is the hostname of the machine running logstash.
We use the generator input to test our logstash configs against actual data pulled out from our kafka topics. We do this instead of reading from the topics to prevent issues with the occasional badly formed log entry, and to allow us to test the values of fields because we know what the output should look like.
In most cases we can just ignore the hostname, as it's not one of the fields we use for anything, but I've been working with some inputs from a syslog server lately, and that host field is frequently the only way we have to identify which server it came from (since Citrix doesn't follow RFC 3164 very well).
Would it be possible at least on the lines input type to check if there is a host field already set and not clobber it?
The text was updated successfully, but these errors were encountered: