# How to make post processing using Data Prepper

**URL:** <https://forum.opensearch.org/t/how-to-make-post-processing-using-data-prepper/16531>\
**Category:** Data Prepper\
**Created:** [November 2, 2023, 12:32pm UTC](https://forum.opensearch.org/t/how-to-make-post-processing-using-data-prepper/16531 "2023-11-02T12:32:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Offir](https://avatars.discourse-cdn.com/v4/letter/o/dbc845/32.png) [@Offir](https://forum.opensearch.org/u/Offir)\
**Post date:** [November 2, 2023, 12:32pm UTC](https://forum.opensearch.org/t/how-to-make-post-processing-using-data-prepper/16531/1 "2023-11-02T12:32:40Z")

</div>

**Versions** (relevant - OpenSearch):

**Describe the issue** :

After reading Data Prepper documentation, i saw all processor options - these options are providing pre processing on the data before indexing - if i got it right.  
how can i make some post processing after all the index creates, for example if i want to change the alias of the index.  
there is such option? using the pipeline configuration?

---

<div class="post-metadata">

**Author:** ![Gsmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gsmitt/32/1718_2.png) [@Gsmitt](https://forum.opensearch.org/u/Gsmitt)\
**Post date:** [November 4, 2023, 1:03am UTC](https://forum.opensearch.org/t/how-to-make-post-processing-using-data-prepper/16531/2 "2023-11-04T01:03:26Z")

</div>

Hey @Offir

Is this what your referring to?

`Index Management --> Templates`

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/1/18d165e9270aaec9e664e3c2baef4019fbf59611.png)

Or

`Index Management --> Indices`

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/9/9d6f48bbdc41eb20e5fc5a09829a86fcf5271e98.png)

---

<div class="post-metadata">

**Author:** ![Offir](https://avatars.discourse-cdn.com/v4/letter/o/dbc845/32.png) [@Offir](https://forum.opensearch.org/u/Offir)\
**Post date:** [November 5, 2023, 3:22pm UTC](https://forum.opensearch.org/t/how-to-make-post-processing-using-data-prepper/16531/3 "2023-11-05T15:22:12Z")

</div>

Im not sure, what is this UI?  
what i meant is if there is an option to add some line in the pipeline configuration in order to  
change index alias. i define in the sink the index name - so to add an alias and remove the previous one if exist. Not using UI.

btw, there is post processing that can be apply on the index after it has been created using pipeline configuration? (similar to “processor” - but _post_ processing ones).

---

<div class="post-metadata">

**Author:** ![Gsmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gsmitt/32/1718_2.png) [@Gsmitt](https://forum.opensearch.org/u/Gsmitt)\
**Post date:** [November 6, 2023, 10:40pm UTC](https://forum.opensearch.org/t/how-to-make-post-processing-using-data-prepper/16531/4 "2023-11-06T22:40:13Z")

</div>

Hey @Offir

> [@Offir](#):
>
> what i meant is if there is an option to add some line in the pipeline configuration in order to  
> change index alias.

Not that I know of. What I did was create a index template first, this would have my alias/shard/replica’s, etc… set. Then for example i set my sink like this.

```auto
sink:
    - opensearch:
        hosts: ["https://opensearch.com:9200"]        
        username: "admin"
        password: "changeit"        
        cert: /opt/opensearch-data-prepper/config/root-ca.pem        
        index: apache_logs-%{YYYY.MM.dd}

```

That was it, as for adding something in the pipe, not sure.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [January 5, 2024, 10:40pm UTC](https://forum.opensearch.org/t/how-to-make-post-processing-using-data-prepper/16531/5 "2024-01-05T22:40:41Z")

</div>

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