You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

271 line
11 KiB

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