Bulk API without printing result on terminal

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

I am using the following API:

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.

Are you just looking for a file redirect in linux?
E.g. [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".

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