elastic / elastic/logstash

Add hostname to the @metadata

Open
#4,465 3 comments 0 reactions 0 assignees View on GitHub
discuss enhancement
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

Currently, some inputs add the `hostname` of the indexer, which means that we can use this value in the filters to add them as tags, or do any other operations.

Since the hostname is being added at the input level, each input (plugin) need to add the same code in order to make this happen.

My proposal is to **add the host to the @metadada** field at every time at the input core level rather than the plugin level.

As discussed with @ph today, we will continue our discussion in this thread.

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.