Created
July 31, 2016 21:52
-
-
Save jamesjara/4bedc0e44e70036bfcd8621702fbd79b to your computer and use it in GitHub Desktop.
mongo to elastic bulk create
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
#!/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