-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
358 lines (336 loc) · 16.7 KB
/
index.php
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<?define ("PAGE", "front");?>
<?checkFeedback();?>
<?include($_SERVER["DOCUMENT_ROOT"]."/assets/inc/header.php");?>
<div class="front-page-intro-block pl-lg-4 pl-xl-0">
<h1>Logrange</h1>
<h2>streaming database</h2>
<p>Logrange is highly performant streaming database for aggregating data like application logs, system metrics, audit logs etc. from thousands of sources.</p>
<div class="button-container">
<div class="d-inline-block d-sm-block d-lg-inline-block">
<a href="#get-logrange" class="btn btn-logrange btn-logrange-primary d-inline-block mr-3 float-left smooth-scroll">Get started</a>
</div>
<div class="d-inline-block d-sm-block d-lg-inline-block">
<a href="https://github.com/logrange/logrange" class="btn btn-logrange btn-logrange-outline d-inline-block float-left"><div class="github-logo non-mobile-only"></div>View on github</a>
</div>
</div>
</div>
</div><?//end of intro-block-container?>
<div class="container working-with-streams-container-container"><?//and new container and raw?>
<div class="row working-with-streams-container position-relative">
<div class="working-with-streams text-center px-5">
<h2>Designed for working with streams</h2>
<div class="row mx-0 non-mobile-only">
<div class="col-12 col-sm-6 col-lg-4 px-5 text-left">
<img src="<?=SITE_PATH?>images/working/1.svg">
<h4>Highly performant</h4><p>
Access to all saved data at any time,
no matter how big the stored data is. Logrange is able to save millions of records per second.</p>
</div>
<div class="col-12 col-sm-6 col-lg-4 px-5 text-left">
<img src="<?=SITE_PATH?>images/working/2.svg">
<h4>Scalable</h4><p>
Logrange is designed to be scalable horizontally. Data can be distributed across dozens of servers in the cluster. New nodes can be added into the cluster on demand.</p>
</div>
<div class="col-12 col-sm-6 col-lg-4 px-5 text-left">
<img src="<?=SITE_PATH?>images/working/3.svg">
<h4>Open Source</h4><p>
Written entirely in Go, Logrange is available under the Apache 2.0 license for easy adoption. Run it yourself, or use pre-build installations.</p>
</div>
<div class="col-12 col-sm-6 col-lg-4 px-5 text-left">
<img src="<?=SITE_PATH?>images/working/4.svg">
<h4>Secure</h4><p>
The data is secure during access, transit and storage. Get the full control over your data either it is in cloud, containerized or stored on premises.</p>
</div>
<div class="col-12 col-sm-6 col-lg-4 px-5 text-left">
<img src="<?=SITE_PATH?>images/working/5.svg">
<h4>Aggregate Data from Everywhere</h4><p>
Stream data from different sources and locations: application logs, metrics, run-time records can be saved to Logrange.</p>
</div>
<div class="col-12 col-sm-6 col-lg-4 px-5 text-left">
<img src="<?=SITE_PATH?>images/working/6.svg">
<h4>Making data work for you</h4><p>
Build tools for data monitoring, analytics, anomalies prediction, availability reports, security, incident investigation etc.</p>
</div>
</div>
<div class="row mobile-only-flex">
<div class="col-12">
<div id="streams-slider" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#streams-slider" data-slide-to="0" class="active"></li>
<li data-target="#streams-slider" data-slide-to="1"></li>
<li data-target="#streams-slider" data-slide-to="2"></li>
<li data-target="#streams-slider" data-slide-to="3"></li>
<li data-target="#streams-slider" data-slide-to="4"></li>
<li data-target="#streams-slider" data-slide-to="5"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="<?=SITE_PATH?>images/working/1.svg">
<h4>Highly performant</h4><p>
Access to all saved data at any time,
no matter how big the stored data is. Logrange is able to save millions of records per second.</p>
</div>
<div class="carousel-item">
<img src="<?=SITE_PATH?>images/working/2.svg">
<h4>Scalable</h4><p>
By data - accepts thousands data sources. Logrange HA cluster allows to save more data and serve more client requests.</p>
</div>
<div class="carousel-item">
<img src="<?=SITE_PATH?>images/working/3.svg">
<h4>Open Source</h4><p>
Written entirely in Go, Logrange is available under the Apache 2.0 license for easy adoption. Run it yourself, or use pre-build installations.</p>
</div>
<div class="carousel-item">
<img src="<?=SITE_PATH?>images/working/4.svg">
<h4>Secure</h4><p>
The data is secure during access, transit and storage. Get the full control over your data either it is in cloud, containerized or stored on premises.</p>
</div>
<div class="carousel-item">
<img src="<?=SITE_PATH?>images/working/5.svg">
<h4>Aggregate Data from Everywhere</h4><p>
The data is secure during access, transit and storage. Get the full control over your data either it is in cloud, containerized or stored on premises.</p>
</div>
<div class="carousel-item">
<img src="<?=SITE_PATH?>images/working/6.svg">
<h4>The Data works for you</h4><p>
Making the data works for you: visibility
of your system health, monitoring, analytics,anomalies prediction, availability reports, security, incident investigation etc.</p>
</div>
</div>
<a class="carousel-control-prev" href="#streams-slider" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#streams-slider" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid how-it-works">
<div class="container">
<div class="row text-center mb-0 mb-sm-5 pb-0 pb-sm-5">
<div class="col-12">
<h2>How it works?<br>Give me an example!</h2>
<div class="ellipsis non-mobile-only"><div></div><div></div><div></div></div>
<div class="how-it-works-media">
<div class="top-block">Logrange database could be used as<br>a full-featured log-aggregation system</div>
<div class="row justify-content-between non-mobile-only">
<div class="w-25 text-center">
<img src="<?=SITE_PATH?>images/howitworks/1.svg" class="slide w-75">
<div class="slide-num">1</div>
<p>Logrange collectors gather log data from distributed system components. The log data is send it to Logrange database.</p>
</div>
<div class="w-25 text-center">
<img src="<?=SITE_PATH?>images/howitworks/2.svg" class="slide w-75" style="margin-top: 160px">
<div class="slide-num">2</div>
<p>Logrange server persists the log data from the agents and serves the client requests. It supports <span class="color-blue font-weight-bold">Logrange Query Language</span></p>
</div>
<div class="w-25 text-center pt-3">
<img src="<?=SITE_PATH?>images/howitworks/3.svg" class="slide w-100">
<div class="slide-num">3</div>
<p>Logrange clients allow to search the data or send it to 3rd party systems</p>
</div>
</div>
<div class="ar-left non-mobile-only"><img src="<?=SITE_PATH?>images/howitworks/ar_left.png"></div>
<div class="ar-right non-mobile-only"><img src="<?=SITE_PATH?>images/howitworks/ar_right.svg"></div>
<div class="row mobile-only-flex">
<div class="col-2">
<div class="slide-num">1</div>
</div>
<div class="col-10">
<p>The data is secure during access, transit and storage. Get the full control over your data either it is in cloud, containerized or stored on premises.</p>
</div>
<div class="col-2">
<div class="slide-num">2</div>
</div>
<div class="col-10">
<p>Logrange server persists the log data from the agents and serves the client requests. It supports LQL - <span class="color-blue font-weight-bold">Logrange Query Language</span></p>
</div>
<div class="col-2">
<div class="slide-num">3</div>
</div>
<div class="col-10">
<p>Logrange clients allow to search the data or send it to 3rd party systems</p>
</div>
<div class="col-12">
<img src="<?=SITE_PATH?>images/howitworks/1.svg" class="slide w-50">
</div>
<div class="col-12">
<img src="<?=SITE_PATH?>images/howitworks/arrow_bottom-1.png" class="arrow-bottom">
</div>
<div class="col-12">
<img src="<?=SITE_PATH?>images/howitworks/2.svg" class="slide w-50">
</div>
<div class="col-12">
<img src="<?=SITE_PATH?>images/howitworks/arrow_bottom-2.png" class="arrow-bottom">
</div>
<div class="col-12">
<img src="<?=SITE_PATH?>images/howitworks/3.svg" class="slide w-50">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid get-logrange" style="overflow:hidden" id="get-logrange"><!--get-logrange-->
<div class="container text-center">
<div class="row">
<div class="col-12">
<h2>Get started now!<br>Try Log Aggregation with Logrange!</h2>
</div>
<div class="col-1 d-none d-sm-flex"></div>
<div class="col-12 col-lg-5">
<p class="get-logrange-intro mb-4 text-center text-sm-left d-inline-block d-sm-block">Logrange master branch is under active development and it is not production ready yet.<br>
<br>It is 100% open-source, so you can</p>
<div class="try-it-button-container text-center">
<a href="https://github.com/logrange/logrange#quick-start" class="btn btn-logrange btn-logrange-primary-alt d-inline-block float-lg-left"><div class="github-logo"></div>Try It Right Now</a>
</div>
</div>
<div class="col-12 col-lg-6">
<div class="screen">
<div class="tabs">
<ul class="nav nav-tabs" role="tablist" id="screenTabs">
<li class="nav-item">
<a class="nav-link active" id="standalone-tab" data-toggle="tab" href="#standalone" role="tab" aria-controls="standalone" aria-selected="true">STANDALONE</a>
</li>
<li class="nav-item">
<a class="nav-link" id="kubernetes-tab" data-toggle="tab" href="#kubernetes" role="tab" aria-controls="kubernetes" aria-selected="true">KUBERNETES</a>
</li>
</ul>
</div>
<div class="tab-info">
<div class="tab-content" id="screenTabsContent">
<div class="tab-pane show active" id="standalone" role="tabpanel" aria-labelledby="standalone-tab">
<span class="color-grey"># make and enter logrange install dir</span><br>
<b></b>mkdir /tmp/lrquick && cd /tmp/lrquick<br><br>
<span class="color-grey"># download logrange install script</span><br>
<b></b>curl -sO http://get.logrange.io/install<br/>
<b></b>chmod +x ./install<br><br>
<span class="color-grey"># install and run logrange aggregator</span><br>
<b></b>./install logrange -d ./bin<br>
<b></b>./bin/logrange start --base-dir=./data --daemon<br><br>
<span class="color-grey"># install and run logrange collector</span><br>
<b></b>./install lr -d ./bin<br>
<b></b>./bin/lr collect --storage-dir=./collector --daemon<br><br>
<span class="color-grey"># run logrange shell to make your first LQL query!</span><br>
<b></b>./bin/lr shell<br>
</div>
<div class="tab-pane" id="kubernetes" role="tabpanel" aria-labelledby="kubernetes-tab">
<span class="color-grey"># add logrange helm repo and update</span><br>
<b></b>helm repo add logrange http://get.logrange.io/k8s/helm/<br>
<b></b>helm repo update<br><br>
<span class="color-grey"># install logrange components</span><br>
<b></b>helm install logrange/lr-configs<br>
<b></b>helm install logrange/lr-aggregator<br>
<b></b>helm install logrange/lr-collector<br>
<b></b>helm install logrange/lr-forwarder<br><br>
<span class="color-grey"># download and install logrange client</span><br>
<b></b>curl -s http://get.logrange.io/install | bash -s -- lr -d /usr/local/bin<br><br>
<span class="color-grey"># run logrange shell to make your first LQL query!</span><br>
<b></b>lr shell --server-addr=lr-aggregator.kube-system.svc.cluster.local:9966<br>
</div>
</div>
</div>
<div class="tabs">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" id="copy2clipboard" data-toggle="tab">Copy to clipboard</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div><!--^get-logrange-->
<div class="container-fluid contact-us" id="contact-us"><!--contact_us-->
<div class="row">
<div class="col-sm-1"></div>
<div class="col-12 col-sm-5 pr-5">
<h3 class="text-center text-sm-left">Contact us</h3>
<p>Should you reject to save your system logs due to storage cost or the logs size?</p>
<p>Are you considering to have security alerts and notifications for your system?</p>
<p>You have multiple monitoring tools for your system, but still think that having one place with all kinds of analytics is a good idea?</p>
<p>Do you want to have something like anomalies prediction?</p>
<p>Or may be you want to improve your system monitoring and analytics...</p>
<p>Contact us and let us help you to resolve this problems.</p>
<a href="https://gitter.im/logrange/community" class="btn btn-logrange btn-link d-inline-block"><svg class="room-menu-options__item-logo-icon mr-3" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 18 25" style="height:1.5em"><rect x="15" y="5" width="2" height="10"></rect><rect x="10" y="5" width="2" height="20"></rect><rect x="5" y="5" width="2" height="20"></rect><rect width="2" height="15"></rect></svg>Join gitter chat room</a>
</div>
<div class="col-12 col-sm-5">
<h4 id="formInfo" class="w-100 text-center"></h4>
<form method="post" action="/sendform">
<input type="text" class="form-control" placeholder="Your name" name="name" pattern="[a-zA-Z '-.]+">
<input type="text" class="form-control" placeholder="Your email" name="email" required pattern="^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$">
<textarea class="form-control mb-3" placeholder="Say hello..." name="message" minlength="10" maxlength="5000" required></textarea>
<div class="button-container">
<button class="btn btn-logrange btn-logrange-primary submit-button float-right">Send message</button>
</div>
</form>
</div>
<div class="col-sm-1"></div>
</div>
</div><!--^contact_us-->
<?include($_SERVER["DOCUMENT_ROOT"]."/assets/inc/footer.php");?>
<script type="text/javascript">
$("form").validate({
rules: {
email: {
required: true,
email: true
},
message: {
minlength: 10,
maxlength: 5000
}
}
});
$("form").on("submit", function() {return false;});
$("form input").on("keyup", function() {
$(".submit-button")
.on("mouseup", function() {
if ($("form").valid())
$.post("", $("form").serialize(), function(data){
var j = JSON.parse(data);
if (j.status == "ok") {
showInfo("Thank you very much for your feedback.<br>We very appreciate you for it!");
$("form").addClass("smooth-hidden");
} else {
showInfo("<span class='color:red'>" + j.message + "</span>");
}
}).fail(function(){
showInfo("<span class='color:red'>Oops. Could not send the form to the server. Could you try once again later? Sorry about this.</span>");
});
});
$("form input").off("keyup");
});
</script>
<?
function checkFeedback() {
if (!isset($_POST) || !count($_POST)) return;
$errors = [];
if (!isset($_POST["email"]))
$errors [] = "Email is required.";
if (!isset($_POST["message"]))
$errors [] = "Your message is empty.";
else
if (strlen($_POST["message"]) < 10 || strlen($_POST["message"]) > 5000)
{
$errors [] = "Message size could be 10-5000 characters.";
}
if (count($errors))
{
echo json_encode(["status" => "error", "message" => implode("<br>", $errors)]);
}
else
{
file_put_contents($_SERVER["DOCUMENT_ROOT"]."/feedbackResult.html", "<tr><td>".date("m/d/Y H:i:s")."</td><td>".htmlspecialchars($_POST["name"])."</td><td>".htmlspecialchars($_POST["email"])."</td><td>".htmlspecialchars($_POST["message"])."</td></tr>\n", FILE_APPEND);
echo json_encode(["status" => "ok", "message" => ""]);
}
die();
}