# Customizing the River

**URL:** <https://discuss.elastic.co/t/customizing-the-river/10588>\
**Category:** Elasticsearch\
**Created:** [February 1, 2013, 12:48pm UTC](https://discuss.elastic.co/t/customizing-the-river/10588 "2013-02-01T12:48:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rocky](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rocky](https://discuss.elastic.co/u/Rocky)\
**Post date:** [February 1, 2013, 12:48pm UTC](https://discuss.elastic.co/t/customizing-the-river/10588/1 "2013-02-01T12:48:30Z")

</div>

Hi ,

I am in need of customizing the elastic search river to suit our  
requirements. Basically , I need to be able to take the data from the  
database which is in an encrypted format and decrypt the data and index the  
decrypted data. I need pointers on how to start , feasibility of such an  
approach and which files to change , so that I can get started on it.

Thanking you in advance for any light that can be shed

-Ry

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [February 1, 2013, 1:29pm UTC](https://discuss.elastic.co/t/customizing-the-river/10588/2 "2013-02-01T13:29:18Z")

</div>

Hi,

generally speaking it is feasible to move data over to elasticsearch  
from a database. You can start with the JDBC river

> **[GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-jdbc)**
>
> JDBC importer for Elasticsearch. Contribute to jprante/elasticsearch-jdbc development by creating an account on GitHub.

If you can give an example of data, how it is encrypted and what  
decrypting function you think of, I could suggest where to start, yes.

Best regards,

Jörg

Am 01.02.13 13:48, schrieb Rocky:

> Hi ,
> 
> I am in need of customizing the Elasticsearch river to suit our  
> requirements. Basically , I need to be able to take the data from the  
> database which is in an encrypted format and decrypt the data and  
> index the decrypted data. I need pointers on how to start ,  
> feasibility of such an approach and which files to change , so that I  
> can get started on it.
> 
> Thanking you in advance for any light that can be shed
> 
> ## -Ry
> 
> You received this message because you are subscribed to the Google  
> Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send  
> an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Rocky](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rocky](https://discuss.elastic.co/u/Rocky)\
**Post date:** [February 2, 2013, 4:46am UTC](https://discuss.elastic.co/t/customizing-the-river/10588/3 "2013-02-02T04:46:43Z")

</div>

Hi Prante ,

Thank you for your reply , The encryption is configurable by the user and  
is done in Java ( Business Logic layer) , so I would need to intercept the  
entity prior to indexing , apply the appropriate decryption algorithm and  
then index it into elasticsearch. I am thinking if I can extend the class  
which indexes the data and do this manipulation. Your thoughts on achieving  
the same would be of immense help.

Thanks  
-Ry

On Friday, February 1, 2013 6:59:18 PM UTC+5:30, Jörg Prante wrote:

> Hi,
> 
> generally speaking it is feasible to move data over to elasticsearch  
> from a database. You can start with the JDBC river  
> [GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-river-jdbc)
> 
> If you can give an example of data, how it is encrypted and what  
> decrypting function you think of, I could suggest where to start, yes.
> 
> Best regards,
> 
> Jörg
> 
> Am 01.02.13 13:48, schrieb Rocky:
> 
> > Hi ,
> > 
> > I am in need of customizing the Elasticsearch river to suit our  
> > requirements. Basically , I need to be able to take the data from the  
> > database which is in an encrypted format and decrypt the data and  
> > index the decrypted data. I need pointers on how to start ,  
> > feasibility of such an approach and which files to change , so that I  
> > can get started on it.
> > 
> > Thanking you in advance for any light that can be shed
> > 
> > ## -Ry
> > 
> > You received this message because you are subscribed to the Google  
> > Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send  
> > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [February 2, 2013, 2:56pm UTC](https://discuss.elastic.co/t/customizing-the-river/10588/4 "2013-02-02T14:56:09Z")

</div>

Hi,

that's what I understand, look at  
[GitHub - jprante/elasticsearch-jdbc: JDBC importer for Elasticsearch](https://github.com/jprante/elasticsearch-river-jdbc) - if you extend the  
SimpleRiverSouce and the SimpleValueListener class you can easily add  
decryption on specific database columns, I recommend adding a new  
'decrypt' strategy in a new subpackage.

Best regards,

Jörg

Am 02.02.13 05:46, schrieb Rocky:

> Thank you for your reply , The encryption is configurable by the user  
> and is done in Java ( Business Logic layer) , so I would need to  
> intercept the entity prior to indexing , apply the appropriate  
> decryption algorithm and then index it into elasticsearch. I am  
> thinking if I can extend the class which indexes the data and do this  
> manipulation. Your thoughts on achieving the same would be of immense  
> help.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:53am UTC](https://discuss.elastic.co/t/customizing-the-river/10588/5 "2017-07-06T02:53:20Z")

</div>


