Sum Size of All Index

curl -s http://:9200/_cat/indices?bytes=m|cut -f8 -d" "|awk '{s+=$1} END {print s}'

where: bytes=m => Megabytes

and -f8 => primary + replicas