Commit 3d527e2e by Amir Aharon

add accounts and commands

parent e6cb4fea
No preview for this file type
...@@ -48,3 +48,6 @@ https://docs.npmjs.com/getting-started/fixing-npm-permissions ...@@ -48,3 +48,6 @@ https://docs.npmjs.com/getting-started/fixing-npm-permissions
e.g: delete every report older then 1519298608000 e.g: delete every report older then 1519298608000
db.getCollection('reports').remove({"created": { "$lte": 1519298608000}}) db.getCollection('reports').remove({"created": { "$lte": 1519298608000}})
[admin]
- top for io/disk: sudo iotop -oPa
...@@ -158,3 +158,6 @@ pip install es2csv ...@@ -158,3 +158,6 @@ pip install es2csv
es2csv -q 'type:"thing/*"' -u 172.16.1.72:9200 -o activities.csv -m 100 -i activityidx -f creationTime type metaData es2csv -q 'type:"thing/*"' -u 172.16.1.72:9200 -o activities.csv -m 100 -i activityidx -f creationTime type metaData
es2csv -q 'type:"thing/traffic-lane" AND userId:"chicago/*"' -u 172.16.1.72:9200 -o activities.csv -m 100 -i activityidx -f creationTime id type metaData es2csv -q 'type:"thing/traffic-lane" AND userId:"chicago/*"' -u 172.16.1.72:9200 -o activities.csv -m 100 -i activityidx -f creationTime id type metaData
es2csv -q 'type:"thing/traffic-lane" AND userId:"chicago/*" AND creationTime:>1519895494000' -u 172.16.1.72:9200 -o activities-traffic-chicago.csv -m 100000 -i activityidx -f creationTime id type metaData.loc metaData.measures.speed metaData.measures.vehicleCount
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment