# Bulk API without printing result on terminal

**URL:** https://discuss.elastic.co/t/bulk-api-without-printing-result-on-terminal/341002
**Category:** Kibana
**Created:** [August 17, 2023, 11:17am UTC](https://discuss.elastic.co/t/bulk-api-without-printing-result-on-terminal/341002 "2023-08-17T11:17:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cr\_168328](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@cr\_168328](https://discuss.elastic.co/u/cr_168328)
#### Post date: [August 17, 2023, 11:17am UTC](https://discuss.elastic.co/t/bulk-api-without-printing-result-on-terminal/341002/1 "2023-08-17T11:17:25Z")

</div>

Is it possible to execute the Bulk API without printing the result on terminal?

I am using the following API:

```auto
curl -X POST "localhost:9200/log/_bulk?pretty" -H 'Content-Type: application/json' --data-binary @path/log.log

```

But due to large number of records, it is taking time to complete due to printing of each record.

---

<div class="post-metadata">

### Author: ![chouben](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chouben](https://discuss.elastic.co/u/chouben)
#### Post date: [August 17, 2023, 12:23pm UTC](https://discuss.elastic.co/t/bulk-api-without-printing-result-on-terminal/341002/2 "2023-08-17T12:23:13Z")

</div>

Are you just looking for a file redirect in linux?  
E.g. [[https://www.redhat.com/sysadmin/linux-shell-redirection-pipelining](https://www.redhat.com/sysadmin/linux-shell-redirection-pipelining)]

Another option is using the output option(s) from curl: -o or -O.

Anyway, the data will need to be fetched from the server.. So it will take some time.  
If you just would like to execute the fetch and send the command to the background to complete, take a look at "nohup".

---

<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 14, 2023, 12:23pm UTC](https://discuss.elastic.co/t/bulk-api-without-printing-result-on-terminal/341002/3 "2023-09-14T12:23:38Z")

</div>

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