-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Filebeat source:unknown, no agent.hostname field #13254
Comments
bernd
added a commit
that referenced
this issue
Nov 7, 2022
bernd
added a commit
that referenced
this issue
Nov 7, 2022
In beats v8 the "agent.hostname" field got renamed to "agent.name". Fixes #13254
thll
pushed a commit
that referenced
this issue
Nov 7, 2022
* Fix "source" field for beats version >= 8 In beats v8 the "agent.hostname" field got renamed to "agent.name". Fixes #13254 * Add changelog entry
bernd
added a commit
that referenced
this issue
Nov 7, 2022
bernd
added a commit
that referenced
this issue
Nov 14, 2022
bernd
added a commit
that referenced
this issue
Dec 9, 2022
* Fix "source" field for beats version >= 8 In beats v8 the "agent.hostname" field got renamed to "agent.name". Fixes #13254 * Add changelog entry
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm testing graylog with the filebeat journald input and the source field shows unknown.
In #6501 the same problem was fixed because of a rename in newer Beats versions.
Looking through the Beat documentation it looks like the
agent.hostname
field is deprecated and theagent.name
field should be used: https://www.elastic.co/guide/en/beats/filebeat/current/exported-fields-beat-common.htmlExpected Behavior
Source field shows the hostname of the filebeat agent.
Current Behavior
Source field shows "unknown".
Possible Solution
Extend the source parsing such that
agent.name
andagent.id
are also considered.graylog2-server/graylog2-server/src/main/java/org/graylog/plugins/beats/Beats2Codec.java
Line 96 in 1afa5b7
Steps to Reproduce (for bugs)
Your Environment
Arch Linux with filebeat 8.3.3 built from the AUR package.
Filebeat config:
The text was updated successfully, but these errors were encountered: