# Logstash use two query in the statement

**URL:** <https://discuss.elastic.co/t/logstash-use-two-query-in-the-statement/75900>\
**Category:** Logstash\
**Created:** [February 21, 2017, 3:10pm UTC](https://discuss.elastic.co/t/logstash-use-two-query-in-the-statement/75900 "2017-02-21T15:10:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catello\_Sabatino](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@Catello\_Sabatino](https://discuss.elastic.co/u/Catello_Sabatino)\
**Post date:** [February 21, 2017, 3:10pm UTC](https://discuss.elastic.co/t/logstash-use-two-query-in-the-statement/75900/1 "2017-02-21T15:10:39Z")

</div>

Hi all,  
I'm newbie of Elasticsearch and logstash, but i must know if is possible have this feature:

have a file .sql with two istructions, for example:

select package.SET\_CODE\_FUNCTION('XXX') from dual  
select \* from MY\_TABLE

where first select is a call a function, while the second is the query for the index.  
The first select cannot be in another file .sql, the two instructions must be sequentially.

Can you help me?

Best Regards

---

<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:** [March 21, 2017, 3:10pm UTC](https://discuss.elastic.co/t/logstash-use-two-query-in-the-statement/75900/2 "2017-03-21T15:10:41Z")

</div>

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