vector icon indicating copy to clipboard operation
vector copied to clipboard

New `get_host_ip` Remap function

Open binarylogic opened this issue 3 years ago • 3 comments

See https://github.com/timberio/vector/issues/5800#issuecomment-754027386.

binarylogic avatar Jan 04 '21 18:01 binarylogic

@drunkirishcoder re: https://github.com/timberio/vector/issues/5800#issuecomment-754027386, did you have any thoughts about which IP would be returned?

jszwedko avatar Apr 05 '21 20:04 jszwedko

@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.

drunkirishcoder avatar Apr 09 '21 17:04 drunkirishcoder

As mentioned in #7015 I think we should wait for users to ask for this to gather requirements.

jszwedko avatar Jul 19 '21 21:07 jszwedko