...
Collection
Data Collection The registered collector managers and lists of collectors will be aggregated in a tree format based on a table unit from the database. Template file
마크베이스 서버에 등록된 collector manager와 collecotor 리스트가 트리 형태로 표시된다.
탬플릿 파일(.tpl), regex file 정규 표현식 파일(.rgx) and preprocess file 과 선처리 스트크립트 파일(.py) must be located in the specified path of 은 MACHBASE_HOME 경로를 기준으로 다음의 경로에 위치해야 한다.Template file
- 탬플릿 파일(.tpl) : $MACHBASE_HOME/collector
...
- 정규 표현식 파일(.
...
- tpl) : $MACHBASE_HOME/collector/regex
...
- 선처리 스크립트 파일(.py) : $MACHBASE_HOME/collector/preprocess
In a table, the number of records will be displayed on the right next to the icon of an eye. When you hover your mouse over the eye icon화면에 표시된 테이블의 우측에 눈(eye)모양의 아이콘 오른쪽에 레코드의 수가 표시된다. 눈 모양의 아이콘 위로 마우스 커서를 옮기면, "View Table" window will be appeared. If you click the icon, it will take you to 윈도우가 표시된다. 눈 모양의 아이코능ㄹ 클릭하면, "Table Explorer" to check the contents. And below tables show execution states whether the collector or collector manager is running, and collection speed. On the right side of each collector, you can find three little icons representing START, STOP and DROP commands.
Click "add Manager" button to execute the collector manager in a separate popup window. In this window, you can register a collector manager with "Create Manager" button, and can find the three icons on the right side representing RENAME, DROP and LIST features. LIST will display all the collectors that are registered to the collector manager.
You can create a collector with "add Collector" button. Select the collector manager first and insert a collector name. The collector name must be unique in the collector manager.
To click "Template" button, a window will be appeared. You can manage templates in this window and click "New" button to create a new template. at the end of each template, there is an icon to edit the existing template. With this feature, you can create a new template by changing the name of the existing template and save. Caution must be exercised to check whether DB_ADDR and DB_PORT are correct before saving them. If hovering your mouse over a box where you type in or select items, you can find the information form tooltip description..
Preprocess
It manages script files of preprocess that are used in the template file. If you select a collector manager from the upper right corner of the screen, it fetches the list of preprocess script files. To click "Reload" button under of the collector manager, it fetches the list of script files again.
To click a preprocess script file, you can select and modify the contents, and even initialize the script contents by clicking "New" button. Aslo the contents of the script file will be displayed on the left side. To click "Save" button, it can save inserted contents. In this case, if a new file name is inserted, a new script file will be created.
Regular Expression
It manages regular expression files that are used in template files. When you select a collector manager on the upper right corner of the screen, it fetches the list of regular expression files. To click "Reload" button under the collector manager, it fetches the list of regular expression files again.
When you click a regular expression file from the list on the right side, you can select and modify the contents, and even initialize the contents of regular expressions and create a new regular expression by clicking "New" button화면으로 전환되어 테이블 내용을 확인 할 수 있다. 테이블 하단에는 콜렉터와 콜렉터 관리자의 실행 상태와, 데이터 수집 속도를 볼 수 있다. 각 콜렉터 이름의 오른쪽에 콜렉터에 실행, 중지, 삭제 명령을 실행하는 아이콘이 있다.
"add Manager" 버튼을 누르면 별도의 윈도우에 콜렉터 관리자를 실행하는 윈도우가 열린다. 이 윈도우에서 "Create Manager"버튼으로 신규 콜렉터 관리자를 등록할 수 있고, 오른쪽에 RENAME, DROP, LIST 기능을 실행할 수 있는 버튼이 있다. LIST 버튼은 그 콜렉터 관리자가 관리하고 있는 콜렉터의 목록을 표시한다.
특정 콜렉터 관리자가 관리하는 콜렉터를 "add Manager" 버튼을 이용하여 생성할 수 있다. 콜렉터 관리자를 선택한 다음, 생성할 콜렉터의 이름을 입력한다. 콜렉터의 이름은 콜렉터 관리자에 대해서 유일한 값이어야 한다.
"Template"버튼을 클릭하면 새로운 윈도우가 표시된다. "New" 버튼을 이용하여 새로운 탬플릿 파일을 생성할 수 있다. 각 템플릿 파일 명의 오른쪽에 탬플릿 파일을 수정하기 위한 버튼이 있다. 이 기능을 이용하여 기존에 만들어진 탬플릿 파일을 이용하여 새로운 탬플릿 파일을 생성할 수 있다. 탬플릿 파일을 생성, 변경하고 저장하기 전에 DB_ADDR 및 DB_PORT필드가 적절한 값인지 확인해야 한다. 화면에 표시된 각 구성요소에 마우스 커서를 가져가면, 구성요소에 대한 설명이 표시된다.
Preprocess
이 기능은 선처리 스크립트 파일을 관리하기 위해 사용된다. 콜렉터 관리자를 화면의 우측 구석에서 선택하면, 선처리 스크립트 파일의 목록을 표시한다. "Reload"버튼을 누르면 파일 목록을 다시 읽어서 표시한다.
스크립트 파일명을 클릭하여 파일을 편집할 수 있고, "New" 버튼을 이용하여 새로운 스크립트 파일을 생성할 수 있다. "Save"버튼을 이용하여 변경하거나 생성한 파일을 기록할 수 있다.
Regular Expression
탬플릿 파일에서 사용되는 정규 표현식 파일을 관리하는 기능이다. 우측에서 콜렉터 관리자를 선택하면, 정규 표현식 파일의 목록을 표시한다. "Reload" 버튼을 이용하여 목록을 다시 읽어 올 수 있다.
정규 표현식 파일 목록에서 파일을 클릭하면 파일 내용이 표시되고 그 파일을 변경할 수 있다. "New"버튼을 이용하여 신규 정규표현식 파일을 생성할 수 있다.
정규 표현식 파일은 다음의 구성 요소를 포함해야 한다.
Insert regular expressions on the top. See below for detailed instructions.
Regex(REGEX): regular expression to analyze data.
Start(START_REGEX): a regular expression to represent a starting point of data. It is included for REGEX analysis.
End(END_REGEX) : a regular expression to represent a ending point of data. It is excluded for REGEX analysis.
...