mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 20:42:31 +08:00
remove pi script
This commit is contained in:
@ -1,31 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
echo "Generating bulk indexable shakespeare lines with timestamp 3 hours in the past and 10 hours into the future"
|
|
||||||
node reader.js > indexme.json
|
|
||||||
echo "Setting mapping for shakespeare index"
|
|
||||||
curl -XPUT http://10.1.1.18:9200/_template/shakespeare -d '
|
|
||||||
{
|
|
||||||
"template" : "shakespeare",
|
|
||||||
"mappings" : {
|
|
||||||
"_default_" : {
|
|
||||||
"properties" : {
|
|
||||||
"clientip" : { "type" : "ip" },
|
|
||||||
"speaker" : {"type": "string", "index" : "not_analyzed" },
|
|
||||||
"play_name" : {"type": "string", "index" : "not_analyzed" },
|
|
||||||
"line_id" : { "type" : "integer", "index": "not_analyzed" },
|
|
||||||
"speech_number" : { "type" : "integer", "index": "not_analyzed" },
|
|
||||||
"geo" : {
|
|
||||||
"properties": {
|
|
||||||
"state" : {"type": "string", "index" : "not_analyzed" },
|
|
||||||
"country" : {"type": "string", "index" : "not_analyzed" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'
|
|
||||||
echo
|
|
||||||
echo "Performing bulk indexing into 10.1.1.18:9200"
|
|
||||||
curl -XPUT 10.1.1.18:9200/_bulk --data-binary @indexme.json;echo
|
|
||||||
echo
|
|
||||||
echo "If tons of JSON just scrolled above, I've probably successfully loaded over 100,000 lines of shakespeare into 10.1.1.18:9200/shakespeare"
|
|
Reference in New Issue
Block a user