I have installed the agent on ubuntu running HAPROXY with multiple ports backends. We have high traffic sites but it looks like nothing is really recording on elastcisearch.
sudo packetbeat -e -d "publish" -N does shows traffic just no traffic is being sent out.
I am only getting a few entries in my ES index. I see the following entries scrolling through my console window:
http.go:730: WARN Response from unknown transaction. Ignoring: TcpTuple src[X.X.X.X:59560] dst[X.X.X.X:80] stream_id[2743]
http.go:647: WARN Two requests without a response. Dropping old request
If i run the following I can see the http traffic:
http.go:237: DBG Header: Connection
http.go:247: DBG HV: keep-alive
http.go:253: DBG Header: 'connection' Value: 'keep-alive'
http.go:385: DBG Empty content length, ignore body
http.go:647: WARN Two requests without a response. Dropping old request
http.go:655: DBG Received request with tuple: TcpTuple src[X.X.X.X:60988] dst[X.X.X.X:80] stream_id[30]
http.go:943: DBG Parameters:
^Csniffer.go:319: INFO Input finish. Processed 3068 packets. Have a nice day!
I was able to dump the traffic into a pcap file using the following:
packetbeat -e -dump /tmp/packetbeat/trace3.pcap
I opened the pcap with wireshark and could see all the traffic.
As a side note: The packetbeat server is virtual server connected to a mirrored port on my virtual switch (VMware distributed Switch). I configured it to listen on eth1.
Any thoughts as to why it's not sending the data into Elasticsearch (or the log file for that matter).
Ok, one thing to check is that in wireshark you don't see any "packet truncated during capture". This would be an indication that the snaplen setting is too low.
It could also be that there is some packet loss in the probably large response. Look in wireshark if you seen any notices of "previous tcp packet was not captured" or something like that.
Hmm, then I'm not sure. From the logs you posted already it looks like a request was correctly captured but no response for it. Can you post or send me a larger portion of the log file?
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.