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

Comply with ECS for host.name #168

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Conversation

AndersonQ
Copy link
Member

@AndersonQ AndersonQ commented Jul 23, 2024

What does this PR do?

Upgrades go-sysinfo to v1.14.1, which does not lower-case the FQDN. Therefore, host.name returned by host.MapHostInfo is lower-cased to comply with ECS.

Why is it important?

The FQDN should not be lower-cased by default and the host.hostname, when set to FQDN, should be the FQDN as defined in the system.

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.md

Related issues

@AndersonQ AndersonQ added bug Something isn't working Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Jul 23, 2024
@AndersonQ AndersonQ self-assigned this Jul 23, 2024
@AndersonQ AndersonQ requested a review from a team as a code owner July 23, 2024 16:37
@AndersonQ AndersonQ requested review from belimawr and VihasMakwana and removed request for a team July 23, 2024 16:37
@AndersonQ AndersonQ changed the title comply with ECS for host.name Comply with ECS for host.name Jul 23, 2024
@pierrehilbert pierrehilbert requested review from faec and removed request for belimawr July 23, 2024 16:46
@AndersonQ AndersonQ force-pushed the 39993-fqdn-as-is branch 2 times, most recently from f48170d to 75d8f73 Compare July 25, 2024 13:40
@pierrehilbert
Copy link

@AndersonQ now elastic/go-sysinfo#231 has been merged, could you please move forward and update the dependencies to use the correct one?

@AndersonQ
Copy link
Member Author

@AndersonQ now elastic/go-sysinfo#231 has been merged, could you please move forward and update the dependencies to use the correct one?

on it

Copy link
Contributor

@VihasMakwana VihasMakwana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! But let's merge this after #169

@VihasMakwana
Copy link
Contributor

@AndersonQ looks good now, #169 is merged

Upgrades go-sysinfo to v1.14.1, which does not lower-case the FQDN. Therefore, `host.name` returned by  `host.MapHostInfo` is lower-cased to comply with ECS.
@AndersonQ AndersonQ merged commit e8645b5 into elastic:main Jul 26, 2024
5 checks passed
@AndersonQ AndersonQ deleted the 39993-fqdn-as-is branch July 26, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants