// This file is autogenerated, DO NOT EDIT
// ingest/processors/date-index-name.asciidoc:23

[source, python]
----
resp = client.ingest.put_pipeline(
    id="monthlyindex",
    description="monthly date-time index naming",
    processors=[
        {
            "date_index_name": {
                "field": "date1",
                "index_name_prefix": "my-index-",
                "date_rounding": "M"
            }
        }
    ],
)
print(resp)
----
