简体   繁体   English

用于 Web 流量分析的 Filebeat 与 packetbeat

[英]Filebeat vs packetbeat for web traffic analysis

I have a web server and I need to analyze the traffic and find potential anomalies in it.我有一个 Web 服务器,我需要分析流量并找出其中的潜在异常。 My first idea was to use filebeat to take the apache web access logs and pass it to the ELK stack.我的第一个想法是使用filebeat获取 apache Web 访问日志并将其传递给 ELK 堆栈。 The nginx web access logs are in the following form: nginx web 访问日志格式如下:

42.236.10.125 - - [19/Dec/2020:15:23:11 +0100] "GET /templates/jp_hotel/css/template.css HTTP/1.1" 200 10004 "http://www.almhuette-raith.at/" "Mozilla/5.0 (Linux; U; Android 8.1.0; zh-CN; EML-AL00 Build/HUAWEIEML-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 baidu.sogo.uc.UCBrowser/11.9.4.974 UWS/2.13.1.48 Mobile Safari/537.36 AliApp(DingTalk/4.5.11) com.alibaba.android.rimet/10487439 Channel/227200 language/zh-CN" "-"
42.236.10.117 - - [19/Dec/2020:15:23:11 +0100] "GET /templates/jp_hotel/css/layout.css HTTP/1.1" 200 1801 "http://www.almhuette-raith.at/" "Mozilla/5.0 (Linux; U; Android 8.1.0; zh-CN; EML-AL00 Build/HUAWEIEML-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 baidu.sogo.uc.UCBrowser/11.9.4.974 UWS/2.13.1.48 Mobile Safari/537.36 AliApp(DingTalk/4.5.11) com.alibaba.android.rimet/10487439 Channel/227200 language/zh-CN" "-"

However, I noticed that packetbeat also exists, but based on my research I found out that it provides a similar output:但是,我注意到packetbeat也存在,但根据我的研究,我发现它提供了类似的输出:

在此处输入图像描述

So my question is what is the difference between the two of them and should I use both?所以我的问题是它们两者之间有什么区别,我应该同时使用它们吗? Is there a feature that packetbeat has and it might be useful for my case? packetbeat是否有一个功能,它可能对我的情况有用?

I would use packetbeat if you are reviewing strictly network traffic and NOT logs.如果您正在严格审查网络流量而不是日志,我会使用 packetbeat。 If you are analyzing logs, use Filebeat.如果要分析日志,请使用 Filebeat。 You can use both tools, but make sure to understand what you're trying to have the tool ingest.您可以同时使用这两种工具,但请确保了解您要让工具摄取的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM