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