[source, ruby]
----
response = client.indices.put_mapping(
  index: 'my-data-stream',
  body: {
    properties: {
      host: {
        properties: {
          ip: {
            type: 'ip',
            ignore_malformed: true
          }
        }
      }
    }
  }
)
puts response
----
