You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The tool is in trial stage now and is being tested by Russian speaking users. Th
4
4
5
5
# АнаЛóг
6
6
**АнаЛóг** - это основанное на [tail](https://ru.wikipedia.org/wiki/Tail) веб-приложение, позволяющее просматривать в реальном времени одновременно несколько логов с удаленных тестовых серверов.
7
-
Основные особенности программы:
7
+
Основные возможности программы:
8
8
* просмотр логов через веб браузер;
9
9
_не требуется инсталляция специального ПО на клиентских машинах_;
10
10
* отображение новых записей в реальном времени;
@@ -19,6 +19,9 @@ _сообщение каждого уровня выводится в своем
19
19
_можно объединить несколько файлов (в т.ч. с разных серверов) в один виртуальный лог, который будет выводиться в браузере со строгим соблюдением временной последовательности и целостности записей (в т.ч. многострочных);_
20
20
* форматирование XML;
21
21
_АнаЛóг распознает XML-документы, расставляет для них отступы (даже если изначально XML был однострочным) и подсвечивает их синтаксис;_
22
+
* скачивание логов через браузер для открытия в текстовом редакторе;
23
+
_АнаЛóг позволяет скачать текущий файл лога, даже если он находится на удаленном узле агента АнаЛога.
24
+
При этом любой файл можно скачать как полностью, так и только последнюю его часть удобного размера._
22
25
23
26
### Как это работает?
24
27
АнаЛóг - Java-приложение, поставляемое в виде монолитного JAR-модуля и пары сопутствующих текстовых файлов. Приложение должно запускаться на том сервере, логи которого необходимо просматривать. После запуска приложение поднимает на указанном в настройках порту веб-интерфейс, через который пользователи могут выбирать и просматривать логи. Когда пользователь выбирает лог, приложение начинает отслеживать обновления этого лога при помощи встроенной в ОС утилиты `tail` (для Windows поставляется отдельно). Всякий раз, когда в логе появляется новая запись, `tail` передает ее АнаЛогу, а тот - рассылает ее всем клиентам (браузерам), прослушивающим этот лог.
В такой схеме любой сервер АнаЛога может составлять композитный лог, включающий как локальные для него логи, так и удаленные, доступ к которым он получит через агентов. Получая данные из этих источников, сервер агрегирует их и рассылает всем клиентам (браузерам), прослушивающим композитный лог.
30
33
31
34
### Как установить и настроить?
32
-
Ссылка для скачивания и инструкция по установке приведены на странице [релиза v0.8](https://github.com/Toparvion/analog/releases/tag/v0.8).
35
+
Ссылка для скачивания и инструкция по установке приведены на странице [последнего релиза](https://github.com/Toparvion/analog/releases/latest).
33
36
Пример и пояснения к параметрам конфигурации можно [посмотреть в Wiki](https://github.com/Toparvion/analog/wiki/%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80-%D0%BA%D0%BE%D0%BD%D1%84%D0%B8%D0%B3%D1%83%D1%80%D0%B0%D1%86%D0%B8%D0%B8).
This release of AnaLog is aimed to shorten the gap between browser capabilities and real users' demands - while
4
+
AnaLog was deliberately designed with certain browser restrictions in mind, it is quite obvious that ability to work
5
+
with whole (usually big) log files is essential for day-to-day tasks. That is why AnaLog introduces this new
6
+
feature - log file
7
+
downloading directly from browser.
8
+
9
+
There are several changes to highlight:
10
+
11
+
***Download current log** button is now available for any log (not plains only) and click on it does not trigger
12
+
downloading immediately anymore - instead a new 'Control Check' dialog is shown where:
13
+
* Current log's node, path, size and last modified timestamp are displayed;
14
+
* Download button is located along with its variants for downloading just last part of the log (50KB, 500KB, 5MB,
15
+
50MB, 200MB - depending of current log size);
16
+
* Dropdown select is displayed to choose a specific member of composite log (in case of latter only);
17
+
* Last error (if any) occurred while fetching log details (e.g. _HTTP 404 Not Found_, _HTTP 503 Unavailable_ etc).
18
+
19
+
* Host and ports of cluster properties are now set separately. There are 2 kind of ports to specify:
20
+
1. Agent port - a port to use by AnaLog server instance to support remote log monitoring;
21
+
2. Server port - a port to use by user browser and by other servers for downloading log files from agent
22
+
instances.
23
+
This port is not required and by default equals to `server.port` of current AnaLog instance.
24
+
25
+
*`clusterNodes` param has been renamed to `nodes` as well as its `address` property has been renamed to `host` as it doesn't contain port number anymore.
26
+
For example, if your configuration looks like:
27
+
```yaml
28
+
clusterNodes:
29
+
- name: alpha
30
+
address: alpha.example.com:7801
31
+
```
32
+
then it should be rewritten as:
33
+
```yaml
34
+
nodes:
35
+
- name: alpha
36
+
host: alpha.example.com
37
+
agentPort: 7801
38
+
serverPort: 8080# may be omitted optional if equals to server.port
39
+
```
40
+
41
+
* Added `/download` resource to AnaLog's server HTTP API:
42
+
* `HEAD /download` returns content length and last modified timestamp of specified file even if it resides on
43
+
remote node;
44
+
* `GET /download` returns the specified file itself (as an attachment in order to facilitate streaming
45
+
downloading). This also works transparently even for files on remote nodes of AnaLog.
46
+
47
+
The new resource is designed to be used in various ways:
48
+
* By web client application (in browser) to start file downloading via dedicated button on the control panel;
49
+
* By other servers to retrieve files from agents in previous scenario;
50
+
* **By end users themselves** to download frequently used files (e.g. by making a browser bookmark).
51
+
52
+
* Every log choice is now provided with label containing its 'type' (local, remote, composite) and list of its nodes.
53
+
This is a groundwork for future support of remote plain logs and composite log configuration refactoring.
0 commit comments