Advertisement
thanh_thu

reindex_mapping_conflict

Jul 23rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. curl -XPUT 'http://192.168.10.86:9200/_template/filebeat_mapping' -H 'Content-Type: application/json' -d'
  2. > {
  3. > "template": "filebeat-*",
  4. > "settings": {
  5. > "number_of_shards": 1
  6. > },
  7. > "mappings": {
  8. > "json": {
  9. > "_source": {
  10. > "enabled": true
  11. > },
  12. > "properties": {
  13. > "metric_value_number": {
  14. > "type": "double"
  15. > }
  16. > }
  17. > }
  18. > }
  19. > }
  20. > '
  21.  
  22.  
  23. curl -XPOST 'http://192.168.10.86:9200/_reindex' -H 'Content-Type: application/json' -d'
  24. {
  25. "source": {
  26. "index": "filebeat-2019.07.23"
  27. },
  28. "dest": {
  29. "index": "filebeat-2019.07.23-reindexed"
  30. }
  31. }
  32. '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement