Skip to content
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

Syslog plugin should put sender IP and hostname into agent fields #67

Open
farrp opened this issue May 6, 2021 · 0 comments
Open

Syslog plugin should put sender IP and hostname into agent fields #67

farrp opened this issue May 6, 2021 · 0 comments
Labels

Comments

@farrp
Copy link

farrp commented May 6, 2021

Logstash version: 7.12.0
Logstash source: RPM
Running as a service
Plugin installed with Logstash
OpenJDK Runtime Environment (build 1.8.0_282-b08)
Linux aws-logstashd1 3.10.0-1160.21.1.el7.x86_64 #1 SMP Tue Mar 16 18:28:22 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

The syslog input plugin puts the remote syslog sender name or address into the host field. In fact this should go into agent.name according to ECS. The value for host.name (note - NOT host as currently done) should come from the hostname portion of the syslog text.

For example, if I simulate sending the plugin some sample text from the local system:
nc 127.0.0.1 5140
<11>1 2021-05-06T15:34:17+01:00 SERVER1 validuser - - [meta sequenceId="90"] User [email protected] Login failed - Invalid user/password

The plugin creates:
host: LOCALHOST
message: User [email protected] Login failed - Invalid user/password
...

Where it should create:
agent.name: LOCALHOST
host.name: SERVER1
message: User [email protected] Login failed - Invalid user/password
...

@farrp farrp added the bug label May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant