# Ingest pipeline: run uri\_parts on all fields ending in "url"

**URL:** <https://discuss.elastic.co/t/ingest-pipeline-run-uri-parts-on-all-fields-ending-in-url/297231>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [February 15, 2022, 10:52am UTC](https://discuss.elastic.co/t/ingest-pipeline-run-uri-parts-on-all-fields-ending-in-url/297231 "2022-02-15T10:52:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![louic](https://avatars.discourse-cdn.com/v4/letter/l/a3d4f5/32.png) [@louic](https://discuss.elastic.co/u/louic)\
**Post date:** [February 15, 2022, 10:52am UTC](https://discuss.elastic.co/t/ingest-pipeline-run-uri-parts-on-all-fields-ending-in-url/297231/1 "2022-02-15T10:52:11Z")

</div>

How to define an ingest pipeline that runs the `uri_parts` processor on all fields that match "\*.url" and output to "\*.parsed\_url" ? (without using logstash or beats)

The [URI parts documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/uri-parts-processor.html) does not list any support for template snippets, and even if it did the `target_field` would have to be derived from the input `field`.

What is the best way to achieve this, without listing each field separately and having duplicate code?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 15, 2022, 10:52am UTC](https://discuss.elastic.co/t/ingest-pipeline-run-uri-parts-on-all-fields-ending-in-url/297231/2 "2022-03-15T10:52:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
