Question regarding _flush/synced output

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

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

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