forked from google/tflow2
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtflow2.html
162 lines (162 loc) · 7.29 KB
/
tflow2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<html>
<!--
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<title>tflow Netflow Analyzer</title>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="/tflow2.css">
<script src="papaparse.min.js"></script>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="/tflow2.js"></script>
</head>
<body>
<header role="banner">
<h1>tflow Netflow Analyzer</h1>
</header>
<form>
<fieldset>
<legend>Netflow Query</legend>
<fieldset>
<legend>Filter</legend>
<div class="in">
<label for="Timestamp_gt">Start</label>
<input type="datetime-local" id="Timestamp_gt">
</div>
<div class="in">
<label for="Timestamp_lt">End</label>
<input type="datetime-local" id="Timestamp_lt">
</div>
<div class="in">
<label for="Agent">Agent</label>
<input type="text" id="Agent" required>
</div>
<div class="in">
<label for="IntInName">Interface In</label>
<input type="text" id="IntInName">
</div>
<div class="in">
<label for="IntOutName">Interface Out</label>
<input type="text" id="IntOutName">
</div>
<div class="in">
<label for="SrcAddr">SRC Address</label>
<input type="text" id="SrcAddr">
</div>
<div class="in">
<label for="DstAddr">DST Address</label>
<input type="text" id="DstAddr">
</div>
<div class="in">
<label for="Protocol">Protocol</label>
<input type="text" id="Protocol">
</div>
<div class="in">
<label for="SrcPort">SRC Port</label>
<input type="text" id="SrcPort">
</div>
<div class="in">
<label for="DstPort">DST Port</label>
<input type="text" id="DstPort">
</div>
<div class="in">
<label for="NextHop">Next Hop Address</label>
<input type="text" id="NextHop">
</div>
<div class="in">
<label for="SrcAs">SRC ASN</label>
<input type="text" id="SrcAs">
</div>
<div class="in">
<label for="DstAs">DST ASN</label>
<input type="text" id="DstAs">
</div>
<div class="in">
<label for="NextHopAs">Next Hop ASN</label>
<input type="text" id="NextHopAs">
</div>
<div class="in">
<label for="SrcPfx">SRC Prefix</label>
<input type="text" id="SrcPfx">
</div>
<div class="in">
<label for="DstPfx">DST Prefix</label>
<input type="text" id="DstPfx">
</div>
</fieldset>
<fieldset>
<legend>Breakdown</legend>
<div class="bd">
<input type="checkbox" id="bdSrcAddr">
<label for="bdSrcAddr">SRC Address</label>
</div>
<div class="bd">
<input type="checkbox" id="bdDstAddr">
<label for="bdDstAddr">DST Address</label>
</div>
<div class="bd">
<input type="checkbox" id="bdProtocol">
<label for="bdProtocol">Protocol</label>
</div>
<div class="bd">
<input type="checkbox" id="bdSrcPort">
<label for="bdSrcPort">SRC Port</label>
</div>
<div class="bd">
<input type="checkbox" id="bdDstPort">
<label for="bdDstPort">DST Port</label>
</div>
<div class="bd">
<input type="checkbox" id="bdIntInName">
<label for="bdIntInName">Interface In</label>
</div>
<div class="bd">
<input type="checkbox" id="bdIntOutName">
<label for="bdIntOutName">Interface Out</label>
</div>
<div class="bd">
<input type="checkbox" id="bdNextHop">
<label for="bdNextHop">Next Hop Address</label>
</div>
<div class="bd">
<input type="checkbox" id="bdSrcAsn">
<label for="bdSrcAsn">SRC ASN</label>
</div>
<div class="bd">
<input type="checkbox" id="bdDstAsn">
<label for="bdDstAsn">DST ASN</label>
</div>
<div class="bd">
<input type="checkbox" id="bdNextHopAsn">
<label for="bdNextHopAsn">Next Hop ASN</label>
</div>
<div class="bd">
<input type="checkbox" id="bdSrcPfx">
<label for="bdSrcPfx">SRC Prefix</label>
</div>
<div class="bd">
<input type="checkbox" id="bdDstPfx">
<label for="bdDstPfx">DST Prefix</label>
</div>
</fieldset>
<div class="in">
<label for="TopN">Aggregate top</label>
<input type="number" min="1" step="1" value="15" id="TopN">
</div>
</fieldset>
<input type="submit" value="Run Query" id="submit">
</form>
<div id="chart_div"></div>
</body>
</html>