// This file is autogenerated, DO NOT EDIT
// data-streams/logs.asciidoc:20

[source, python]
----
resp = client.indices.put_index_template(
    name="my-index-template",
    index_patterns=[
        "logs-*"
    ],
    data_stream={},
    template={
        "settings": {
            "index.mode": "logsdb"
        }
    },
    priority=101,
)
print(resp)
----
