16 lib.attrsets.recursiveUpdate (rec {
18 version = elk7Version;
20 src = fetchFromGitHub {
24 hash = "sha256-0qwWHRIDLlnaPOCRmiiFGg+/jdanWuQtggM2QSaMR1o=";
27 vendorHash = "sha256-rwCCpptppkpvwQWUtqTjBUumP8GSpPHBTCaj0nYVQv8=";
29 subPackages = [ package ];
32 homepage = "https://www.elastic.co/products/beats";
33 license = licenses.asl20;
34 maintainers = with maintainers; [
39 platforms = platforms.linux;
45 auditbeat7 = beat "auditbeat" { meta.description = "Lightweight shipper for audit data"; };
46 filebeat7 = beat "filebeat" {
47 meta.description = "Lightweight shipper for logfiles";
48 buildInputs = [ systemd ];
49 tags = [ "withjournald" ];
51 patchelf --set-rpath ${lib.makeLibraryPath [ (lib.getLib systemd) ]} "$out/bin/filebeat"
54 heartbeat7 = beat "heartbeat" { meta.description = "Lightweight shipper for uptime monitoring"; };
55 metricbeat7 = beat "metricbeat" {
56 meta.description = "Lightweight shipper for metrics";
57 passthru.tests = lib.optionalAttrs config.allowUnfree (
58 assert metricbeat7.drvPath == nixosTests.elk.unfree.ELK-7.elkPackages.metricbeat.drvPath;
60 elk = nixosTests.elk.unfree.ELK-7;
64 packetbeat7 = beat "packetbeat" {
65 buildInputs = [ libpcap ];
66 meta.description = "Network packet analyzer that ships data to Elasticsearch";
67 meta.longDescription = ''
68 Packetbeat is an open source network packet analyzer that ships the
69 data to Elasticsearch.
71 Think of it like a distributed real-time Wireshark with a lot more
72 analytics features. The Packetbeat shippers sniff the traffic between
73 your application processes, parse on the fly protocols like HTTP, MySQL,
74 PostgreSQL, Redis or Thrift and correlate the messages into transactions.