# REST Call to create a search object

**URL:** <https://discuss.elastic.co/t/rest-call-to-create-a-search-object/196131>\
**Category:** Kibana\
**Created:** [August 21, 2019, 2:08pm UTC](https://discuss.elastic.co/t/rest-call-to-create-a-search-object/196131 "2019-08-21T14:08:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghavendra\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raghavendra_k/32/52714_2.png) [@Raghavendra\_K](https://discuss.elastic.co/u/Raghavendra_K)\
**Post date:** [August 21, 2019, 2:08pm UTC](https://discuss.elastic.co/t/rest-call-to-create-a-search-object/196131/1 "2019-08-21T14:08:16Z")

</div>

Hi,

I am looking to create a search object via REST call. This is majorly to view the logs with defined columns at the discover tab. This helps users to avoid them creating basic search objects for viewing logs

Once the search is created, I can request user open them from saved object into "discover" window.

Can you pls guide me.

Note: I could create index pattern via REST call.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [August 21, 2019, 10:02pm UTC](https://discuss.elastic.co/t/rest-call-to-create-a-search-object/196131/2 "2019-08-21T22:02:31Z")

</div>

> [@Raghavendra\_K](#):
>
> This helps users to avoid them creating basic search objects for viewing logs

Hi, this is really not clear. Something called a search object has to be created for users to view logs? That's not required for Discover, and I am not sure what "search object" is. Sorry!

---

<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:** [September 18, 2019, 10:02pm UTC](https://discuss.elastic.co/t/rest-call-to-create-a-search-object/196131/3 "2019-09-18T22:02:31Z")

</div>

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