// This file is autogenerated, DO NOT EDIT
// mapping/runtime.asciidoc:1616

[source, python]
----
resp = client.indices.put_mapping(
    index="my-index-000001",
    runtime={
        "http.client.ip": {
            "type": "ip",
            "script": "\n        String clientip=dissect('%{clientip} %{ident} %{auth} [%{@timestamp}] \"%{verb} %{request} HTTP/%{httpversion}\" %{status} %{size}').extract(doc[\"message\"].value)?.clientip;\n        if (clientip != null) emit(clientip);\n      "
        }
    },
)
print(resp)
----
