Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
Update Threat_Investigation_master.ipynb
Browse files Browse the repository at this point in the history
Fixed indexes in query
  • Loading branch information
LedaLima authored Sep 20, 2016
1 parent 4dc9316 commit 9c2ec49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oa/proxy/ipynb_templates/Threat_Investigation_master.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
" # useragent:8, resconttype: 9, referer: 10, uriport:11, serverip:12, scbytes:13, csbytes:14\n",
" imp_query = (\"\\\"SELECT p_time, clientip, username, duration, fulluri, webcat, respcode, reqmethod,\\\n",
" useragent, resconttype, referer, uriport, serverip, scbytes, csbytes FROM {0}.proxy\\\n",
" WHERE y='{2}' AND m='{3}' AND d='{4}' AND (fulluri='{4}' OR referer ='{4}') ORDER BY p_time\\\"\") \n",
" WHERE y='{1}' AND m='{2}' AND d='{3}' AND (fulluri='{4}' OR referer ='{4}') ORDER BY p_time\\\"\") \n",
" \n",
" imp_query = imp_query.format(DBNAME,yy,mm,dd,anchor) \n",
" !impala-shell -i $IMPALA_DEM -r --quiet --print_header -B --output_delimiter='\\t' -q $imp_query -o $ir_f\n",
Expand Down

0 comments on commit 9c2ec49

Please sign in to comment.