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

Beat name is always overridden by hostname #18043

Closed
ycombinator opened this issue Apr 28, 2020 · 8 comments
Closed

Beat name is always overridden by hostname #18043

ycombinator opened this issue Apr 28, 2020 · 8 comments

Comments

@ycombinator
Copy link
Contributor

ycombinator commented Apr 28, 2020

For confirmed bugs, please report:

  • Version: 8.0.0 / master but also seen in 7.6.2.
  • Operating System: Mac OS X
  • Steps to Reproduce:
  1. Create a minimal Filebeat configuration as follows.
    ## filebeat.test.yml
    name: fb1
    
    filebeat.inputs:
      - type: stdin
        enabled: true
    
    output.console:
      enabled: true
    
    http.enabled: true
    
  2. Start up an instance of Filebeat with above configuration.
    ./filebeat -c filebeat.test.yml
    
  3. Visit http://localhost:5066/. Notice that the name field is set to the hostname, instead of the value of the name setting from the Filebeat configuration.
    curl -s 'http://localhost:5066/' | jq
    {
      "beat": "filebeat",
      "hostname": "Shaunaks-MacBook-Pro-Work.local",
      "name": "Shaunaks-MacBook-Pro-Work.local",
      "uuid": "ef61dc4a-8be0-404a-8e8a-d1a8d8bb17d8",
      "version": "7.6.0"
    }
    
  • Impact:
    One of the places where this information is used is in the Stack Monitoring UI. So if you have two Beats running on the same host but with different name settings, they incorrectly show up with the same name (the hostname instead of their respective names) in the UI:

    Screen Shot 2020-04-28 at 4 54 31 AM
@ycombinator ycombinator added bug libbeat Team:Services (Deprecated) Label for the former Integrations-Services team labels Apr 28, 2020
@ycombinator ycombinator changed the title Beat name is being overridden by hostname Beat name is always overridden by hostname Apr 28, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/stack-monitoring (Stack monitoring)

@sayden
Copy link
Contributor

sayden commented May 4, 2020

Related issues:

@botelastic
Copy link

botelastic bot commented Apr 4, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Apr 4, 2021
@botelastic botelastic bot closed this as completed May 4, 2021
@zube zube bot removed the [zube]: Done label Aug 3, 2021
@ChrsMark ChrsMark added the Team:Integrations Label for the Integrations team label Aug 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@ChrsMark
Copy link
Member

Reopening this since it seems it was closed by the bot and we still have cases hitting this.

cc: @sayden @masci @exekias

@ChrsMark ChrsMark reopened this Aug 27, 2021
@botelastic botelastic bot removed the Stalled label Aug 27, 2021
@ethnchao
Copy link

It has been a year ago, still not solved.

@jlind23 jlind23 added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed Team:Integrations Label for the Integrations team Team:Services (Deprecated) Label for the former Integrations-Services team labels Mar 31, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic
Copy link

botelastic bot commented Mar 31, 2023

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Mar 31, 2023
@botelastic botelastic bot closed this as completed Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants