Error converting to IP type

"IP" isn't a Logstash type but an Elasticsearch type. You'll pass the IP address to ES as a string and ES will parse the IP address and store it accordingly if that field is mapped as having the type "ip". This is controlled by the index template.