Skip to content

Instantly share code, notes, and snippets.

@SamyCoenen
Created March 27, 2018 10:57
Show Gist options
  • Save SamyCoenen/1491683b0645c88cf398e3f9e634fdab to your computer and use it in GitHub Desktop.
Save SamyCoenen/1491683b0645c88cf398e3f9e634fdab to your computer and use it in GitHub Desktop.
Upload json files to elasticsearch
#!/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