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

Hope vrl supports obtaining host IP addresses #435

Open
XSWClevo opened this issue Sep 6, 2023 · 4 comments
Open

Hope vrl supports obtaining host IP addresses #435

XSWClevo opened this issue Sep 6, 2023 · 4 comments
Labels
type: feature A value-adding code addition that introduce new functionality. vrl: stdlib Changes to the standard library

Comments

@XSWClevo
Copy link

XSWClevo commented Sep 6, 2023

After using to obtain host_Metrics related information, the host address cannot be obtained, so I think it is most suitable to obtain the IP address in VRL

@StephenWakely
Copy link
Contributor

Worth noting that this will return a list of possible addresses - or potentially a map of interface name to addresses which could be IPv4 or IPv6.

@StephenWakely StephenWakely added type: feature A value-adding code addition that introduce new functionality. vrl: stdlib Changes to the standard library labels Sep 7, 2023
@jszwedko
Copy link
Member

jszwedko commented Sep 7, 2023

I had explored this a bit a while ago over here: vectordotdev/vector#7015 . I got hung up trying to get it to work on Windows.

@jszwedko
Copy link
Member

@XSWClevo Could you describe a bit more the use-case you have for this enrichment? Hosts can have many interfaces and IP addresses so it isn't as simple as "fetch the host IP". Because of that, we want to make sure, if we were to add this, that it meets the needs people have for it.

We are also interested in hearing from others any additional use-cases that you have for this!

@laojianzi
Copy link

@jszwedko Feature request +1
When working with host logs, the host IP can help us identify the machine, the most useful being the client ip used for each network request

This might be an example of getting intranet ipv4/ipv6 on windows: https://github.com/EstebanBorai/local-ip-address/blob/main/src/windows.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A value-adding code addition that introduce new functionality. vrl: stdlib Changes to the standard library
Projects
None yet
Development

No branches or pull requests

4 participants