# How to pass custom name/value in requests to ES?

**URL:** <https://discuss.elastic.co/t/how-to-pass-custom-name-value-in-requests-to-es/9103>\
**Category:** Elasticsearch\
**Created:** [September 22, 2012, 2:18am UTC](https://discuss.elastic.co/t/how-to-pass-custom-name-value-in-requests-to-es/9103 "2012-09-22T02:18:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)\
**Post date:** [September 22, 2012, 2:18am UTC](https://discuss.elastic.co/t/how-to-pass-custom-name-value-in-requests-to-es/9103/1 "2012-09-22T02:18:14Z")

</div>

Hello,

What is the best way to pass a custom name-value pair from the ES client to  
ES?

I need to allow ES clients to "identify" themselves by specifying a custom  
authorization token in each request to ES.

Is there any way to do this?

## Thanks, Otis

Search Analytics - [http://sematext.com/search-analytics/index.html](http://sematext.com/search-analytics/index.html)  
Performance Monitoring - [http://sematext.com/spm/index.html](http://sematext.com/spm/index.html)

--

---

<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, 3:11am UTC](https://discuss.elastic.co/t/how-to-pass-custom-name-value-in-requests-to-es/9103/2 "2017-07-06T03:11:49Z")

</div>

Closed on July 6, 2017, 3:11am UTC


