forked from brandonwamboldt/varnish-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
logs.html
193 lines (167 loc) · 9.71 KB
/
logs.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Logs :: Varnish Dashboard</title>
<link rel="shortcut icon" href="./assets/images/favicon.ico">
<link rel="stylesheet" href="./vendor/bootstrap-3.3.2-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./assets/css/main.css">
</head>
<body data-page="logs">
<header class="navbar navbar-fixed-top navbar-inverse" id="top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="./" class="navbar-brand"><img src="assets/images/logo.png" alt="Enhanced Varnish Dashboard"></a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="./">Dashboard</a></li>
<li><a href="./bans.html">Bans</a></li>
<li><a href="./manage.html">Manage Server</a></li>
<li><a href="./vcl.html">VCL</a></li>
<li><a href="./stats.html">Stats</a></li>
<li><a href="./params.html">Params</a></li>
<li class="active"><a href="./logs.html">Logs</a></li>
</ul>
<form class="navbar-form navbar-right" id="server-navigation" style="display:none">
<div class="dropdown clearfix">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
All Servers
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation" class="dropdown-header">Server Groups</li>
<li role="presentation" id="sg-all-servers"><a role="menuitem" class="switch-server" data-server="" href="./">All Servers</a></li>
<li role="presentation" id="sg-servers" class="dropdown-header">Servers</li>
</ul>
</div>
</form>
</nav>
</div>
</header>
<div class="container page-body" id="logs-body">
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading"><i class="glyphicon glyphicon-cog"></i> Log Options</div>
<div class="panel-body">
Note: Log items are <strong>fetched</strong> in chronological order, starting with the oldest entries.
Due to API limitations, this cannot be changed. <br><br>
Items are <strong>displayed</strong> locally in reverse chronological order, with newer entries
first.<br><br>
<form>
<strong># of log items to fetch (<code>-k</code>):</strong><br><br>
<input class="form-control" type="text" id="logapi-limit" value=""><br>
<strong># of log items to display:</strong><br><br>
<input class="form-control" type="text" id="logapi-display" value=""><br>
<strong>Log Entry Tag (<code>-i</code>):</strong><br><br>
<select class="form-control" id="logapi-tag">
<option value=""> - All Tags - </option>
<option value="Backend">Backend</option>
<option value="BackendClose">BackendClose</option>
<option value="BackendOpen">BackendOpen</option>
<option value="BackendReuse">BackendReuse</option>
<option value="BackendXID">BackendXID</option>
<option value="CLI">CLI</option>
<option value="ClientAddr">ClientAddr</option>
<option value="Debug">Debug</option>
<option value="Error">Error</option>
<option value="ExpBan">ExpBan</option>
<option value="ExpKill">ExpKill</option>
<option value="ExpPick">ExpPick</option>
<option value="Hit">Hit</option>
<option value="HitPass">HitPass</option>
<option value="HttpError">HttpError</option>
<option value="HttpGarbage">HttpGarbage</option>
<option value="Length">Length</option>
<option value="ObjHeader">ObjHeader</option>
<option value="ObjLostHeader">ObjLostHeader</option>
<option value="ObjProtocol">ObjProtocol</option>
<option value="ObjRequest">ObjRequest</option>
<option value="ObjResponse">ObjResponse</option>
<option value="ObjStatus">ObjStatus</option>
<option value="ObjURL">ObjURL</option>
<option value="ReqEnd">ReqEnd</option>
<option value="ReqStart">ReqStart</option>
<option value="RxHeader">RxHeader</option>
<option value="RxLostHeader">RxLostHeader</option>
<option value="RxProtocol">RxProtocol</option>
<option value="RxRequest">RxRequest</option>
<option value="RxResponse">RxResponse</option>
<option value="RxStatus">RxStatus</option>
<option value="RxURL">RxURL</option>
<option value="SessionClose">SessionClose</option>
<option value="SessionOpen">SessionOpen</option>
<option value="StatAddr">StatAddr</option>
<option value="StatSess">StatSess</option>
<option value="TTL">TTL</option>
<option value="TxHeader">TxHeader</option>
<option value="TxLostHeader">TxLostHeader</option>
<option value="TxProtocol">TxProtocol</option>
<option value="TxRequest">TxRequest</option>
<option value="TxResponse">TxResponse</option>
<option value="TxStatus">TxStatus</option>
<option value="TxURL">TxURL</option>
<option value="VCL_acl">VCL_acl</option>
<option value="VCL_call">VCL_call</option>
<option value="VCL_return">VCL_return</option>
<option value="VCL_trace">VCL_trace</option>
<option value="WorkThread">WorkThread</option>
</select>
<div id="log-entry-regex" style="display:none">
<br><strong>Log Entry Regex (<code>-I</code>):</strong><br><br>
<input class="form-control" type="text" id="logapi-regex" value="">
</div>
</form>
</div>
</div>
</div>
<div class="col-md-8" id="server-logs">
<div class="panel panel-default">
<div class="panel-heading">
<i class="glyphicon glyphicon-cog"></i>
<span>Logs</span>
<a href="#" id="refresh-logs" class="btn btn-xs btn-primary pull-right"><i class="glyphicon glyphicon-refresh"></i> Refresh</a>
<a href="#" id="enable-auto-refresh" class="btn btn-xs btn-success pull-right" style="margin-right:6px"><i class="glyphicon glyphicon-refresh"></i> Enable Auto Refresh</a>
<a href="#" id="disable-auto-refresh" class="btn btn-xs btn-warning pull-right" style="display:none;margin-right:6px"><i class="glyphicon glyphicon-refresh"></i> Disable Auto Refresh</a>
</div>
<div class="panel-body">
Loading...
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer" role="contentinfo">
<div class="container">
<p>Enhanced Varnish Dashboard by <a href="https://github.com/brandonwamboldt" target="_blank">@brandonwamboldt</a>.</p>
<p>
The Enhanced Varnish Dashboard is licensed under the <a href="https://github.com/brandonwamboldt/varnish-dashboard/blob/master/LICENSE.md" target="_blank">MIT</a> license, our documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
</p>
<ul class="site-footer-links text-muted">
<li>Currently v1.0.0</li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard">GitHub</a></li>
<li>·</li>
<li><a href="http://brandonwamboldt.github.io/varnish-dashboard/">Documentation</a></li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard/issues">Issues</a></li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard/releases">Releases</a></li>
</ul>
</div>
</footer>
<script src="./config.js"></script>
<script src="./vendor/jquery-1.11.2.min.js"></script>
<script src="./vendor/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
<script src="./assets/js/varnish.js"></script>
<script src="./assets/js/main.js"></script>
<script src="./assets/js/logs.js"></script>
</body>
</html>