at 22.05-pre 270 lines 11 kB view raw
1{ pkgs, lib, stdenv, fetchurl, unzip, graylog }: 2 3with pkgs.lib; 4 5let 6 glPlugin = a@{ 7 pluginName, 8 version, 9 installPhase ? '' 10 mkdir -p $out/bin 11 cp $src $out/bin/${pluginName}-${version}.jar 12 '', 13 ... 14 }: 15 stdenv.mkDerivation (a // { 16 inherit installPhase; 17 dontUnpack = true; 18 nativeBuildInputs = [ unzip ]; 19 meta = a.meta // { 20 platforms = graylog.meta.platforms; 21 maintainers = (a.meta.maintainers or []) ++ [ maintainers.fadenb ]; 22 }; 23 }); 24in { 25 aggregates = glPlugin rec { 26 name = "graylog-aggregates-${version}"; 27 pluginName = "graylog-plugin-aggregates"; 28 version = "2.4.0"; 29 src = fetchurl { 30 url = "https://github.com/cvtienhoven/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 31 sha256 = "1c48almnjr0b6nvzagnb9yddqbcjs7yhrd5yc5fx9q7w3vxi50zp"; 32 }; 33 meta = { 34 homepage = "https://github.com/cvtienhoven/graylog-plugin-aggregates"; 35 description = "A plugin that enables users to execute term searches and get notified when the given criteria are met"; 36 }; 37 }; 38 auth_sso = glPlugin rec { 39 name = "graylog-auth-sso-${version}"; 40 pluginName = "graylog-plugin-auth-sso"; 41 version = "3.3.0"; 42 src = fetchurl { 43 url = "https://github.com/Graylog2/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 44 sha256 = "1g47hlld8vzicd47b5i9n2816rbrhv18vjq8gp765c7mdg4a2jn8"; 45 }; 46 meta = { 47 homepage = "https://github.com/Graylog2/graylog-plugin-auth-sso"; 48 description = "SSO support for Graylog through trusted HTTP headers set by load balancers or authentication proxies"; 49 }; 50 }; 51 dnsresolver = glPlugin rec { 52 name = "graylog-dnsresolver-${version}"; 53 pluginName = "graylog-plugin-dnsresolver"; 54 version = "1.2.0"; 55 src = fetchurl { 56 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 57 sha256 = "0djlyd4w4mrrqfbrs20j1xw0fygqsb81snz437v9bf80avmcyzg1"; 58 }; 59 meta = { 60 homepage = "https://github.com/graylog-labs/graylog-plugin-dnsresolver"; 61 description = "Message filter plugin can be used to do DNS lookups for the source field in Graylog messages"; 62 }; 63 }; 64 enterprise-integrations = glPlugin rec { 65 name = "graylog-enterprise-integrations-${version}"; 66 pluginName = "graylog-plugin-enterprise-integrations"; 67 version = "3.3.9"; 68 src = fetchurl { 69 url = "https://downloads.graylog.org/releases/graylog-enterprise-integrations/graylog-enterprise-integrations-plugins-${version}.tgz"; 70 sha256 = "0yr2lmf50w8qw5amimmym6y4jxga4d7s7cbiqs5sqzvipgsknbwj"; 71 }; 72 installPhase = '' 73 mkdir -p $out/bin 74 tar --strip-components=2 -xf $src 75 cp ${pluginName}-${version}.jar $out/bin/${pluginName}-${version}.jar 76 ''; 77 meta = { 78 homepage = "https://docs.graylog.org/en/3.3/pages/integrations.html#enterprise"; 79 description = "Integrations are tools that help Graylog work with external systems (unfree enterprise integrations)"; 80 license = lib.licenses.unfree; 81 }; 82 }; 83 filter-messagesize = glPlugin rec { 84 name = "graylog-filter-messagesize-${version}"; 85 pluginName = "graylog-plugin-filter-messagesize"; 86 version = "0.0.2"; 87 src = fetchurl { 88 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 89 sha256 = "1vx62yikd6d3lbwsfiyf9j6kx8drvn4xhffwv27fw5jzhfqr61ji"; 90 }; 91 meta = { 92 homepage = "https://github.com/graylog-labs/graylog-plugin-filter-messagesize"; 93 description = "Prints out all messages that have an estimated size crossing a configured threshold during processing"; 94 }; 95 }; 96 integrations = glPlugin rec { 97 name = "graylog-integrations-${version}"; 98 pluginName = "graylog-plugin-integrations"; 99 version = "3.3.9"; 100 src = fetchurl { 101 url = "https://downloads.graylog.org/releases/graylog-integrations/graylog-integrations-plugins-${version}.tgz"; 102 sha256 = "0q858ffmkinngyqqsaszcrx93zc4fg43ny0xb7vm0p4wd48hjyqc"; 103 }; 104 installPhase = '' 105 mkdir -p $out/bin 106 tar --strip-components=2 -xf $src 107 cp ${pluginName}-${version}.jar $out/bin/${pluginName}-${version}.jar 108 ''; 109 meta = { 110 homepage = "https://github.com/Graylog2/graylog-plugin-integrations"; 111 description = "A collection of open source Graylog integrations that will be released together"; 112 }; 113 }; 114 internal-logs = glPlugin rec { 115 name = "graylog-internal-logs-${version}"; 116 pluginName = "graylog-plugin-internal-logs"; 117 version = "2.4.0"; 118 src = fetchurl { 119 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 120 sha256 = "1jyy0wkjapv3xv5q957xxv2pcnd4n1yivkvkvg6cx7kv1ip75xwc"; 121 }; 122 meta = { 123 homepage = "https://github.com/graylog-labs/graylog-plugin-internal-logs"; 124 description = "Graylog plugin to record internal logs of Graylog efficiently instead of sending them over the network"; 125 }; 126 }; 127 ipanonymizer = glPlugin rec { 128 name = "graylog-ipanonymizer-${version}"; 129 pluginName = "graylog-plugin-ipanonymizer"; 130 version = "1.1.2"; 131 src = fetchurl { 132 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 133 sha256 = "0hd66751hp97ddkn29s1cmjmc2h1nrp431bq7d2wq16iyxxlygri"; 134 }; 135 meta = { 136 homepage = "https://github.com/graylog-labs/graylog-plugin-ipanonymizer"; 137 description = "A graylog-server plugin that replaces the last octet of IP addresses in messages with xxx"; 138 }; 139 }; 140 jabber = glPlugin rec { 141 name = "graylog-jabber-${version}"; 142 pluginName = "graylog-plugin-jabber"; 143 version = "2.4.0"; 144 src = fetchurl { 145 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 146 sha256 = "0zy27q8y0bv7i5nypsfxad4yiw121sbwzd194jsz2w08jhk3skl5"; 147 }; 148 meta = { 149 homepage = "https://github.com/graylog-labs/graylog-plugin-jabber"; 150 description = "Jabber Alarmcallback Plugin for Graylog"; 151 }; 152 }; 153 metrics = glPlugin rec { 154 name = "graylog-metrics-${version}"; 155 pluginName = "graylog-plugin-metrics"; 156 version = "1.3.0"; 157 src = fetchurl { 158 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 159 sha256 = "1v1yzmqp43kxigh3fymdwki7pn21sk2ym3kk4nn4qv4zzkhz59vp"; 160 }; 161 meta = { 162 homepage = "https://github.com/graylog-labs/graylog-plugin-metrics"; 163 description = "An output plugin for integrating Graphite, Ganglia and StatsD with Graylog"; 164 }; 165 }; 166 mongodb-profiler = glPlugin rec { 167 name = "graylog-mongodb-profiler-${version}"; 168 pluginName = "graylog-plugin-mongodb-profiler"; 169 version = "2.0.1"; 170 src = fetchurl { 171 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 172 sha256 = "1hadxyawdz234lal3dq5cy3zppl7ixxviw96iallyav83xyi23i8"; 173 }; 174 meta = { 175 homepage = "https://github.com/graylog-labs/graylog-plugin-mongodb-profiler"; 176 description = "Graylog input plugin that reads MongoDB profiler data"; 177 }; 178 }; 179 pagerduty = glPlugin rec { 180 name = "graylog-pagerduty-${version}"; 181 pluginName = "graylog-plugin-pagerduty"; 182 version = "2.0.0"; 183 src = fetchurl { 184 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 185 sha256 = "0xhcwfwn7c77giwjilv7k7aijnj9azrjbjgd0r3p6wdrw970f27r"; 186 }; 187 meta = { 188 homepage = "https://github.com/graylog-labs/graylog-plugin-pagerduty"; 189 description = "An alarm callback plugin for integrating PagerDuty into Graylog"; 190 }; 191 }; 192 redis = glPlugin rec { 193 name = "graylog-redis-${version}"; 194 pluginName = "graylog-plugin-redis"; 195 version = "0.1.1"; 196 src = fetchurl { 197 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 198 sha256 = "0dfgh6w293ssagas5y0ixwn0vf54i5iv61r5p2q0rbv2da6xvhbw"; 199 }; 200 meta = { 201 homepage = "https://github.com/graylog-labs/graylog-plugin-redis"; 202 description = "Redis plugin for Graylog"; 203 }; 204 }; 205 slack = glPlugin rec { 206 name = "graylog-slack-${version}"; 207 pluginName = "graylog-plugin-slack"; 208 version = "3.1.0"; 209 src = fetchurl { 210 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 211 sha256 = "067p8g94b007gypwyyi8vb6qhwdanpk8ah57abik54vv14jxg94k"; 212 }; 213 meta = { 214 homepage = "https://github.com/graylog-labs/graylog-plugin-slack"; 215 description = "Can notify Slack or Mattermost channels about triggered alerts in Graylog (Alarm Callback)"; 216 }; 217 }; 218 snmp = glPlugin rec { 219 name = "graylog-snmp-${version}"; 220 pluginName = "graylog-plugin-snmp"; 221 version = "0.3.0"; 222 src = fetchurl { 223 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 224 sha256 = "1hkaklwzcsvqq45b98chwqxqdgnnbj4dg68agsll13yq4zx37qpp"; 225 }; 226 meta = { 227 homepage = "https://github.com/graylog-labs/graylog-plugin-snmp"; 228 description = "Graylog plugin to receive SNMP traps"; 229 }; 230 }; 231 spaceweather = glPlugin rec { 232 name = "graylog-spaceweather-${version}"; 233 pluginName = "graylog-plugin-spaceweather"; 234 version = "1.0"; 235 src = fetchurl { 236 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/spaceweather-input.jar"; 237 sha256 = "1mwqy3fhyy4zdwyrzvbr565xwf96xs9d3l70l0khmrm848xf8wz4"; 238 }; 239 meta = { 240 homepage = "https://github.com/graylog-labs/graylog-plugin-spaceweather"; 241 description = "Correlate proton density to the response time of your app and the ion temperature to your exception rate."; 242 }; 243 }; 244 twiliosms = glPlugin rec { 245 name = "graylog-twiliosms-${version}"; 246 pluginName = "graylog-plugin-twiliosms"; 247 version = "1.0.0"; 248 src = fetchurl { 249 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 250 sha256 = "0kwfv1zfj0fmxh9i6413bcsaxrn1vdwrzb6dphvg3dx27wxn1j1a"; 251 }; 252 meta = { 253 homepage = "https://github.com/graylog-labs/graylog-plugin-twiliosms"; 254 description = "An alarm callback plugin for integrating the Twilio SMS API into Graylog"; 255 }; 256 }; 257 twitter = glPlugin rec { 258 name = "graylog-twitter-${version}"; 259 pluginName = "graylog-plugin-twitter"; 260 version = "2.0.0"; 261 src = fetchurl { 262 url = "https://github.com/graylog-labs/${pluginName}/releases/download/${version}/${pluginName}-${version}.jar"; 263 sha256 = "1pi34swy9nzq35a823zzvqrjhb6wsg302z31vk2y656sw6ljjxyh"; 264 }; 265 meta = { 266 homepage = "https://github.com/graylog-labs/graylog-plugin-twitter"; 267 description = "Graylog input plugin that reads Twitter messages based on keywords in realtime"; 268 }; 269 }; 270}