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 | |
# Usage: ./hashscript <input> <output> | |
# Open terminal in Mac, type "nano hashscript", paste this in and save. Type "chmod +x hashscript" and make sure your data files are in the same directory | |
# Data format, rows of: example@domain.com,a,b,c,d,e where the first field is what you want to hash | |
for i in `cat $1`; do | |
IDENTIFIERFIELD="`echo $i | cut -d, -f 1 | tr -d ' ' | tr '[A-Z]' '[a-z]'`" | |
RESTOFINFO="`echo $i | cut -d, -f2-`" | |
IDENTIFIERFIELDHASH="`echo $IDENTIFIERFIELD | md5`" | |
echo $IDENTIFIERFIELDHASH,$RESTOFINFO >> $2 | |
done |
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
https://videos.haas.berkeley.edu/vod/player/player1f.html?banner=true&banselect=standard&title=Pricing%201%2F23%2F13&desc&loc=rtmpe%3A%2F%2Fvideo.haas.berkeley.edu%3A1935%2Fcourses%2F_definst_%2FSpring2013%2FMBA269-1&filename=mp4%3AM269-1_0123.mp4 | |
https://videos.haas.berkeley.edu/vod/player/player1f.html?banner=true&banselect=standard&title=Pricing%201/28/13&desc=&loc=rtmpe://video.haas.berkeley.edu:1935/courses/_definst_/Spring2013/MBA269-1&filename=mp4:M269-1_0128.mp4&width=640&height=360&autoplay=false&start=0&duration=0 |
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
{ | |
"_index": "logstash-2015.10.05", | |
"_type": "json", | |
"_id": "AVA6HXnB1hIV1bUmDQI7", | |
"_score": null, | |
"_source": { | |
"log": "{\"stdout\":true,\"user\":\"55fb050309d9c57ab72b7d17\",\"response_time\":\"14.062\",\"remote_addr\":\"::ffff:172.17.42.1\",\"status\":\"304\",\"method\":\"GET\",\"url\":\"/provider/55fb050309d9c57ab72b7d17/department\"}\n", | |
"stream": "stdout", | |
"time": "2015-10-05T22:26:58.713577111Z", | |
"@version": "1", |