Line 20: | Line 20: | ||
3. Copy the SQL file into your log server(i.e. Dedicated Log server) and import it into your database by using the <code>mysql</code> command.<br> | 3. Copy the SQL file into your log server(i.e. Dedicated Log server) and import it into your database by using the <code>mysql</code> command.<br> | ||
''Note that if the operating system of your server is the Windows system, you must run the Command Prompt as administrator.'' | ''Note that if the operating system of your server is the Windows system, you must run the Command Prompt as administrator.'' | ||
− | + | [[File:imradlog_sql.png|400px]] | |
<pre> | <pre> | ||
# mysql -u<user> -p<password> < <your_directory>/imradlog.sql | # mysql -u<user> -p<password> < <your_directory>/imradlog.sql |
Revision as of 15:42, 12 May 2021
You can use a dedicated Log Server that can store more logs than the imRAD local database. If you configure it, the management interface reads logs from the dedicated Log Server and displays them.
Log Table | Local Database | Log Server | Log name |
---|---|---|---|
IP/MAC address history | 3 months | 48 months | DHCP Lease |
RADIUS Accounting | 3 months | 48 months | RADIUS Accounting |
RADIUS post-auth | 3 months | 48 months | RADIUS Postauth |
Configuring Dedicated Log Server
1. Install MariaDB 10.0 higher Database server. MySQL 5.7 or higher is also available. It doesn't matter which operating systems of the database server.
2. Open the "Dedicated Log server" page that is located in the "Environment" menu of the management interface. And then, download an SQL file by clicking the icon on the top right of the "Target log" table and save it on your computer.
3. Copy the SQL file into your log server(i.e. Dedicated Log server) and import it into your database by using the mysql
command.
Note that if the operating system of your server is the Windows system, you must run the Command Prompt as administrator.
# mysql -u<user> -p<password> < <your_directory>/imradlog.sql
If you successfully import the SQL file, it creates a user account, databases, and tables.
또는 imRAD 장비에서만 접속이 가능하게 계정을 생성할 수 있습니다.
mysql> CREATE USER 'newuser'@'imRAD-IP-Address' IDENTIFIED BY 'user_password'; mysql> GRANT type_of_permission ON database_name.table_name TO 'username'@'imRAD-IP-Address'; mysql> flush privileges;
newuser, user-password 그리고 imRAD-IP-Address는 사용 환경에 맞게 변경하세요.
3. 데이터베이스 및 테이블 생성
환경설정 > 로그 전용 서버> 대상 로그에서 쿼리 파일(imradlog.sql)를 다운로드 하여
서버로 복사 후 다음과 같이 로그 데이터베이스에 Import 합니다.
이 멸영은 리눅스 프롬프트나 윈도우즈 cmd 환경에서 실행해야 합니다.
mysql -unewuser -puser_password < imradlog.sql
5. imRAD 환경설정 > 로그 전용 서버
5-1. 로그 서버 설정
5-2. 대상 로그
전송 할 로그를 사용 하도록 선택하세요.
모든 과정이 끝나면 해당 서비스(Logexp)는 로컬 데이터베이스의 로그를 전용 서버로 전송합니다.