Hi all.
I am trying to do this example. Packetbeat can capture traffic but there is indexing problem about dns. I have already installed elasticsearch, kibana, x-pack, packetbeat and logstash. I haven't configured logstash because we are not using it in this example. I have installed ingest processor as well. I don't have any authentication problem. curl localhost:9200/packetbeat-*/_refresh -u elastic:changeme {"_shards":{"total":30,"successful":15,"failed":0}}
curl localhost:9200/packetbeat-*/_count -u elastic:changeme {"count":1477,"_shards":{"total":15,"successful":15,"skipped":0,"failed":0}}
Above answer means that packetbeat can capture traffic and sends to Elasticsearch.
curl localhost:9200/packetbeat-*/dns/_count -u elastic:changeme {"count":0,"_shards":{"total":15,"successful":15,"skipped":0,"failed":0}}
I don't have any dns index.
In Elasticsearch 6.x, only a single type is allowed per index. Packetbeat therefore indexes all documents as type doc and instead use a field called type to distinguish between different types of traffic. In your last count query you are looking for documents with the document type dns, which is why you're not getting any hits. Instead try something like this:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.