From 3cec89f58df0a22975bf6201584347e97eddb909 Mon Sep 17 00:00:00 2001 From: adrian-chen Date: Sun, 7 Sep 2014 12:39:04 -0600 Subject: [PATCH 1/6] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 43e9968..5f7ba26 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Name -write-your-name +Adrian Chen # How many points have you earned? @@ -10,7 +10,7 @@ write-your-name # Show and tell (10 points) -[title-of-the-article](http://link-to-an-interesting-article-about-a-cool-use-of-arduino) +[Turn Signal Jacket](http://www.instructables.com/id/turn-signal-biking-jacket/) # Checkpoints From 87a9868bebb500eea94b2ab8c87ee3617d804b64 Mon Sep 17 00:00:00 2001 From: adrian-chen Date: Sun, 7 Sep 2014 15:19:58 -0600 Subject: [PATCH 2/6] Update README.md --- README.md | 49 ++++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 5f7ba26..f96ebaa 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Adrian Chen # How many points have you earned? -0/100 +100/100 (Make your own calculation and replace the number 0 with the points you think you've earned.) @@ -34,117 +34,124 @@ Adrian Chen ### Q1. (3 points) -fill-in-your-answer +The number after the WWW denotes which server is responding. Especially to handle large amounts of web traffic, multiple servers are often needed. ### Q2. (3 points) -fill-in-your-answer +The Status Code for a successful purchase is 200. This only searches only though the successful purchases. ### Q3. (3 points) -fill-in-your-answer +The pipe (|) is a commonly used programming tool, it is used with such regularity both here and in other languages because it is well known and easy to use. ### Q4. (3 points) -fill-in-your-answer +Doing this data analysis in real time may be impossible depending on the number of requests a server recieves. A structural database isn't fully scalable to large sizes. # Challenges ## Challenge 1-a (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats count ``` ![image](image.png?raw=true) ## Challenge 1-b (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats count AS "Events" ``` ![image](image.png?raw=true) ## Challenge 1-c (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats count AS Events, count(eval(action="purchase")) AS Purchases ``` ![image](image.png?raw=true) ## Challenge 1-d (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats count AS Events, count(eval(action="purchase")) AS Purchases, count(eval(action="addtocart")) AS AddToCarts, count(eval(action="remove")) AS Removes ``` ![image](image.png?raw=true) ## Challenge 1-e (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats max(bytes) ``` ![image](image.png?raw=true) ## Challenge 1-f (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats max(bytes) ``` ![image](image.png?raw=true) ## Challenge 1-g (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats max(bytes) AS MAX ``` ![image](image.png?raw=true) ## Challenge 1-h (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats max(bytes) AS MAX, min(bytes) AS MIN, avg(bytes) AS AVG ``` ![image](image.png?raw=true) ## Challenge 1-i (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | stats dc(productId), values(productId) ``` ![image](image.png?raw=true) ## Challenge 2-a (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId cart.do | + table clientip, action, productId, date_month, date_mday, date_wday | top clientip ``` ![image](image.png?raw=true) ## Challenge 2-b (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId cart.do | + table clientip, action, productId, date_month, date_mday, date_wday | top date_wday limit=3 ``` ![image](image.png?raw=true) ## Challenge 2-c (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId cart.do | + table clientip, action, productId, date_month, date_mday, date_wday | top productId ``` ![image](image.png?raw=true) ## Challenge 2-d (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* date_wday="friday" productId cart.do | + table clientip, action, productId, date_month, date_mday, date_wday | top productId ``` ![image](image.png?raw=true) ## Challenge 2-e (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* date_wday="friday" action="purchase" productId cart.do | + table clientip, action, productId, date_month, date_mday, date_wday | top productId ``` ![image](image.png?raw=true) ## Challenge 2-f (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* action="purchase" productId cart.do | + table clientip, action, productId, date_month, date_mday, date_wday | top productId limit=1 ``` ![image](image.png?raw=true) ## Challenge 2-g (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* action="purchase" productId cart.do | + table clientip, action, productId, date_month, date_mday, date_wday | top productId limit=1 by date_wday ``` ![image](image.png?raw=true) From 77236ea3be19de6870a4594569f5ca9b68dd2708 Mon Sep 17 00:00:00 2001 From: adrian-chen Date: Sun, 7 Sep 2014 15:57:05 -0600 Subject: [PATCH 3/6] Update README.md --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index f96ebaa..cb3796a 100644 --- a/README.md +++ b/README.md @@ -157,64 +157,64 @@ sourcetype=access_* action="purchase" productId cart.do | ## Challenge 3-a (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart count ``` ![image](image.png?raw=true) ## Challenge 3-b (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart dc(clientip) AS UniqueIPs ``` ![image](image.png?raw=true) ## Challenge 3-c (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart span=3h dc(clientip) AS UniqueIPs ``` ![image](image.png?raw=true) ## Challenge 3-d (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart count by source ``` ![image](image.png?raw=true) ## Challenge 3-e (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart count by productId ``` ![image](image.png?raw=true) ## Challenge 3-f (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart count by productId limit=16 ``` ![image](image.png?raw=true) ## Challenge 3-g (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart count by clientip ``` ![image](image.png?raw=true) ## Challenge 3-h (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart count by clientip useother=f ``` ![image](image.png?raw=true) ## Challenge 3-i (2 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* productId=* | timechart span=3h sum(bytes) ``` ![image](image.png?raw=true) ## Challenge 4-a (4 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | rex "(?GET|POST)" | table mymethod, method, _raw ``` ![image](image.png?raw=true) ## Challenge 4-b (4 points) ``` -sourcetype=access_* [fill-in-the-rest] +sourcetype=access_* | rex "(GET|POST)" /cart.do\?action=(?purchase|view|addtocart|remove|changequantity)"| table mymethod, method, _raw From 7ccb40bf5784b1a7c2dea4ea05b052188f217017 Mon Sep 17 00:00:00 2001 From: adrian-chen Date: Sun, 7 Sep 2014 16:04:24 -0600 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb3796a..aa33902 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Doing this data analysis in real time may be impossible depending on the number ``` sourcetype=access_* | stats count ``` -![image](image.png?raw=true) +![image](http://imgur.com/asmhOLe.png) ## Challenge 1-b (2 points) ``` From 05224132f0ad2d7300ab3102f58ceaec3b0e951c Mon Sep 17 00:00:00 2001 From: adrian-chen Date: Sun, 7 Sep 2014 16:20:54 -0600 Subject: [PATCH 5/6] Update README.md --- README.md | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index aa33902..0ec10a0 100644 --- a/README.md +++ b/README.md @@ -60,49 +60,49 @@ sourcetype=access_* | stats count ``` sourcetype=access_* | stats count AS "Events" ``` -![image](image.png?raw=true) +![image](http://imgur.com/YRGX8d8.png) ## Challenge 1-c (2 points) ``` sourcetype=access_* | stats count AS Events, count(eval(action="purchase")) AS Purchases ``` -![image](image.png?raw=true) +![image](http://imgur.com/R3K882x.png) ## Challenge 1-d (2 points) ``` sourcetype=access_* | stats count AS Events, count(eval(action="purchase")) AS Purchases, count(eval(action="addtocart")) AS AddToCarts, count(eval(action="remove")) AS Removes ``` -![image](image.png?raw=true) +![image](http://imgur.com/YpmcoVn.png) ## Challenge 1-e (2 points) ``` sourcetype=access_* | stats max(bytes) ``` -![image](image.png?raw=true) +![image](http://imgur.com/iymadg4.png) ## Challenge 1-f (2 points) ``` sourcetype=access_* | stats max(bytes) ``` -![image](image.png?raw=true) +![image](http://imgur.com/iymadg4.png) ## Challenge 1-g (2 points) ``` sourcetype=access_* | stats max(bytes) AS MAX ``` -![image](image.png?raw=true) +![image](http://imgur.com/qmzLNQi.png) ## Challenge 1-h (2 points) ``` sourcetype=access_* | stats max(bytes) AS MAX, min(bytes) AS MIN, avg(bytes) AS AVG ``` -![image](image.png?raw=true) +![image](http://imgur.com/jQZyNmp.png) ## Challenge 1-i (2 points) ``` sourcetype=access_* | stats dc(productId), values(productId) ``` -![image](image.png?raw=true) +![image](http://imgur.com/BQaDj5W.png) ## Challenge 2-a (2 points) @@ -110,21 +110,21 @@ sourcetype=access_* | stats dc(productId), values(productId) sourcetype=access_* productId cart.do | table clientip, action, productId, date_month, date_mday, date_wday | top clientip ``` -![image](image.png?raw=true) +![image](http://imgur.com/vWER0SF.png) ## Challenge 2-b (2 points) ``` sourcetype=access_* productId cart.do | table clientip, action, productId, date_month, date_mday, date_wday | top date_wday limit=3 ``` -![image](image.png?raw=true) +![image](http://imgur.com/SGEWYzD.png) ## Challenge 2-c (2 points) ``` sourcetype=access_* productId cart.do | table clientip, action, productId, date_month, date_mday, date_wday | top productId ``` -![image](image.png?raw=true) +![image](http://imgur.com/5FdvIAR.png) ## Challenge 2-d (2 points) @@ -132,89 +132,91 @@ sourcetype=access_* productId cart.do | sourcetype=access_* date_wday="friday" productId cart.do | table clientip, action, productId, date_month, date_mday, date_wday | top productId ``` -![image](image.png?raw=true) +![image](http://imgur.com/w69zd5q.png) ## Challenge 2-e (2 points) ``` sourcetype=access_* date_wday="friday" action="purchase" productId cart.do | table clientip, action, productId, date_month, date_mday, date_wday | top productId ``` -![image](image.png?raw=true) +![image](http://imgur.com/Dxunszq.png) ## Challenge 2-f (2 points) ``` sourcetype=access_* action="purchase" productId cart.do | table clientip, action, productId, date_month, date_mday, date_wday | top productId limit=1 ``` -![image](image.png?raw=true) +![image](http://imgur.com/yyKdF2T.png) ## Challenge 2-g (2 points) ``` sourcetype=access_* action="purchase" productId cart.do | table clientip, action, productId, date_month, date_mday, date_wday | top productId limit=1 by date_wday ``` -![image](image.png?raw=true) +![image](http://imgur.com/zPBzGsj.png) ## Challenge 3-a (2 points) ``` sourcetype=access_* productId=* | timechart count ``` -![image](image.png?raw=true) +![image](http://imgur.com/n5MIXqu.png) ## Challenge 3-b (2 points) ``` sourcetype=access_* productId=* | timechart dc(clientip) AS UniqueIPs ``` -![image](image.png?raw=true) +![image](http://imgur.com/HB44vcb.png) ## Challenge 3-c (2 points) ``` sourcetype=access_* productId=* | timechart span=3h dc(clientip) AS UniqueIPs ``` -![image](image.png?raw=true) +![image](http://imgur.com/0OJlXW8.png) ## Challenge 3-d (2 points) ``` sourcetype=access_* productId=* | timechart count by source ``` -![image](image.png?raw=true) +![image](http://imgur.com/FKa9MP7.png) ## Challenge 3-e (2 points) ``` sourcetype=access_* productId=* | timechart count by productId ``` -![image](image.png?raw=true) +![image](http://imgur.com/81998Iy.png) ## Challenge 3-f (2 points) ``` sourcetype=access_* productId=* | timechart count by productId limit=16 ``` -![image](image.png?raw=true) +![image](http://imgur.com/TuXxNn9.png) ## Challenge 3-g (2 points) ``` sourcetype=access_* productId=* | timechart count by clientip ``` -![image](image.png?raw=true) +![image](http://imgur.com/D4hc1Ia.png) ## Challenge 3-h (2 points) ``` sourcetype=access_* productId=* | timechart count by clientip useother=f ``` -![image](image.png?raw=true) +![image](http://imgur.com/cFXUCwI.png) ## Challenge 3-i (2 points) ``` sourcetype=access_* productId=* | timechart span=3h sum(bytes) ``` -![image](image.png?raw=true) +![image](http://imgur.com/12PXWkv.png) ## Challenge 4-a (4 points) ``` sourcetype=access_* | rex "(?GET|POST)" | table mymethod, method, _raw ``` -![image](image.png?raw=true) +![image](http://imgur.com/9ZCZpJ5.png) ## Challenge 4-b (4 points) ``` sourcetype=access_* | rex "(GET|POST)" /cart.do\?action=(?purchase|view|addtocart|remove|changequantity)"| table mymethod, method, _raw +``` +![image](image.png?raw=true) From eb048cf97771c86e8abca7b5cbb4e716c14de721 Mon Sep 17 00:00:00 2001 From: adrian-chen Date: Sun, 7 Sep 2014 16:24:11 -0600 Subject: [PATCH 6/6] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0ec10a0..6274f52 100644 --- a/README.md +++ b/README.md @@ -16,19 +16,19 @@ Adrian Chen ## Checkpoint 1 (5 points) -![image](image.png?raw=true) +![image](http://imgur.com/iaLRoZZ.png) ## Checkpoint 2 (5 points) -![image](image.png?raw=true) +![image](http://imgur.com/cL8Vl6A.png) ## Checkpoint 3 (5 points) -![image](image.png?raw=true) +![image](http://imgur.com/T2URN5Q.png) ## Checkpoint 4 (5 points) -![image](image.png?raw=true) +![image](http://imgur.com/LwZvAmc.png) ## Study Questions (3 points x 4 = 12 points) @@ -219,4 +219,4 @@ sourcetype=access_* | rex "(?GET|POST)" | table mymethod, method, _raw ``` sourcetype=access_* | rex "(GET|POST)" /cart.do\?action=(?purchase|view|addtocart|remove|changequantity)"| table mymethod, method, _raw ``` -![image](image.png?raw=true) +![image](http://imgur.com/E5NT0gH.png)