grep -Po ':"\K[^"]*' file
will print out all values that you need. but the format is not what you are expecting, because of the -o
each matching will sit in one line. what you could try is:
grep -Po ':"\K[^"]*' file|xargs -n4
test:
kent$ grep -Po ':"\K[^"]*' f|axrgs -n4
10.1.1.2 host2 http active
10.1.1.3 host3 sql active
10.1.1.4 host4 quad active
with awk you could do extracting and formatting in one shot:
awk -F'":"|","|"}' '{print $2,$4,$6,$8}' file
if you have many fields, you could write a loop, just print the fields with EVEN idx.
test with your file:
kent$ awk -F'":"|","|"}' '{print $2,$4,$6,$8}' f
10.1.1.2 host2 http active
10.1.1.3 host3 sql active
10.1.1.4 host4 quad active