2017-03-20 22:55:19 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoPackage, libpcap }:
|
2016-11-29 22:07:13 +01:00
|
|
|
|
2017-03-20 22:55:19 +01:00
|
|
|
buildGoPackage rec {
|
2016-11-29 22:07:13 +01:00
|
|
|
name = "packetbeat-${version}";
|
2017-03-20 22:55:19 +01:00
|
|
|
version = "5.2.2";
|
2016-11-29 22:07:13 +01:00
|
|
|
|
2017-03-20 22:55:19 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elastic";
|
|
|
|
repo = "beats";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "19hkq19xpi3c9y5g1yq77sm2d5vzybn6mxxf0s5l6sw4l98aak5q";
|
2016-11-29 22:07:13 +01:00
|
|
|
};
|
|
|
|
|
2017-03-20 22:55:19 +01:00
|
|
|
goPackagePath = "github.com/elastic/beats";
|
2016-11-29 22:07:13 +01:00
|
|
|
|
2017-03-20 22:55:19 +01:00
|
|
|
subPackages = [ "packetbeat" ];
|
2016-11-29 22:07:13 +01:00
|
|
|
|
2017-03-20 22:55:19 +01:00
|
|
|
buildInputs = [ libpcap ];
|
2016-11-29 22:07:13 +01:00
|
|
|
|
2017-03-20 22:55:19 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-11-29 22:07:13 +01:00
|
|
|
description = "Network packet analyzer that ships data to Elasticsearch";
|
|
|
|
longDescription = ''
|
2017-03-20 22:55:19 +01:00
|
|
|
Packetbeat is an open source network packet analyzer that ships the
|
|
|
|
data to Elasticsearch.
|
2016-11-29 22:07:13 +01:00
|
|
|
|
2017-03-20 22:55:19 +01:00
|
|
|
Think of it like a distributed real-time Wireshark with a lot more
|
|
|
|
analytics features. The Packetbeat shippers sniff the traffic between
|
|
|
|
your application processes, parse on the fly protocols like HTTP, MySQL,
|
|
|
|
PostgreSQL, Redis or Thrift and correlate the messages into transactions.
|
2016-11-29 22:07:13 +01:00
|
|
|
'';
|
|
|
|
homepage = https://www.elastic.co/products/beats;
|
2017-03-20 22:55:19 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.fadenb ];
|
|
|
|
platforms = platforms.linux;
|
2016-11-29 22:07:13 +01:00
|
|
|
};
|
|
|
|
}
|