Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -XPUT 'http://192.168.10.86:9200/_template/filebeat_mapping' -H 'Content-Type: application/json' -d'
- > {
- > "template": "filebeat-*",
- > "settings": {
- > "number_of_shards": 1
- > },
- > "mappings": {
- > "json": {
- > "_source": {
- > "enabled": true
- > },
- > "properties": {
- > "metric_value_number": {
- > "type": "double"
- > }
- > }
- > }
- > }
- > }
- > '
- curl -XPOST 'http://192.168.10.86:9200/_reindex' -H 'Content-Type: application/json' -d'
- {
- "source": {
- "index": "filebeat-2019.07.23"
- },
- "dest": {
- "index": "filebeat-2019.07.23-reindexed"
- }
- }
- '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement