Created
March 27, 2018 10:57
-
-
Save SamyCoenen/1491683b0645c88cf398e3f9e634fdab to your computer and use it in GitHub Desktop.
Upload json files to elasticsearch
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
#!/bin/bash | |
# Author: Samy Coenen | |
# Company: Gluo NV | |
list="$(find . -type f)" | |
for i in list | |
do | |
curl -XPOST 'https://......................eu-central-1.es.amazonaws.com/_bulk' -d @$i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment