Source IP replace

Hi ,

I want to know for the metricbeat where i have configured correctly on machine side where the logstash is installed and on the VM side as well

My concern is that I have same hostanme with 2 different IP’s so when i push the data i am not able to see the data because there is an hostname conflicts May i know what can i do for this ??

I have added one filter in the logstash saying that when ever you found this IP so this is the Hostname
if ([source] == “X.X.X.X”){
mutate {
replace => [
“beat.hostname” , “infra.com
]
}

}

Please help with this…

thanks
DILIP BK