elastic / elastic/logstash

udp/syslog inputs report wrong host

Open
#5,485 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

Looking @ ngrep, events come from the right source, but they end up being whatever random `host` in the index.

This only happens on multiline inputs.
These are not standard formatted syslog messages. Prefixed stack traces.
Happens on udp & syslog inputs. Currently running syslog, as udp crashes per https://github.com/elastic/logstash/issues/5318

```
syslog {
port => 9119
type => "error_log"
codec => multiline {
patterns_dir => "/etc/logstash/pattern.d"
pattern => "^<%{NONNEGINT:prifacil}>(%{TIMESTAMP_ISO8601}|%{SYSLOGTIMESTAMP})\s"
negate => true
what => previous
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.