# Ingest Pipeline apply Java Function

**URL:** <https://discuss.elastic.co/t/ingest-pipeline-apply-java-function/241030>\
**Category:** Elasticsearch\
**Created:** [July 13, 2020, 7:08pm UTC](https://discuss.elastic.co/t/ingest-pipeline-apply-java-function/241030 "2020-07-13T19:08:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AV25242](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@AV25242](https://discuss.elastic.co/u/AV25242)\
**Post date:** [July 13, 2020, 7:08pm UTC](https://discuss.elastic.co/t/ingest-pipeline-apply-java-function/241030/1 "2020-07-13T19:08:15Z")

</div>

This forum has been really quick in providing solutions, really appreciate it.  
The question I have is, I am moving data from a NOSQL database to Elastic Search , some fields in the NOSQL database are encrypted and I would like to decrypt them using custom Java functions that I have written.

Can I use pipelines to decrypt the data ? If so how do I apply these Java functions that I have written ? What kind of processors in the pipeline can I use ? Or is there any other recommendations as opposed to a pipeline ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 14, 2020, 5:49am UTC](https://discuss.elastic.co/t/ingest-pipeline-apply-java-function/241030/2 "2020-07-14T05:49:25Z")

</div>

I believe that a [Script Processor](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/script-processor.html) could help?  
Or write your own plugin?

---

<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:** [August 11, 2020, 5:49am UTC](https://discuss.elastic.co/t/ingest-pipeline-apply-java-function/241030/3 "2020-08-11T05:49:26Z")

</div>

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