Hi,
I may be missing something here but is there a way to preserve the IP and use it as a tag, instead of or in addition to having it be resolved to hostname1?
It looks like something else in your config creates a source tag. This is indeed deprecated and the agent IP should be placed in the source tag to be streamlined with the other plugins…