• 客户端把rsyslog重启,就会发送全部日志 --待研究


    客户端:
    uat-web02:/var/log/nginx# echo "scan-cccc21231">>scan.log 
    uat-web02:/var/log/nginx# cat scan.log 
    scan-aaaaaaaaaaaaa
    bbbbb21231
    scan-bbbbb21231
    scan-cccc21231
    
    
    
    服务端:
    zjtest7-frontend:/data/scan# cat scan.2016-09-25 
     scan-bbbbb21231
     scan-cccc21231
     
     
     
     
     
     客户端重启;
     
     
     
     
     服务端收到的数据;
     
     zjtest7-frontend:/data/scan# cat scan.2016-09-25 
     scan-bbbbb21231
     scan-cccc21231
     scan-aaaaaaaaaaaaa
     bbbbb21231
     scan-bbbbb21231
     scan-cccc21231
     scan-dddd9999
    zjtest7-frontend:/data/scan# wc -l scan.2016-09-25 
    7 scan.2016-09-25
    
    再次重启客户端:
    uat-web02:/var/log/nginx# cat scan.log 
    scan-aaaaaaaaaaaaa
    bbbbb21231
    scan-bbbbb21231
    scan-cccc21231
    scan-dddd9999
    
    
    服务端:
    zjtest7-frontend:/data/scan# cat scan.2016-09-25 
     scan-bbbbb21231
     scan-cccc21231
     scan-aaaaaaaaaaaaa
     bbbbb21231
     scan-bbbbb21231
     scan-cccc21231
     scan-dddd9999
     scan-aaaaaaaaaaaaa
     bbbbb21231
     scan-bbbbb21231
     scan-cccc21231
     scan-dddd9999
    zjtest7-frontend:/data/scan# wc -l scan.2016-09-25 
    12 scan.2016-09-25
    
    
    也就是说 只要客户端把rsyslog重启,就会发送全部日志
    
    
    
    uat-web02:/root/soft/rsyslog-8.15.0/tools# service rsyslog start
    Starting system logger: usage: rsyslogd [options]
    use "man rsyslogd" for details. To run rsyslog interactively, use "rsyslogd -n"to run it in debug mode use "rsyslogd -dn"
    For further information see http://www.rsyslog.com/doc
                                                               [FAILED]
    														   
    														   

  • 相关阅读:
    luogu P3327 [SDOI2015]约数个数和
    生成函数
    luogu P4318 完全平方数
    SP5971 LCMSUM
    luogu P2522 [HAOI2011]Problem b
    UOJ #82. 【UR #7】水题生成器
    CF1147F Zigzag Game
    CF1106F Lunar New Year and a Recursive Sequence
    1114: 逆序
    1113: 递归调用的次数统计(函数专题)
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199166.html
Copyright © 2020-2023  润新知