# Using the Curl Command

**URL:** <https://discuss.elastic.co/t/using-the-curl-command/33111>\
**Category:** Logstash\
**Created:** [October 27, 2015, 8:58pm UTC](https://discuss.elastic.co/t/using-the-curl-command/33111 "2015-10-27T20:58:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [October 27, 2015, 8:58pm UTC](https://discuss.elastic.co/t/using-the-curl-command/33111/1 "2015-10-27T20:58:18Z")

</div>

Hello,

In order to validate that my log entries are being parsed correctly, I am running the following command:

curl [http://localhost:9200/\_search](http://localhost:9200/_search)?

Whenever a new entry is added, I see the "Hit" increment as expected. I have the following questions:

1. I seem to only see the details of 10 entries. Is there a way to modify the configuration in order to see ALL the entries in chronological order?

2. Is it normal that there is some kind of delay between the time that an entry is entered in Logstash and the time that you can see the entry using the curl command above?

3. What is the command to delete specific entries?

4. Is there a reason why I do not see any entries at all?

Thanks for all your assistance

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 27, 2015, 9:17pm UTC](https://discuss.elastic.co/t/using-the-curl-command/33111/2 "2015-10-27T21:17:48Z")

</div>

1. Yes, set the the `size` parameter in the query body. See [https://www.elastic.co/guide/en/elasticsearch/reference/1.7/search-request-from-size.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/search-request-from-size.html).
2. Yes, documents are only available for queries after a refresh has taken place. Logstash indexes will (IIRC) be refreshed every five seconds by default.
3. Use the [delete API](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/docs-delete.html) to delete documents by id and the [delete by query API](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/docs-delete-by-query.html) to, well, delete documents based on a query (but note that it's deprecated).
4. That's impossible to answer with the information you've given us.

---

<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, 5:25am UTC](https://discuss.elastic.co/t/using-the-curl-command/33111/3 "2017-07-06T05:25:10Z")

</div>


