You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by ev...@apache.org on 2016/12/08 18:48:50 UTC
[10/50] [abbrv] incubator-spot git commit: Fixed bug where the
selected IP was always displaying instead of the other IPs
Fixed bug where the selected IP was always displaying instead of the other IPs
Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/54c9131f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/54c9131f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/54c9131f
Branch: refs/heads/master
Commit: 54c9131fe9e38dceb70c528ac2b1071f0dc104ca
Parents: 409e1d3
Author: LedaLima <ll...@miguelag-mobl1.amr.corp.intel.com>
Authored: Tue Nov 22 11:54:50 2016 -0600
Committer: LedaLima <ll...@miguelag-mobl1.amr.corp.intel.com>
Committed: Tue Nov 22 11:54:50 2016 -0600
----------------------------------------------------------------------
.../Threat_Investigation_master.ipynb | 24 +++++++++++++-------
1 file changed, 16 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/54c9131f/spot-oa/oa/flow/ipynb_templates/Threat_Investigation_master.ipynb
----------------------------------------------------------------------
diff --git a/spot-oa/oa/flow/ipynb_templates/Threat_Investigation_master.ipynb b/spot-oa/oa/flow/ipynb_templates/Threat_Investigation_master.ipynb
index 2022afc..820395a 100644
--- a/spot-oa/oa/flow/ipynb_templates/Threat_Investigation_master.ipynb
+++ b/spot-oa/oa/flow/ipynb_templates/Threat_Investigation_master.ipynb
@@ -2,11 +2,19 @@
"cells": [
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 6,
"metadata": {
"collapsed": false
},
- "outputs": [],
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "No iploc.csv file was found, Map View map won't be created\n"
+ ]
+ }
+ ],
"source": [
"import struct, socket\n",
"import numpy as np\n",
@@ -51,7 +59,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 7,
"metadata": {
"collapsed": false
},
@@ -121,7 +129,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 8,
"metadata": {
"collapsed": true
},
@@ -263,7 +271,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 9,
"metadata": {
"collapsed": false
},
@@ -482,10 +490,10 @@
" } \n",
" rowct +=1 \n",
" \n",
- " src = df.loc[df['srcip'] == anchor]\n",
+ " src = df.loc[df['dstip'] == anchor]\n",
" src_per_conns = src.sort_values('conns',0,False)\n",
" src_per_bytes = src.sort_values('maxbytes',0,False)\n",
- " dst = df.loc[df['dstip'] == anchor]\n",
+ " dst = df.loc[df['srcip'] == anchor]\n",
" dst_per_conns = dst.sort_values('conns',0,False)\n",
" dst_per_bytes = dst.sort_values('maxbytes',0,False)\n",
"\n",
@@ -761,7 +769,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 10,
"metadata": {
"collapsed": false
},