摘要:
input { syslog{ port=>514 } } filter { grok{ match=>{ "message"=>"(?<AAAAFENG>(?<=TYPE=\[Sys)(.{1}))" } } if[AAAAFENG]=="1"{ mutate { add_field => { " 阅读全文
摘要:
from socket import * def udpsender(): # 1. 创建套接字 udpSocket = socket(AF_INET, SOCK_DGRAM) # 2. 准备接收方的地址 sendAddr = ('127.0.0.1', 514) # 3. 从键盘获取数据 send 阅读全文