2021-01-15 10:19:50 +01:00
|
|
|
{ pkgs, lib, stdenv, fetchurl, unzip, graylog }:
|
2017-02-22 19:07:11 +01:00
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
glPlugin = a@{
|
|
|
|
pluginName,
|
|
|
|
version,
|
|
|
|
installPhase ? ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp $src $out/bin/${pluginName}-${version}.jar
|
|
|
|
'',
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (a // {
|
|
|
|
inherit installPhase;
|
2019-06-19 17:45:34 +02:00
|
|
|
dontUnpack = true;
|
2021-02-20 22:01:53 +01:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2017-02-22 19:07:11 +01:00
|
|
|
meta = a.meta // {
|
|
|
|
platforms = graylog.meta.platforms;
|
|
|
|
maintainers = (a.meta.maintainers or []) ++ [ maintainers.fadenb ];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in {
|
2017-08-08 18:03:44 +02:00
|
|
|
aggregates = glPlugin rec {
|
|
|
|
name = "graylog-aggregates-${version}";
|
|
|
|
pluginName = "graylog-plugin-aggregates";
|
2019-03-02 17:22:58 +01:00
|
|
|
version = "2.4.0";
|
2017-08-08 18:03:44 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/cvtienhoven/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2019-03-02 17:22:58 +01:00
|
|
|
sha256 = "1c48almnjr0b6nvzagnb9yddqbcjs7yhrd5yc5fx9q7w3vxi50zp";
|
2017-08-08 18:03:44 +02:00
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/cvtienhoven/graylog-plugin-aggregates";
|
2020-09-29 10:22:55 +02:00
|
|
|
description = "A plugin that enables users to execute term searches and get notified when the given criteria are met";
|
2017-08-08 18:03:44 +02:00
|
|
|
};
|
|
|
|
};
|
2017-02-22 19:07:11 +01:00
|
|
|
auth_sso = glPlugin rec {
|
|
|
|
name = "graylog-auth-sso-${version}";
|
|
|
|
pluginName = "graylog-plugin-auth-sso";
|
2020-06-05 18:46:55 +02:00
|
|
|
version = "3.3.0";
|
2017-02-22 19:07:11 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Graylog2/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2020-06-05 18:46:55 +02:00
|
|
|
sha256 = "1g47hlld8vzicd47b5i9n2816rbrhv18vjq8gp765c7mdg4a2jn8";
|
2017-02-22 19:07:11 +01:00
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Graylog2/graylog-plugin-auth-sso";
|
2017-02-22 19:07:11 +01:00
|
|
|
description = "SSO support for Graylog through trusted HTTP headers set by load balancers or authentication proxies";
|
|
|
|
};
|
|
|
|
};
|
2017-09-10 17:51:55 +02:00
|
|
|
dnsresolver = glPlugin rec {
|
|
|
|
name = "graylog-dnsresolver-${version}";
|
|
|
|
pluginName = "graylog-plugin-dnsresolver";
|
2018-10-28 19:44:06 +01:00
|
|
|
version = "1.2.0";
|
2017-09-10 17:51:55 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2018-10-28 19:44:06 +01:00
|
|
|
sha256 = "0djlyd4w4mrrqfbrs20j1xw0fygqsb81snz437v9bf80avmcyzg1";
|
2017-09-10 17:51:55 +02:00
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-dnsresolver";
|
2017-09-10 17:51:55 +02:00
|
|
|
description = "Message filter plugin can be used to do DNS lookups for the source field in Graylog messages";
|
|
|
|
};
|
|
|
|
};
|
2020-06-05 18:46:55 +02:00
|
|
|
enterprise-integrations = glPlugin rec {
|
|
|
|
name = "graylog-enterprise-integrations-${version}";
|
|
|
|
pluginName = "graylog-plugin-enterprise-integrations";
|
2020-11-25 20:31:33 +01:00
|
|
|
version = "3.3.9";
|
2020-06-05 18:46:55 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.graylog.org/releases/graylog-enterprise-integrations/graylog-enterprise-integrations-plugins-${version}.tgz";
|
2020-11-25 20:31:33 +01:00
|
|
|
sha256 = "0yr2lmf50w8qw5amimmym6y4jxga4d7s7cbiqs5sqzvipgsknbwj";
|
2020-06-05 18:46:55 +02:00
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
tar --strip-components=2 -xf $src
|
|
|
|
cp ${pluginName}-${version}.jar $out/bin/${pluginName}-${version}.jar
|
|
|
|
'';
|
|
|
|
meta = {
|
2020-06-16 12:35:18 +02:00
|
|
|
homepage = "https://docs.graylog.org/en/3.3/pages/integrations.html#enterprise";
|
2020-06-05 18:46:55 +02:00
|
|
|
description = "Integrations are tools that help Graylog work with external systems (unfree enterprise integrations)";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.unfree;
|
2020-06-05 18:46:55 +02:00
|
|
|
};
|
|
|
|
};
|
2017-09-10 17:51:55 +02:00
|
|
|
filter-messagesize = glPlugin rec {
|
|
|
|
name = "graylog-filter-messagesize-${version}";
|
|
|
|
pluginName = "graylog-plugin-filter-messagesize";
|
|
|
|
version = "0.0.2";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
|
|
|
sha256 = "1vx62yikd6d3lbwsfiyf9j6kx8drvn4xhffwv27fw5jzhfqr61ji";
|
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-filter-messagesize";
|
2017-09-10 17:51:55 +02:00
|
|
|
description = "Prints out all messages that have an estimated size crossing a configured threshold during processing";
|
|
|
|
};
|
|
|
|
};
|
2020-06-05 18:46:55 +02:00
|
|
|
integrations = glPlugin rec {
|
|
|
|
name = "graylog-integrations-${version}";
|
|
|
|
pluginName = "graylog-plugin-integrations";
|
2020-11-25 20:31:33 +01:00
|
|
|
version = "3.3.9";
|
2020-06-05 18:46:55 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.graylog.org/releases/graylog-integrations/graylog-integrations-plugins-${version}.tgz";
|
2020-11-25 20:31:33 +01:00
|
|
|
sha256 = "0q858ffmkinngyqqsaszcrx93zc4fg43ny0xb7vm0p4wd48hjyqc";
|
2020-06-05 18:46:55 +02:00
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
tar --strip-components=2 -xf $src
|
|
|
|
cp ${pluginName}-${version}.jar $out/bin/${pluginName}-${version}.jar
|
|
|
|
'';
|
|
|
|
meta = {
|
2021-11-10 11:37:56 +01:00
|
|
|
homepage = "https://github.com/Graylog2/graylog-plugin-integrations";
|
2020-06-05 18:46:55 +02:00
|
|
|
description = "A collection of open source Graylog integrations that will be released together";
|
|
|
|
};
|
|
|
|
};
|
2017-05-06 17:37:28 +02:00
|
|
|
internal-logs = glPlugin rec {
|
|
|
|
name = "graylog-internal-logs-${version}";
|
|
|
|
pluginName = "graylog-plugin-internal-logs";
|
2018-10-28 19:44:06 +01:00
|
|
|
version = "2.4.0";
|
2017-05-06 17:37:28 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2018-10-28 19:44:06 +01:00
|
|
|
sha256 = "1jyy0wkjapv3xv5q957xxv2pcnd4n1yivkvkvg6cx7kv1ip75xwc";
|
2017-05-06 17:37:28 +02:00
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-internal-logs";
|
2017-05-06 17:37:28 +02:00
|
|
|
description = "Graylog plugin to record internal logs of Graylog efficiently instead of sending them over the network";
|
|
|
|
};
|
|
|
|
};
|
2017-02-22 19:07:11 +01:00
|
|
|
ipanonymizer = glPlugin rec {
|
|
|
|
name = "graylog-ipanonymizer-${version}";
|
|
|
|
pluginName = "graylog-plugin-ipanonymizer";
|
|
|
|
version = "1.1.2";
|
|
|
|
src = fetchurl {
|
2017-09-10 17:51:55 +02:00
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2017-02-22 19:07:11 +01:00
|
|
|
sha256 = "0hd66751hp97ddkn29s1cmjmc2h1nrp431bq7d2wq16iyxxlygri";
|
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-ipanonymizer";
|
2017-02-22 19:07:11 +01:00
|
|
|
description = "A graylog-server plugin that replaces the last octet of IP addresses in messages with xxx";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
jabber = glPlugin rec {
|
|
|
|
name = "graylog-jabber-${version}";
|
|
|
|
pluginName = "graylog-plugin-jabber";
|
2018-10-28 19:44:06 +01:00
|
|
|
version = "2.4.0";
|
2017-02-22 19:07:11 +01:00
|
|
|
src = fetchurl {
|
2017-08-08 18:03:44 +02:00
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2018-10-28 19:44:06 +01:00
|
|
|
sha256 = "0zy27q8y0bv7i5nypsfxad4yiw121sbwzd194jsz2w08jhk3skl5";
|
2017-02-22 19:07:11 +01:00
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-jabber";
|
2017-02-22 19:07:11 +01:00
|
|
|
description = "Jabber Alarmcallback Plugin for Graylog";
|
|
|
|
};
|
|
|
|
};
|
2017-09-10 17:51:55 +02:00
|
|
|
metrics = glPlugin rec {
|
|
|
|
name = "graylog-metrics-${version}";
|
|
|
|
pluginName = "graylog-plugin-metrics";
|
|
|
|
version = "1.3.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
|
|
|
sha256 = "1v1yzmqp43kxigh3fymdwki7pn21sk2ym3kk4nn4qv4zzkhz59vp";
|
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-metrics";
|
2017-09-10 17:51:55 +02:00
|
|
|
description = "An output plugin for integrating Graphite, Ganglia and StatsD with Graylog";
|
|
|
|
};
|
|
|
|
};
|
2017-05-06 17:37:28 +02:00
|
|
|
mongodb-profiler = glPlugin rec {
|
|
|
|
name = "graylog-mongodb-profiler-${version}";
|
|
|
|
pluginName = "graylog-plugin-mongodb-profiler";
|
|
|
|
version = "2.0.1";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
|
|
|
sha256 = "1hadxyawdz234lal3dq5cy3zppl7ixxviw96iallyav83xyi23i8";
|
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-mongodb-profiler";
|
2017-05-06 17:37:28 +02:00
|
|
|
description = "Graylog input plugin that reads MongoDB profiler data";
|
|
|
|
};
|
|
|
|
};
|
2017-09-10 17:51:55 +02:00
|
|
|
pagerduty = glPlugin rec {
|
|
|
|
name = "graylog-pagerduty-${version}";
|
|
|
|
pluginName = "graylog-plugin-pagerduty";
|
2020-06-05 18:46:55 +02:00
|
|
|
version = "2.0.0";
|
2017-09-10 17:51:55 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2020-06-05 18:46:55 +02:00
|
|
|
sha256 = "0xhcwfwn7c77giwjilv7k7aijnj9azrjbjgd0r3p6wdrw970f27r";
|
2017-09-10 17:51:55 +02:00
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-pagerduty";
|
2017-09-10 17:51:55 +02:00
|
|
|
description = "An alarm callback plugin for integrating PagerDuty into Graylog";
|
|
|
|
};
|
|
|
|
};
|
2017-02-22 19:07:11 +01:00
|
|
|
redis = glPlugin rec {
|
|
|
|
name = "graylog-redis-${version}";
|
|
|
|
pluginName = "graylog-plugin-redis";
|
2017-08-08 18:03:44 +02:00
|
|
|
version = "0.1.1";
|
2017-02-22 19:07:11 +01:00
|
|
|
src = fetchurl {
|
2017-08-08 18:03:44 +02:00
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
|
|
|
sha256 = "0dfgh6w293ssagas5y0ixwn0vf54i5iv61r5p2q0rbv2da6xvhbw";
|
2017-02-22 19:07:11 +01:00
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-redis";
|
2017-02-22 19:07:11 +01:00
|
|
|
description = "Redis plugin for Graylog";
|
|
|
|
};
|
|
|
|
};
|
2017-09-10 17:51:55 +02:00
|
|
|
slack = glPlugin rec {
|
|
|
|
name = "graylog-slack-${version}";
|
|
|
|
pluginName = "graylog-plugin-slack";
|
2018-10-28 19:44:06 +01:00
|
|
|
version = "3.1.0";
|
2017-09-10 17:51:55 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2018-10-28 19:44:06 +01:00
|
|
|
sha256 = "067p8g94b007gypwyyi8vb6qhwdanpk8ah57abik54vv14jxg94k";
|
2017-09-10 17:51:55 +02:00
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-slack";
|
2017-09-10 17:51:55 +02:00
|
|
|
description = "Can notify Slack or Mattermost channels about triggered alerts in Graylog (Alarm Callback)";
|
|
|
|
};
|
|
|
|
};
|
2020-06-05 18:46:55 +02:00
|
|
|
snmp = glPlugin rec {
|
|
|
|
name = "graylog-snmp-${version}";
|
|
|
|
pluginName = "graylog-plugin-snmp";
|
|
|
|
version = "0.3.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
|
|
|
sha256 = "1hkaklwzcsvqq45b98chwqxqdgnnbj4dg68agsll13yq4zx37qpp";
|
|
|
|
};
|
|
|
|
meta = {
|
2021-11-10 11:37:56 +01:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-snmp";
|
2020-06-05 18:46:55 +02:00
|
|
|
description = "Graylog plugin to receive SNMP traps";
|
|
|
|
};
|
|
|
|
};
|
2017-02-22 19:07:11 +01:00
|
|
|
spaceweather = glPlugin rec {
|
|
|
|
name = "graylog-spaceweather-${version}";
|
|
|
|
pluginName = "graylog-plugin-spaceweather";
|
|
|
|
version = "1.0";
|
|
|
|
src = fetchurl {
|
2017-09-10 17:51:55 +02:00
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/spaceweather-input.jar";
|
2017-02-22 19:07:11 +01:00
|
|
|
sha256 = "1mwqy3fhyy4zdwyrzvbr565xwf96xs9d3l70l0khmrm848xf8wz4";
|
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-spaceweather";
|
2017-02-22 19:07:11 +01:00
|
|
|
description = "Correlate proton density to the response time of your app and the ion temperature to your exception rate.";
|
|
|
|
};
|
|
|
|
};
|
2017-09-10 17:51:55 +02:00
|
|
|
twiliosms = glPlugin rec {
|
|
|
|
name = "graylog-twiliosms-${version}";
|
|
|
|
pluginName = "graylog-plugin-twiliosms";
|
|
|
|
version = "1.0.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
|
|
|
sha256 = "0kwfv1zfj0fmxh9i6413bcsaxrn1vdwrzb6dphvg3dx27wxn1j1a";
|
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-twiliosms";
|
2017-09-10 17:51:55 +02:00
|
|
|
description = "An alarm callback plugin for integrating the Twilio SMS API into Graylog";
|
|
|
|
};
|
|
|
|
};
|
2017-02-22 19:07:11 +01:00
|
|
|
twitter = glPlugin rec {
|
|
|
|
name = "graylog-twitter-${version}";
|
|
|
|
pluginName = "graylog-plugin-twitter";
|
|
|
|
version = "2.0.0";
|
|
|
|
src = fetchurl {
|
2017-09-10 17:51:55 +02:00
|
|
|
url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar";
|
2017-02-22 19:07:11 +01:00
|
|
|
sha256 = "1pi34swy9nzq35a823zzvqrjhb6wsg302z31vk2y656sw6ljjxyh";
|
|
|
|
};
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/graylog-labs/graylog-plugin-twitter";
|
2017-02-22 19:07:11 +01:00
|
|
|
description = "Graylog input plugin that reads Twitter messages based on keywords in realtime";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|