packagebeat搭建網絡數據包分析體系 原

下載安裝包&解壓
# wget https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-6.4.0-linux-x86_64.tar.gz
# tar -zxvf packetbeat-6.4.0-linux-x86_64.tar.gz
修改配置文件
#vim /usr/local/soft/packetbeat-6.3.2-linux-x86_64/packetbeatwebshell.yml
*************************************************
packetbeat.interfaces.device: any 
packetbeat.protocols:
- type: icmp
  enabled: false
- type: amqp
  ports: [5672]
  enabled: false
- type: cassandra
  ports: [9042]
  enabled: false
- type: dns
  ports: [53]
  enabled: false
  include_authorities: true
  include_additionals: true
- type: http
  ports: [80, 8080]
  max_message_size: 10485760
  send_headers: ["host","cookie","referer"]
  send_request: true
  send_response: true
- type: memcache
  ports: [11211]
  enabled: false
- type: mysql
  ports: [3306]
  enabled: false
- type: pgsql
  ports: [5432]
  enabled: false
- type: redis
  ports: [6379]
  enabled: false
- type: thrift
  ports: [9090]
  enabled: false
- type: mongodb
  ports: [27017]
  enabled: false
- type: nfs
  ports: [2049]
  enabled: false
setup.template.enabled: true
setup.template.name: "webshell"
setup.template.pattern: "webshell-*"
setup.kibana:
  host: "192.*.*.144:5601"
output.elasticsearch:
    enabled: false
    hosts: ["192.*.*.144:9200"]
    index: "webshell-%{+yyyy.MM.dd}"
output.logstash:
  enabled: true
  hosts: ["localhost:5044"]
output.console:
  enabled: false
  pretty: true
**************************************************
啓動:
#/soft/packetbeat-6.0.0-linux-x86_64/packetbeat -c /soft/packetbeat-6.0.0-linux-x86_64/packetbeatwebshell.yml
創建日誌文件夾,創建成功後,則會在/logs/目錄下自動生成文件名爲packetbeat的日誌文件
#mkdir /logs
packetbeat

說明:此服務,還需要與kibana、elasticsearch、logstash配合使用,
以上軟件的具體安裝,請參考:
https://my.oschina.net/guiguketang/blog/1860691

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章