# Question regarding \_flush/synced output

**URL:** <https://discuss.elastic.co/t/question-regarding-flush-synced-output/176378>\
**Category:** Elasticsearch\
**Created:** [April 11, 2019, 10:26am UTC](https://discuss.elastic.co/t/question-regarding-flush-synced-output/176378 "2019-04-11T10:26:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raulk89](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@raulk89](https://discuss.elastic.co/u/raulk89)\
**Post date:** [April 11, 2019, 10:26am UTC](https://discuss.elastic.co/t/question-regarding-flush-synced-output/176378/1 "2019-04-11T10:26:43Z")

</div>

Hi

Elastic 6.7.1  
Centos7

At the moment, this command output is following:

> curl -sXPOST `hostname`':9200/\_flush/synced?pretty'`  
> {  
> "\_shards" : {  
> "total" : 144,  
> "successful" : 144,  
> "failed" : 0  
> },  
> ".monitoring-es-6-2019.02.22" : {  
> "total" : 2,  
> "successful" : 2,  
> "failed" : 0  
> },  
> ".monitoring-es-6-2019.02.21" : {  
> "total" : 2,  
> "successful" : 2,  
> "failed" : 0  
> },  
> ....  
> }

Any idea, how can I get this command output to somethig like this:

> curl -sXPOST `hostname`':9200/\_flush/synced?pretty'`  
> {  
> "\_shards" : { "total" : 144, "successful" : 144, "failed" : 0 },  
> ".monitoring-es-6-2019.02.22" : { "total" : 2, "successful" : 2, "failed" : 0 },  
> ".monitoring-es-6-2019.02.21" : { "total" : 2, "successful" : 2, "failed" : 0 },  
> ....  
> }

Have tried format=yaml, and without pretty option, ut not what I am looking for. Probably have to do some bash scripting.

Regards  
Raul

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 11, 2019, 10:27am UTC](https://discuss.elastic.co/t/question-regarding-flush-synced-output/176378/2 "2019-04-11T10:27:54Z")

</div>

> [@raulk89](#):
>
> Probably have to do some bash scripting.

Or something else, it's not a format that Elasticsearch can provide.

---

<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:** [May 9, 2019, 10:27am UTC](https://discuss.elastic.co/t/question-regarding-flush-synced-output/176378/3 "2019-05-09T10:27:56Z")

</div>

Closed on May 9, 2019, 10:27am UTC

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