$ /usr/share/elasticsearch/bin/elasticsearch --help
Usage: /usr/share/elasticsearch/bin/elasticsearch [-vdh] [-p pidfile] [-D prop] [-X prop]
Start elasticsearch.
-d daemonize (run in background)
-p pidfile write PID to <pidfile>
-h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"timed_out" : false, | |
"took" : 1, | |
"_shards" : { | |
"failed" : 0, | |
"successful" : 10, | |
"skipped" : 0, | |
"total" : 10 | |
}, | |
"hits" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm run build | |
> grafana@5.0.0-pre1 build /home/arcolife/workspace/grafana | |
> grunt build | |
Version 5.0.0-pre1 | |
Running "clean:release" (clean) task | |
>> 0 paths cleaned. | |
Running "clean:build" (clean) task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from elasticsearch import helpers | |
from elasticsearch import Elasticsearch | |
hosts = [dict(host='0.0.0.0', port=9200),] | |
es = Elasticsearch(hosts) | |
d = [{'_op_type': 'create', '_index': 'sarjitsu.sar-20160224', '_type': 'sar', '_id': '744f14216b8bfd2ce701de37f7cfd434', '_source': {'timestamp': {'date': '2016-02-24', 'time': '02:46:18', 'utc': 1, 'interval': 29778}, 'cpu-load-all': [{'usr': 0.0, 'nice': 0.0, 'sys': 0.0, 'iowait': 0.0, 'steal': 0.0, 'irq': 0.0, 'soft': 0.0, 'guest': 0.0, 'gnice': 0.0, 'idle': 0.0, 'cpu': 'all'}, {'usr': 11.9, 'nice': 0.13, 'sys': 1.64, 'iowait': 0.36, 'steal': 0.0, 'irq': 0.0, 'soft': 0.0, 'guest': 0.0, 'gnice': 0.0, 'idle': 85.97, 'cpu': 0}, {'usr': 0.0, 'nice': 0.0, 'sys': 0.0, 'iowait': 0.0, 'steal': 0.0, 'irq': 0.0, 'soft': 0.0, 'guest': 0.0, 'gnice': 0.0, 'idle': 0.0, 'cpu': 1}, {'usr': 0.0, 'nice': 0.0, 'sys': 0.0, 'iowait': 0.0, 'steal': 0.0, 'irq': 0.0, 'soft': 0.0, 'guest': 0.0, 'gnice': 0.0, 'idle': 0.0, 'cpu': 2}, {'usr': 0.0, 'nice': 0.0, 'sys': 0.0, 'iowait': 0.0, 'st |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```ipy | |
# summary | |
In [11]: %history | |
from redis import Redis | |
con = Redis(host='0.0.0.0', port=6379) | |
con.get('saDir') | |
con.keys('*') | |
con.keys('file_metadata*') | |
con.hmget('file_metadata:36f61983-ea5d-4cfb-bfd8-57a9ae706cb8:sa15_f19', "sadf_type_det") | |
con.hgetall('file_metadata:79b9895a-ceb9-43c0-a5b9-0d9cc7ee3da0:sa24_arco') |
Script: https://github.com/arcolife/cfme-tune/blob/master/scripts/count_msg_state_in_range.sh
... -t
=> defaults to message delivered state type: Error
... -b <> -e <>
=> defaults to last one hour's worth of data.
Datetime format is of type $ date +'%Y-%m-%dT%H:%M:%S'
... - c --
=> optional argument
applied at 12:30 IST on 6th Nov'17 in CFME 5823
-
change settings in
/var/opt/rh/rh-postgresql95/lib/pgsql/data/postgresql.conf
as per https://bugzilla.redhat.com/show_bug.cgi?id=1489277#c0 -
restart db:
systemctl status rh-postgresql95-postgresql