Skip to content

Instantly share code, notes, and snippets.

@jamesjara
Created July 31, 2016 21:52
Show Gist options
  • Save jamesjara/4bedc0e44e70036bfcd8621702fbd79b to your computer and use it in GitHub Desktop.
Save jamesjara/4bedc0e44e70036bfcd8621702fbd79b to your computer and use it in GitHub Desktop.
mongo to elastic bulk create
#!/usr/bin/env python3
mail = open('ssl_elastic.json', 'w')
for line in open('ssl_fixed.json', 'r', encoding = "ISO-8859-1"):
mail.write( '{ "create":{ }} \n' + line )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment