简体   繁体   English

使用Docker将数据包发送到Elastic

[英]Using docker to send packets to elastic

I tried this docker run command as suggested on official packetbeat installation page. 我按照packetbeat官方安装页面上的建议尝试了这个docker run命令。

https://www.elastic.co/guide/en/beats/packetbeat/current/running-on-docker.html https://www.elastic.co/guide/en/beats/packetbeat/current/running-on-docker.html

I do not get any error, but container exits after loading index. 我没有收到任何错误,但是容器在加载索引后退出。 It does not send any packets to the cloud server. 它不会将任何数据包发送到云服务器。

docker run \
--cap-add=NET_ADMIN \
docker.elastic.co/beats/packetbeat:7.0.0 \
setup -E setup.kibana.host=https://c3e635645b8441409a39f4456461e753.us-east-1.aws.found.io:9243 \
-E cloud.id=failed_query:dXMtZWFzdC0xLmF3cy5mb3VuZC5pbyQyZTZjNTg3YmZhODE0MTJiOGJiMzAzZWZjZDk3OGJlZiRjM2U2MzU2NDViODQ0MTQwOWEzOWY0NDU2NDYxZTc1Mw== \
-E cloud.auth=elastic:XXX

And the output is this... 输出是这个...

Index setup complete.
Loading dashboards (Kibana must be running and reachable)
Loaded dashboards

I will like to know how to use docker to send packets to elastic host. 我想知道如何使用docker将数据包发送到弹性主机。

That command is used to load the various modules required for Packetbeat onto Kibana, and make the ElasticSearch index, which it successfully did. 该命令用于将Packetbeat所需的各种模块加载到Kibana上,并成功创建ElasticSearch索引。 In order to start forwarding packets, you have to configure Packetbeat using either volumes or by building a custom image as specified on the installation page. 为了开始转发数据包,您必须使用卷或通过按照安装页面上的指定构建自定义映像来配置Packetbeat。

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

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