vector
vector copied to clipboard
New `get_host_ip` Remap function
See https://github.com/timberio/vector/issues/5800#issuecomment-754027386.
@drunkirishcoder re: https://github.com/timberio/vector/issues/5800#issuecomment-754027386, did you have any thoughts about which IP would be returned?
@jszwedko I think I pretty much agree with what @binarylogic suggested. default to the first found unless an interface is specified. and default to ipv4. in most of my scenarios, my vm/host will only have a single network interface other than loopback, and the default behavior seems pretty sensible to me without getting in the way for the common use case.
As mentioned in #7015 I think we should wait for users to ask for this to gather requirements.