Rsyslog 详解 日志整理 对日志进行分析,首先第一步要规整日志。 /etc/rsyslog.conf 是rsyslog服务的总配置文件 /etc/rsyslog.d 该目录是单独配置的rsyslog配置文件 vim /etc/rsyslog.conf # Include all config ...
分类:
其他好文 时间:
2020-07-09 19:19:36
阅读次数:
128
若需要重新安装(拷贝虚拟机文件移植到其他地方使用) 1)更改IP配置文件/etc/sysconfig/network-scripts/ifcfg-ens33网段需要与物理网卡网段一致; vim /etc/sysconfig/network-scripts/ifcfg-ens33 IPADDR=192 ...
分类:
其他好文 时间:
2020-07-07 17:36:44
阅读次数:
66
定义事件: -- 定义事件,删除10天前数据,并指定每5秒执行一次;Event_syslog为事件名称 CREATE EVENT IF NOT EXISTS Event_syslog ON SCHEDULE EVERY 5 SECOND STARTS curdate() ON COMPLETION ...
分类:
数据库 时间:
2020-07-03 01:02:21
阅读次数:
148
用户可以根据自己的需求,使用特定选项分别启动/停止守护进程。 场景一:仅启动ovsdb守护进程,不启动ovs-vswitchd守护进程 $ ovs-ctl --no-ovs-vswitchd start 场景二:仅启动ovs-vswitchd守护进程,不启动ovsdb守护进程 $ ovs-ctl - ...
分类:
其他好文 时间:
2020-07-02 18:18:02
阅读次数:
63
frp 开机自启动 进入 frp 根目录的 systemd 文件夹 vim frps.service [Unit] Description=Frp Server Service After=network.target syslog.target [Service] Type=simple User ...
分类:
其他好文 时间:
2020-07-02 13:10:49
阅读次数:
53
1. 创建服务配置文件 [root@localhost ~]# cat /etc/systemd/system/test.service [Unit] Description=test Service After=syslog.target [Service] User=root ExecStart ...
分类:
其他好文 时间:
2020-06-30 22:12:40
阅读次数:
56
https://www.cnblogs.com/linuxws/p/9017404.html 几乎所有的网络设备都可以通过syslog协议,将日志信息以UDP的形式传送给远端服务器,远端接收日志服务器必须通过syslogd监听UDP端口514,并根据 syslog.conf 配置文件张的配置处理。配 ...
分类:
系统相关 时间:
2020-06-29 13:45:45
阅读次数:
83
crontab在/var/log/目录下没有cron.log文件 修改rsyslog文件: /etc/rsyslog.d/50-default.conf 将 rsyslog 文件中的 #cron.* 前的 # 删掉; 重启rsyslog服务: service rsyslog restart 重启cr ...
分类:
系统相关 时间:
2020-06-26 20:11:56
阅读次数:
59
程序安装在/usr/local/freeswitch目录,root用户。 1、在目录/usr/lib/systemd/system下创建文件freeswitch.service,内容如下: [Unit] Description=FreeSWITCH After=syslog.target netwo ...
分类:
其他好文 时间:
2020-06-24 18:09:13
阅读次数:
69
docker支持的日志驱动 none 无日志json-file 将日志写入json-file,默认值syslog 将日志写入syslog,syslog必须在机器上启动journald 将日志写入journald,journald必须在机器上启动gelf 将日志写入GELF端点,如Graylog或Lo ...
分类:
其他好文 时间:
2020-06-22 19:40:01
阅读次数:
118