Docs: inconsistent info about beats input and type field
- Dominant language
- Java
- Stars
- 14.9k
- Forks
- 3.5k
- Avg merge
- 19h 14m
- Merged PRs (30d)
- 63
Description
On the bottom of https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html it says (as for all other input plugins):
> type
Value type is string
There is no default value for this setting.
This is the base class for Logstash inputs. Add a type field to all events handled by this input.
Types are used mainly for filter activation.
The type is stored as part of the event itself, so you can also use the type to search for it in Kibana.
If you try to set a type on an event that already has one (for example when you send an event from a shipper to an indexer) then a new input will not override the existing type. A type set at the shipper stays with that event for its life even when sent to another Logstash server.
However, after not getting this to work I noticed a "NOTE" further up on the page saying:
> The Beats shipper automatically sets the type field on the event. You cannot override this setting in the Logstash config. If you specify a setting for the type config option in Logstash, it is ignored.
So obviously only one of them is correct, and I suspect it's the NOTE near the top of the page. In addition to the documentation error I do wonder why this field cannot be overwritten as that is a common config pattern in LS.
Contributor guide
Assessment
This issue has not been assessed yet.