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