# How to fetch an attribute and create a field with value

**URL:** <https://discuss.elastic.co/t/how-to-fetch-an-attribute-and-create-a-field-with-value/214821>\
**Category:** Logstash\
**Created:** [January 13, 2020, 11:50am UTC](https://discuss.elastic.co/t/how-to-fetch-an-attribute-and-create-a-field-with-value/214821 "2020-01-13T11:50:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajesh\_M](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajesh_m/32/60701_2.png) [@Rajesh\_M](https://discuss.elastic.co/u/Rajesh_M)\
**Post date:** [January 13, 2020, 11:50am UTC](https://discuss.elastic.co/t/how-to-fetch-an-attribute-and-create-a-field-with-value/214821/1 "2020-01-13T11:50:00Z")

</div>

Hi,

I am parcing a log file and generating the report. The report contains the user and few other fields related to application. I need to find an attribute of the user fetched from log and create a new field with the value. Ex, in the ldap, need to fetch organization and email address of the user identified in logs. Could you please guide me achieve this!!

-Thanks

---

<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:** [February 10, 2020, 11:50am UTC](https://discuss.elastic.co/t/how-to-fetch-an-attribute-and-create-a-field-with-value/214821/2 "2020-02-10T11:50:01Z")

</div>

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