Created
April 11, 2017 01:40
-
-
Save kosho/35f8871ea5b0480fb25d08c80637ecce to your computer and use it in GitHub Desktop.
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
tail -n +2 %1 | awk 'BEGIN{FS = ","}{print "{\"index\": { }}\n{ \"@timestamp\" : \""$1"\", \"field2\": \""$2"\", \"field3\":" $3 "}" }' > %2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment