You can find out what network's DNS server from within Ubuntu as follows:
$ nmcli dev show | grep 'IP4.DNS'
IP4.DNS[1]: 10.0.0.2
#!/bin/bash | |
curl -XDELETE `curl http://localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason | grep UNASS | awk '{print "http://localhost:9200/" $1}'` |
curl -XPOST 'localhost:9200/events/_update_by_query?pretty' -H 'Content-Type: application/json' -d' | |
{ | |
"script": { | |
"inline": "ctx._source.tags = ctx._source.tags.replace(\".\", \"_\")" | |
}, | |
"query" : { | |
"wildcard" : { | |
"tags" : "*deploy*" | |
} | |
} |