@@ -0,0 +1,1875 @@
+# to be executed as Jupyter notebook%0Aget_ipython().system('pip install plotly --upgrade')%0A%0Afrom plotly import __version__%0Afrom plotly.offline import download_plotlyjs, init_notebook_mode, iplot%0Aimport json%0Aimport plotly.graph_objs as go%0A%0Aprint(__version__)  # requires version %3E= 1.9.0%0A%0A%0Ainit_notebook_mode()  # run at the start of every ipython notebook to use plotly.offline this injects the plotly.js source files into the notebook%0A%0Asce_t = %5B%5D%0Asce_y = %5B%5D%0Afi_t = %5B%5D%0Afi_y = %5B%5D%0An9_t = %5B%5D%0An9_y = %5B%5D%0Aex_t = %5B%5D%0Aex_y = %5B%5D%0Aex_text = %5B%5D%0Ast_t = %5B%5D%0Ast_y = %5B%5D%0Ast_text = %5B%5D%0A%0Awith open('C:%5C%5CUsers%5C%5Ckshileev%5C%5Cdesktop%5C%5Clogs%5C%5Cjson_new.log') as f:%0A    for line in f:%0A        j = json.loads(line)%0A        timestamp = j%5B'@timestamp'%5D%0A        if j.get('status', 'None') == 'Start':%0A            st_t += %5Btimestamp%5D%0A            st_y += %5B10%5D%0A            st_text += %5Bj%5B'name'%5D%5D%0A        if 'n_ports' in j:%0A            sce_t += %5Btimestamp%5D%0A            sce_y += %5Bj%5B'n_ports'%5D%5D%0A        if 'ucsm' in j%5B'name'%5D and 'n_vlans' in j:%0A            fi_t += %5Btimestamp%5D%0A            fi_y += %5Bj%5B'n_vlans'%5D%5D%0A        if 'nexus' in j%5B'name'%5D and 'n_vlans' in j:%0A            if 'service' not in j:%0A                n9_t += %5Btimestamp%5D%0A                n9_y += %5Bj%5B'n_vlans'%5D%5D%0A        if 'EXCEPTION' in j:%0A            ex_t += %5Btimestamp%5D%0A            ex_y += %5B1%5D%0A            ex_text += %5Bj%5B'EXCEPTION'%5D%5D%0A%0Asce = go.Scatter(x=sce_t, y=sce_y, text=%5B'th net-sub-port'%5D*len(sce_t), name='load', mode='markers')%0Afi = go.Scatter(x=fi_t, y=fi_y, text=%5B'vlans'%5D*len(fi_t), name='FI', mode='markers')%0An9 = go.Scatter(x=n9_t, y=n9_y, text=%5B'vlans'%5D*len(n9_t), name='N9K', mode='markers')%0Aex = go.Scatter(x=ex_t, y=ex_y, text=ex_text, name='Exceptions=%7B0%7D'.format(len(ex_t)), mode='markers')%0Ast = go.Scatter(x=st_t, y=st_y, text=st_text, name='Starts=%7B0%7D'.format(len(st_t)), mode='markers')%0A%0Adata = %5Bst, ex, sce, fi, n9%5D%0A%0Aiplot(data)%0A

Add plotly based grapher tool as Jupyter notebook cell