Files
geedge-jira/md/OSS-124.md
2025-09-14 21:52:36 +00:00

56 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 按照要求编写脚本,统计日志数据
| ID | Creation Date | Assignee | Status |
|----|----------------|----------|--------|
| OSS-124 | 2020-06-04T13:35:18.000+0800 | 贾依蒙 | 完成 |
---
注意该任务结束时间 2020-06-05上午
登录信息港服务器192.168.40.182,进入目录/home/wangyan下载日志压缩包disflow.log.zip
解压缩后为每台处理机的日志的压缩包
!image-2020-06-04-13-24-18-682.png!
需求:
1、编写脚本解压日志压缩包到指定目录例如10.112.14.1-disflow.log.zip解压到当前目录10.112.14.1目录下)
2、解压缩后的日志文件disflow.log.2020-06-02替换名称为 处理机ip-disflow.log例如10.112.14.1-disflow.log
3、按照如下要求统计日志时间过滤15:30-18:00
!image-2020-06-04-13-02-34-283.png!
说明:
1、日志中dir字段有123三个值其中dir=3为双向流dir=1为CtoS流量dir=2为StoC流量即为单向流
2、四元组源IP+源端口+目的IP+目的端口
3、二元组源IP+目的IP
4、例如日志中line150:addr:36.37.195.226,17979,101.226.211.106,80源IP为36.37.195.226源端口为17979目的IP为101.226.211.106目的端口为80**jiayimeng** commented on *2020-06-08T16:48:59.388+0800*:
网研数据统计 b2元组在在前端机的稳定性的脚本还在运行中
---
## Attachments
**11644/image-2020-06-04-13-02-34-283.png**
---
**11643/image-2020-06-04-13-24-18-682.png**
---