Having the following input string:
"health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open first_index 5 1 222173 0 43.8gb 43.8gb
green open second_index 5 1 27131 7 36.6gb 36.6gb
red open third_index 5 1 4047 0 22.4mb 22.4mb
"
How can I get the following output string, which takes the first column, health and the 3rd one, index?
"first_index - yellow, first_index - green, third_index - red"
Thanks in advance.
PS: The index names can vary and have no _index. The example above all of them have _index but there can be indexes without any _index. The values of status can vary too.
first_index - greena typo?