扩散模型实战(九):使用CLIP模型引导和控制扩散模型

whiteMu

关注

阅读 38

2023-11-17

linux rsyslog日志采集格式设定四

1.创建日志接收模板

打开/etc/rsyslog.conf文件,在GLOBAL DIRECTIVES模块下任意位置添加以下内容

命令:

vim /etc/rsyslog.conf

测试:rsyslog.conf文件结尾添加以下内容

$template ztj,"%fromhost-ip% %app-name% %syslogseverity% %msg%\n"
if $fromhost-ip == '127.0.0.1' and $syslogseverity < '6' then {
-/var/log/ztj.log;ztj
stop
}

$template ztj,"%fromhost-ip% %app-name% %syslogseverity% %msg%\n"

#定义模板ztj

#fromhost-ip:日志中的主机IP地址

#app-name:产生日志的进程名称,其值与%programname%值相同

#syslogseverity:日志级别,以数字显示

#msg:日志内容

\n:换行

 #可以通过man rsyslog.conf命令查看rsyslog属性

[root@rhel77 ~]# man rsyslog.conf
...... 
Available Properties
       msg    the MSG part of the message (aka "the message" ;))

       rawmsg the message exactly as it was 

精彩评论(0)

0 0 举报