Syslog-ng+loganalyzer Log System Install Guide

Source: Internet
Author: User
Tags character set datetime syslog create database

One, create a syslog database

mysql> CREATE DATABASE Syslog character set UTF8;    
mysql> use Syslog; Mysql> CREATE TABLE systemevents (ID int unsigned NOT NULL auto_increment primary key, Cus Tomerid bigint, Receivedat datetime null, devicereportedtime datetime NULL, facility S    
        Mallint NULL, Priority smallint NULL, fromhost varchar (a) null, message text, ntseverity int NULL, importance int NULL, EventSource varchar (a), Eventuser Varc    
        Har () null, eventcategory int NULL, EventID int NULL, eventbinarydata text null, maxavailable int NULL, currusage int NULL, minusage int NULL, maxusage int NU    
        LL, Infounitid int NULL, Syslogtag varchar (m), Eventlogtype varchar (60), Genericfilename VarChar, SystemID int NULL);    
        
        
        
Mysql> CREATE TABLE systemeventsproperties (ID int unsigned NOT NULL    
         Auto_increment primary KEY, Systemeventid int null, paramname varchar (255) NULL, Paramvalue text NULL);

Second, set database permissions

Mysql> GRANT all on syslog.* to syslog_ng@localhost identified by ' Syslog_ngpass ';               
mysql> FLUSH privileges;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.